Is it possible to layer more than one IF func...

Is it possible to layer more than one IF function?

Eg: =IF([No. of Days]<2,LOOKUP(โ€˜1โ€™, โ€˜Pricesโ€™, โ€˜Daysโ€™, โ€˜Set Pricesโ€™)[No. of Days],0),IF([No. of Days]>1or <8,LOOKUP(โ€˜2 to 7โ€™, โ€˜Pricesโ€™, โ€˜Daysโ€™, โ€˜Set Pricesโ€™)[No. of Days],0)

Something like thisโ€ฆ (This one doesnโ€™t work just an exampleโ€ฆ)

I have a cerctian price for 1 day (100) and a different price for 2 to 7(80) daysโ€ฆ

0 5 534
5 REPLIES 5

Oh yeah!

I have one crazy display that has 4.

@David_Hopkins Dude! Please could you show me an example?

You may also want to use the SWITCH function instead of IF.

https://help.appsheet.com/expressions/expression-types/conditional-expressions

@John_Gardner I love switch when there are multiple options. Iโ€™ve even started playing with a switch that will run a different SELECT statement based on the value of a col. so, I can get different results depending on what type of element is being viewed.

@John_Gardner @David_Hopkins Thanks guys! Iโ€™m back on track.

Top Labels in this Space