Something about forest and trees?

pilot

Active Member
Joined
Feb 17, 2002
Messages
345
Why can't I figure this out?

=IF(F402,IF(LEN(B402<9),IF(C402<501,C402*0.01,5+(C402-500)*0.006),33),"")

When LEN(B402<9 is FALSE, I want 33 as the result but I'm getting "".

Thanks for your assistance.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
You have a ) in the wrong place
Code:
LEN(B402)<9
 
Upvote 0
Maybe I am missing something, but what is the point of the first part of the formula, what is the logical test of F402, just to see if there is something there?
 
Last edited:
Upvote 0
KennyGreens, exactly.

Scott T, I figured that would be my problem. But I made this change and still get "".

=IF(F402,IF(LEN(B402)<9,IF(C402<501,C402*0.01,5+(C402-500)*0.006),33),"")
 
Upvote 0
The way you have written it, the "33" is associated with the FALSE part of when C402 < 501
and the "" is associated with the FALSE part of when LEN(B402) < 9
So change your 33 and "" accordingly.
 
Upvote 0
I want the "" to be associated with the FALSE part of IF(F402...) so it needs to be at the very end. Or maybe I'm not understanding your suggestion.
 
Upvote 0
Joe4, I did what you suggested and it magically fixed the issue, but I don't understand why.

Thanks!
 
Upvote 0
=IF(F403,IF(LEN(B403)<9,IF(C403<501,C403*0.01,5+(C403-500)*0.006),""),33)

Sorry folks, it still isn't right. Now, if LEN is TRUE, I'm getting 33 instead of C403*0.01. This is baffling me.
 
Upvote 0
Can you please just list out all the conditions/criteria in plain English for us, describing what should happen in each instance, and what the order should be?
I find it is much easier to write the formula based on the conditions, then try to guess what the user wants to happen from errant formulas.
 
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