if or formula

Likeexcel

Active Member
Joined
Sep 2, 2009
Messages
308
Hello:
Currently I have this formula:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
=IF(BN16="Exclude","Exclude",VLOOKUP(AG16,CC:CK,9,FALSE))<o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
I want to add that if BN16 is equal to the word “Exclude” or the number 0, then “Exclude”, otherwise vlookup AG16,CC:CK,9,FALSE<o:p></o:p>

thank you in advance!
 

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.
=IF(OR(BN16="Exclude",BN16=0),"Exclude",VLOOKUP(AG16,CC:CK,9,FALSE))<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
 
Upvote 0
Try

=IF(OR(BN16={"Exclude",0}),"Exclude",VLOOKUP(AG16,CC:CK,9,FALSE))<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
 
Upvote 0
Try

=IF(OR(BN16={"Exclude",0}),"Exclude",VLOOKUP(AG16,CC:CK,9,FALSE))<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>


Hi Jon:

with the formula above, could i also add this?
if BN16 minus VLOOKUP(AG16,CC:CK,9,FALSE) is greater than zero than equals the word "exclude", otherwise equals to the word "ok"

thank you again.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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