INDEX MATCH not producing expected result

slam

Well-known Member
Joined
Sep 16, 2002
Messages
871
Office Version
  1. 365
  2. 2019
Hi lovelies,

I'm actually impressed that I got as far as I have, but something isn't quite right, and I'm not sure what it is.
  • On a worksheet called Report, I have a list of Teams in column B and a list of Names in column D.
  • On a worksheet called Planning, I have the same column structure of a list of Teams in column B and a list of Names in column D.
  • On the Report worksheet, I am trying to pull the values from column H of the planning worksheet where there's a match for both the Team and Name.

This is my array formula:


Excel Formula:
=INDEX(Planning!H$2:H$393,MATCH(1,($B2=Planning!$B$2:$B$393)*($D2=Planning!$D$2:$D$393),0))

I'm getting results where there isn't a match. What am I doing wrong?

Thanks!

EDIT: Ignore for now, think I found the problem, and its with my own data (as usual!) :)
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Just in case anyone is reading, I'm now stuck with something even more simple (I think). I just want to modify the formula to display a blank if the result is 0. Struggling with how to wrap it in, do I need an OR with the IFERROR?

Excel Formula:
=IFERROR(INDEX(Planning!H$2:H$393,MATCH(1,($B2=Planning!$B$2:$B$393)*($D2=Planning!$E$2:$E$393),0)),"")
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also what sort of values do you have in col H text or numbers?
 
Upvote 0
Hi Fluff,

Thanks for the response. I updated my profile, and signature too.

The values in column H are numbers with two decimal places. Like I said in my edit, I think I've got the INDEX/MATCH working, and I spot checked some data, though does text vs numbers make a difference?

Could I trouble you to help with my other piece in my post #2?

Thank you so much,
-PJ-
 
Upvote 0
does text vs numbers make a difference?
It does for this to work.
Excel Formula:
=IFERROR(1/(1/INDEX(Planning!H$2:H$393,MATCH(1,($B2=Planning!$B$2:$B$393)*($D2=Planning!$E$2:$E$393),0))),"")
 
Upvote 0
Solution
Perfect, thank you! I also just realized I can set a custom format like this to hide 0's

0;-0;;@
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,813
Messages
6,121,705
Members
449,048
Latest member
81jamesacct

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