17 Feb 2013 at 14:32 #1 mattyg mattyg Soldato Joined 17 Jun 2007 Posts 9,458 hi I need my spreadsheet to work out the cost for mileage If the daily miles are <200 then multiply by x If daily miles are >200 but <250 then multiply by y And if >250 multiply by z Any ideas Thanks
hi I need my spreadsheet to work out the cost for mileage If the daily miles are <200 then multiply by x If daily miles are >200 but <250 then multiply by y And if >250 multiply by z Any ideas Thanks
17 Feb 2013 at 15:02 #2 Brian The Snail Brian The Snail Associate Joined 11 Jan 2005 Posts 192 Location Sunny Suffolk Nested if. Have a look at this http://office.microsoft.com/en-gb/excel-help/if-HP005209118.aspx
17 Feb 2013 at 20:50 #3 Morfik Morfik Associate Joined 30 Dec 2005 Posts 1,089 =IF(A1<200,A1*x,IF(A1<250,A1*y,A1*z))
17 Feb 2013 at 20:59 #4 mattyg mattyg Soldato OP Joined 17 Jun 2007 Posts 9,458 Morfik said: =IF(A1<200,A1*x,IF(A1<250,A1*y,A1*z)) Click to expand... Thanks I take it A1 is the cell that i have inputted the mileage
Morfik said: =IF(A1<200,A1*x,IF(A1<250,A1*y,A1*z)) Click to expand... Thanks I take it A1 is the cell that i have inputted the mileage