IF(OR does not work.

oz67

New Member
Joined
Aug 3, 2020
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hi

When one of the three conditions is true, which returns a "PM12345", I get a blank cell "". I also used ISTEXT, but did not help. How can I get around this?

=IF(OR(ISNUMBER(VLOOKUP(H4982,'Bob''s V3'!K:K,1,0)=H4982), ISNUMBER(VLOOKUP(H4982,MFG!A:A,1,0)=H4982), RIGHT(H4982,5)>="17000"),"V3","")

Thanks,
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You just had some parenthesis out of order.

Code:
=IF(OR(ISNUMBER(VLOOKUP(H4982,'Bob''s V3'!K:K,1,0)=H4982), ISNUMBER(VLOOKUP(H4982,MFG!A:A,1,0))=H4982, RIGHT(H4982,5)>="17000"),"V3","")
 
Upvote 0
Check the syntax in each part. You can use Excel's Formula Evaluate.

T202008a.xlsm
E
3V3
4c
Cell Formulas
RangeFormula
E3E3=IF(OR(VLOOKUP(H4,'Bob''''s V3'!K:K,1,0)=H4,VLOOKUP(H4,MFG!A:A,1,0)=H4),"V3","")


N.B.
- I used H4 instead of H4982
- you cannot use ' in sheet names
- what do you want to do with the 3rd part of the or? What is the data field.
- what result do you want, text or the value in cell V3?
 
Upvote 0
ISNUMBER(VLOOKUP(H4982,'Bob''s V3'!K:K,1,0)=H4982)
i dont think you need the ISNUMBER? the (VLOOKUP(H4982,'Bob''s V3'!K:K,1,0)=H4982) should give you TRUE/FALSE. i dont think you can ISNUMBER or ISTEXT on a TRUE/FALSE or it will always give you FALSE
 
Upvote 0
Maybe:
=IF(OR(VLOOKUP(H4982,'Bob''s V3'!K:K,1,0)=H4982,VLOOKUP(H4982,MFG!A:A,1,0)=H4982,RIGHT(H4982,5)*1>=17000),"V3","")

If V3 is reference to a cell then drop the quotes around it.
 
Upvote 0
Check the syntax in each part. You can use Excel's Formula Evaluate.

T202008a.xlsm
E
3V3
4c
Cell Formulas
RangeFormula
E3E3=IF(OR(VLOOKUP(H4,'Bob''''s V3'!K:K,1,0)=H4,VLOOKUP(H4,MFG!A:A,1,0)=H4),"V3","")


N.B.
- I used H4 instead of H4982
- you cannot use ' in sheet names
- what do you want to do with the 3rd part of the or? What is the data field.
- what result do you want, text or the value in cell V3?


If you look at the image below, condition 1 returns the value, condition 2 returns #N/A, condition 3 returns the value. Since I am using OR, it should return "V3" since one of the conditions is true, but it returns #N/A. How can I get around #N/A?

1596761584736.png
 
Upvote 0
It's not finding a match which is why you are getting #N/A.
Maybe try changing the 2nd condition to:
IFERROR(VLOOKUP(H4982,MFG!A:A,1,0),0)=H4982
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

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