IF Formula ?

EVR_99

New Member
Joined
Jan 27, 2011
Messages
25
Currently cell C9=”Play” (But it can also = “Kicks off”, “Field Goal”, “Punt”)
Cell D9=”Pass” (selected by a DV list used only if C9=”Play” did this just to differentiate between a Pass or Run play)
Cell E9=134(result of a Marco button, random #)
The formula below is for cell F9
=IF($C9="Play",IF($D9="Rush",VLOOKUP($E9,Run,2,FALSE),IF(D9="Pass",VLOOKUP($E9,Pass,2,FALSE),IF(C9="Kicks off",VLOOKUP($E9,Kickoff,2,FALSE),IF(C9="Punt",VLOOKUP($E9,Punt,2,FALSE),IF(C9="Field Goal",VLOOKUP($E9,FG,2,FALSE)))))))
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Working fine until C9=Something other than “Play” then my F9 comes back False
If C9=ie “Kicks off”
My D9 cell is blank as desired
E9 is again generator by a Marco button, random #
So there is a value in E9 for lookup to find
But again my F9 comes back false
<o:p></o:p>
Doesn’t this formula look for a True statement until it can’t find one?
<o:p></o:p>
Thanks,
David
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi

You're missing two close brackets ")" after the second $D9 test, corrected formula -

Code:
=IF($C9="Play",IF($D9="Rush",VLOOKUP($E9,Run,2,FALSE),IF($D9="Pass",VLOOKUP($E9,Pass,2,FALSE)[COLOR=red][B]))[/B][/COLOR],IF($C9="Kicks off",VLOOKUP($E9,Kickoff,2,FALSE),IF($C9="Punt",VLOOKUP($E9,Punt,2,FALSE),IF($C9="Field Goal",VLOOKUP($E9,FG,2,FALSE)))))

hth
 
Upvote 0
David

The following -
Code:
=IF($C9="Play",VLOOKUP($E9,IF($D9="Rush",Run,Pass),2,FALSE),VLOOKUP($E9,CHOOSE(MATCH($D9,{"Field Goal","Kicks off","Punt"},0),FG,Kickoff,Punt),2,FALSE))
gives a different slant on the formula

hth
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,901
Members
452,948
Latest member
Dupuhini

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