Looking at second Index Match if first is blank

ssidhu8

New Member
Joined
Nov 28, 2017
Messages
2
Hello All,

Been looking all over for this answer but am yet to still figure it out.
Since index match only looks at the first match, and if it is blank it will return a 0, how do I get excel to look at the second match which may contain information?

Here is the data I am working with and the current formula I have:

Sheet 1
A
PM

B
Area

C
Project ID

D
Project Name

BA
P.05780
Martin Install
BA
P.05780
Martin Install
BA
P.05780
Martin Install
BA
P.05780
Martin Install

<tbody>
</tbody>


The PM name I am trying to find is in sheet 2 column J
D
Project #

E
Order


F
Order Description


G
Budget Center


H
Budget Level 3


I
Status


J
PM

P.05780
Install Martin
Bay Area
Operations
P.05780
Install Martin
Bay Area
Operations
Active
Salem, Rahi

<tbody>
</tbody>

The current formula I have is :
INDEX('Sheet 2!J:J,MATCH('Sheet 1!C1,'Sheet 2!D:D,0)))

How do I get excel to look at row 2 along with row 1 to return the value of Salem, Rahi?

Thank you!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I think you mean C2 not C1 because you have headers. Does this work for you?

=INDEX(Sheet2!J:J,MATCH(1,(Sheet2!D:D=Sheet1!C2)*(Sheet2!J:J<>""),0))

Confirm with CTRL-SHIFT-ENTER rather than just Enter.
 
Upvote 0

Forum statistics

Threads
1,213,486
Messages
6,113,932
Members
448,533
Latest member
thietbibeboiwasaco

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