Formula IF(OR

Jon Johny

Board Regular
Joined
Sep 15, 2008
Messages
162
I have a formula construction question. Below is the formula I have. (I am looking up the number of wins a certain team has). The lookup is looking this team up on the 'Team1' range, however, sometimes the team I am looking up may not be in this range and on the 'Team2' range, or in the 'Team3' range. How do I incorporate Team2 and Team3 ranges into this formula??

I think this is IF(OR(

Thank you

=IF(ISERROR(VLOOKUP($A3,Team1,2,FALSE)),"0",VLOOKUP($A3,Team1,2,FALSE))
 
I'd prefer to use and modify this formula,

=IF(ISERROR(VLOOKUP($A3,Team1,2,FALSE)),IF(ISERROR(VLOOKUP($A3,Team2,2,FALSE)),IF(ISERROR(VLOOKUP($A3,Team3,2,FALSE)),0, VLOOKUP($A3,Team3,2,FALSE)),VLOOKUP($A3,Team2,2,FALSE)),VLOOKUP($A3,Team1,2,FALSE))

I just need this formula when team 3 is not included. I simply deleted the last condition (team3) but I got an N/A error. Im assuming Im missing some brakcet or other...

How do I do this?
 
Last edited:
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Maybe this:

=IF(ISERROR(VLOOKUP($A3,Team1,2,FALSE)),IF(ISERROR(VLOOKUP($A3,Team2,2,FALSE)),0,VLOOKUP($A3,Team2,2,FALSE)),VLOOKUP($A3,Team1,2,FALSE))

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,790
Members
451,589
Latest member
Harold14

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