Help with a formula returning the word "FALSE" Please

Get_Involved

Active Member
Joined
Jan 26, 2007
Messages
383
Step 1

When I type any number 6 through 9 MPG in Cell K9, this formula works.

(This formula is placed in Cell L10

Code:
 IF(K9=6,((B8*0.01)),IF(K9=6.5,((B8*0.02)),IF(K9=7,((B8*0.03)),IF(K9=7.5,((B8*0.04)),IF(K9=8,((B8*0.05)),IF(K9=8.5,((B8*0.06)),IF(K9=9,((B8*0.07)))))))))
)

I have a tab named Fuel Report that has the MPG in Cell U39.

Step 2

(When I put this formula in cell K9

Code:
 =IFERROR(1/(1/IF('Fuel Report'!U39,(('Fuel Report'!U39)))),"")[/ CODE]

It returns the numbers 6 Through 9 based on gallons bought and miles ran, in cell K9.)

However now it is returning the word “FALSE” in Cell L10

Can anyone explain to  me how I am writing this formula wrong please?
 

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,

In both cases in your IF statements there is a scenario where "FALSE" is a possible answer.
= IF(K9=6,((B8*0.01)),IF(K9=6.5,((B8*0.02)),IF(K9=7,((B8*0.03)),IF(K9=7.5,((B8*0.04)),IF(K9=8,((B8*0.05)),IF(K9=8.5,((B8*0.06)),IF(K9=9,((B8*0.07))))))))) , the red part has no FALSE argument.
= IFERROR(1/(1/IF('Fuel Report'!U39,(('Fuel Report'!U39)))),"") , same as above no FALSE argument.

So when the IF formula evaluates a scenario as FALSE it will return FALSE when that argument is missing.
 
Upvote 0
GraH Thanks for your response.
I understand what you are saying. Although I am not sure how to rewrite the formula to make it work as intended.
 
Upvote 0
That long nested IF for sure seems a candidate for a VLOOKUP.
 
Upvote 0
Thanks I thought that would work,tried that already, I will keep working on it thanks because I know you are rite.
 
Upvote 0
Reworked the question

I have 2 tabs

One is tab named “Fuel Report”

The second is named “Incentive Pay”

_______________________________________________________________

Step 1

When I type any number 6 through 9 MPG in Cell K9, of “Incentive Pay” this formula works.

(This formula below is placed in Cell L10

Code:
 IF(K9=6,((B8*0.01)),IF(K9=6.5,((B8*0.02)),IF(K9=7,((B8*0.03)),IF(K9=7.5,((B8*0.04)),IF(K9=8,((B8*0.05)),IF(K9=8.5,((B8*0.06)),IF(K9=9,((B8*0.07)))))))))

It works perfect.

________________________________________________________________



I have a tab named Fuel Report that has the MPG in Cell U39.

Step 2

(When I put this formula in cell K9

Code:
 =IFERROR(1/(1/IF('Fuel Report'!U39,(('Fuel Report'!U39)))),"")

It returns the numbers expected, 6,6.5,7,7.5,8,8.5,9 in cell K9.)

However now this Code

Code:
IF(K9=6,((B8*0.01)),IF(K9=6.5,((B8*0.02)),IF(K9=7,((B8*0.03)),IF(K9=7.5,((B8*0.04)),IF(K9=8,((B8*0.05)),IF(K9=8.5,((B8*0.06)),IF(K9=9,((B8*0.07)))))))))
,
is returning the word “FALSE” in Cell L10

Can anyone give an example of how I should be writing this formula please?

Thanks in Advance
 
Upvote 0
At first glance I do not see something wrong with the overall syntax, except this looks suspicious
= IF(K9=6,((B8*0.01)),IF(K9=6.5,((B8*0.02)),IF(K9=7,((B8*0.03)),IF(K9=7.5,((B8*0.04)),IF(K9=8,((B8*0.05)),IF(K9=8.5,((B8*0.06)),IF(K9=9,((B8*0.07)))))))))

those "8"s should be "9"s?
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,956
Latest member
JPav

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