If Or formula

PHIL.Pearce84

Board Regular
Joined
May 16, 2011
Messages
152
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have the following formula, it seems to work to the point that if the vlookup returns true then the 0 appears, but when false it will not pull through the value in cell N3.

=IF(OR(VLOOKUP(A6,'Summary Source'!$E:$E,1,FALSE)=A6,VLOOKUP(A6,'Summary Source'!$F:$F,1,FALSE)=A6),0,SUM(N3))

Any help would be greatly appreciated.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
How about
=IF(OR(ISNUMBER(MATCH(A6,'Summary Source'!$E:$E,0)),ISNUMBER(MATCH(A6,'Summary Source'!$F:$F,0))),0,N3)
 
Upvote 0
That's amazing thank you, works like a charm.

Would you mind just explaining the ISNUMBER for me?
 
Upvote 0
It simply checks to see if a value is a number.
The MATCH function will either return a number or and error.
 
Upvote 0
From: =IF(OR(ISNUMBER(MATCH(A6,'Summary Source'!$E:$E,0)),ISNUMBER(MATCH(A6,'Summary Source'!$F:$F,0))),0,N3)

IF the match in column E is a number OR if the match in column F is a number, then the result is 0; otherwise, it's N3
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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