I have the following formula:
=IF(AND(A5=A4,C5=C4),(IF(G5="T",(H5*I5*122%/2),IF(E5=0,"-",(H5*I5)*122%)*(F5))))
When the first IF is not true I get FALSE, instead of a number..
Any help is appreciated
I have the following formula:
=IF(AND(A5=A4,C5=C4),(IF(G5="T",(H5*I5*122%/2),IF(E5=0,"-",(H5*I5)*122%)*(F5))))
When the first IF is not true I get FALSE, instead of a number..
Any help is appreciated
What number are you expecting? You have no FALSE argument in the main IF()
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
You've constructed three IF statements nested in such a way that ALL of them have TRUE formulas, and NONE of them have FALSE formulas. None of them.
As shown, if the opening AND() isn't true, you'll get nothing.
Break out the logic and the formulas one logic string at a time, explain what you want to happen. Then we'll help you put the formulas back together.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
The last if statement is supposed to be calculated when the first if is not true. It is giving me a False instead of a number. What do I need to add...
Max
Perhaps something like this then:
=IF(AND(A5=A4,C5=C4),IF(G5="T",(H5*I5*122%/2),""),IF(E5=0,"-",(H5*I5)*122%)*(F5))
where you can replace the "" with something if that IF() is FALSE...
I copied your formula in but I still got a false result. Did I miss something,,
Which formula?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks