Multiple IF functions, differant range requires differant calculation

Spoontang

New Member
Joined
Jan 25, 2018
Messages
10
Hi Guys, I'm new here and new to anything but the basics of excel. Trying to make a cell for fuel tank capacity based on the height (dip) of the fuel. Tank is uneven. The individual formulas work in a sheet where you have to put the figure in the corresponding cell, e.g between 43 to 63, however I can't make all of it work as a one cell calculation. The first and last do work, the others return FALSE. Your help would be appreciated, I've tried adding AND, also "" and writing it different ways from what I've seen on the forum without success.

=IF(IF(F13>127,F13*110+4020,
(IF(F13>110<=127,F13*128+1830,
(IF(F13>62<=110,F13*131+1500,
(IF(F13>42<=62,F13*127+1710,
(IF(F13>30<=42,F13*123+1855,
(IF(F13>15<=30,F13*120+1935,
(IF(F13<=15,F13*117+1980))))))))))))))
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi,

Your formula modified:


Book1
CF
13150
1310
Sheet8
Cell Formulas
RangeFormula
C1=IF(F13<=15,F13*117+1980,IF(F13<=30,F13*120+1935,IF(F13<=42,F13*123+1855,IF(F13<=62,F13*127+1710,IF(F13<=110,F13*131+1500,IF(F13<=127,F13*128+1830,F13*110+4020))))))
 
Upvote 0
Thank you jtakw, I see I had a few errors in how I did this. Your time and knowledge in replying to this is much appreciated. I got to the very frustrated stage....
I can now leave this and go enjoy the rest of Australia day with a cold beer or two.
Cheers,
 
Upvote 0
You're welcome, welcome to the forum.

Cheers, Happy Australia Day.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top