WindsorExcel
New Member
- Joined
- Jan 29, 2023
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Hi all,
I’m trying to combine 2 if statements into a single cell.
I have a cell for “mileage” and a cell for “delivery fee”
Min Delivery fee is £100 up to 25 miles. Anything over 25 miles is the min fee plus £1 per mile.
The output should be: any distance up to 25 miles returns £100. Any distance over 25 miles returns £100 + £1 for every mile over.
I’ve written the formulas as:
=IF(I22<=25,(I22-I22)+100)
=IF(I22>=25,(I22-25)*1+100)
both those formulas work in individual cells, but I can’t combine them… I can’t work it out.
I’m trying to create a pricing tool that calculates the fees easily.
If I populate the cell with any miles up to 25 it shows 100 fee. Anything above 25 miles will be the min fee + 1 per mile E.g. 35 miles = 110.
Can anyone help?
I’m trying to combine 2 if statements into a single cell.
I have a cell for “mileage” and a cell for “delivery fee”
Min Delivery fee is £100 up to 25 miles. Anything over 25 miles is the min fee plus £1 per mile.
The output should be: any distance up to 25 miles returns £100. Any distance over 25 miles returns £100 + £1 for every mile over.
I’ve written the formulas as:
=IF(I22<=25,(I22-I22)+100)
=IF(I22>=25,(I22-25)*1+100)
both those formulas work in individual cells, but I can’t combine them… I can’t work it out.
I’m trying to create a pricing tool that calculates the fees easily.
If I populate the cell with any miles up to 25 it shows 100 fee. Anything above 25 miles will be the min fee + 1 per mile E.g. 35 miles = 110.
Can anyone help?