Hi,
I am trying to write,
If g8=y, h8=y then 2.5%, if g8=n, h8=y then 5.0%, if g8=n, h8=n then 0
Solved!
Hi,
I am trying to write,
If g8=y, h8=y then 2.5%, if g8=n, h8=y then 5.0%, if g8=n, h8=n then 0
Solved!
Last edited by jchohan83; 08-10-2011 at 01:27 PM.
Try:
=IF(AND(G8="Y",H8="Y"),2.5%,IF(AND(G8="N",H8="Y"),5%,0))
or
=IF(H8="Y",IF(G8="Y",2.5%,5%),0)
assuming that if H8 = n and G8 = y, then you also want 0.
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.
How about this:
=LOOKUP(G8&H8, {"NN", "NY", "YN", "YY"}, {0, 0, 0.05, 0.025})
There are actually 4 possible combinations.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon 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!)
=+IF(AND(G8="y",H8="y"),2.5%,IF(AND(G8="n",H8="y"),5%,IF(AND(G8="n",H8="n"),0,NA)))
Regards,
Little Master
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks