Index/Match statement with OR operator

dbarbella

New Member
Joined
Jun 6, 2017
Messages
32
Hi all,
I need to enhance the formula:
=IF(INDEX('Salesforce Combined Data'!$P$3:$P$9999,MATCH($B4,'Salesforce Combined Data'!$C$3:$C$9999, 0))<>"","*","")

Right now, it checks if there is a value in a cell on another sheet.
If so, instead of showing the actual value, it shows an asterisks (leave blank if no value in the cell from the other sheet).

I'm very stuck working out the syntax for this evolution.
I need the same formula to check if there is a value in either of 2 columns from that other sheet.

So
If a value exists in either
'Salesforce Combined Data'!$P$3:$P$9999
OR
'Salesforce Combined Data'!$T$3:$T$9999
<Then the rest is all the same>


What is the proper syntax to achieve that?

Thanks so much for any help
-Dave
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I came up with a solution using nested If statements. Not sure if this is the best approach, but at least it's working for now:
=IF(INDEX('Salesforce Combined Data'!$R$3:$R$9999,MATCH($B14,'Salesforce Combined Data'!$C$3:$C$9999, 0))<>"","*"
,IF(INDEX('Salesforce Combined Data'!$V$3:$V$9999,MATCH($B14,'Salesforce Combined Data'!$C$3:$C$9999, 0))<>"","*"
,""))
 
Upvote 0
Here's how you could do it with OR.

=IF(OR(INDEX('Salesforce Combined Data'!$R$3:$R$9999,MATCH($B14,'Salesforce Combined Data'!$C$3:$C$9999,0))<>"",INDEX('Salesforce Combined Data'!$V$3:$V$9999,MATCH($B14,'Salesforce Combined Data'!$C$3:$C$9999,0))<>""),"*","")
 
Upvote 0

Forum statistics

Threads
1,214,553
Messages
6,120,179
Members
448,948
Latest member
spamiki

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