How do you return different values in a cell based on which range the value entered in another cell comes under? Specifically, I am trying to make a step function.
For example:
- IF G2 is ABOVE "0" BUT BELOW "1" THEN display "0.1"
- IF G2 is ABOVE "0.99" BUT BELOW "5" THEN display "0.15"
- IF G2 is ABOVE "4.99" BUT BELOW "15" THEN display "0.2"
- IF G2 is ABOVE "14.99" BUT BELOW "30" THEN display "0.5"
- IF G2 is ABOVE "29.99" BUT BELOW "100" THEN display "1.0"
- IF G2 is ABOVE "99.99" THEN display "1.30"
So IF G2 was "£18.75" then the cell that this formula is entered in would display "£0.50" based on the value's above.
(bear in mind that this is specific to my spreadsheet and was for calculating prices i.e. 0.99 = £0.99)