I’m working on an app that allows people to key in their current aircon unit model and I want to be able to show possible replacements based on several options that are on another sheet.
I currently have an Inline List that pulls data from the list of options sheet, but the filter function only allows me to enter a fixed value:
Unfortunately we cannot compare 2 dynamic values in a filter or if/then column, although it has been requested several times. This would be best achieved with relations, but due to your use of greater than and less than compares, this further complicates things.
I would recommend reading up on these methods to get a better idea of how to do this. You’ll will most likely need to think of your logic backwards. Create relations, lookups, it/thens, etc. in the items sheet to pull in the selected value. Then create the proper relations in the selection sheet to match up. I hope this helps.:
I’ve tried reading through your suggestions but it’s a whooshing a bit over my head.
I’m trying a different approach now - I was able to list down the possible options that satisfies my conditions in a single cell in my google sheet, is there a way to make a relation between the different items in this one cell to the items in my database sheet?
You can’t do a relation like that. You are trying to match a single model number to a big list of model numbers. That’s not an exact match, so the relation won’t return anything.
There’s 2 ways to do this:
One method is to create an array of columns (Model 1, Model 2, Model 3, etc) and create you relation against the array column (Model) that Glide creates.
The second method is to Create a sheet with a model in one column and a similar model in another column. List all of these combinations going down. One for each row. Then create a multiple relation to that sheet following by a lookup column that will get an array of all associated models that you can use, just like the first method.
Thanks Jeff, I discovered what you mentioned by accident when I used the ‘Split text to Columns’ function and just named the columns Option 1, Option 2, etc…
I actually just used the “Split” function since the ‘Possible Replacement Models’ column already is an ARRAYFORMULA, and the required conditions are specified inside that column already. I didn’t know that there was a SPLIT command, and it does the job perfectly. It even deletes the other info listed under the different Options columns if the original list of options gets lesser. So thank you for suggesting this