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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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