follow on question to Solved INDEX MATCH involving Formatting results with mixed text, dates and handling BLANKS

blbat

Active Member
Joined
Mar 24, 2010
Messages
338
Office Version
  1. 2016
  2. 2013
Fluff solved the original question here: INDEX MATCH 2 Columns in sheet1 with 2 columns in sheet2 return value from Sheet1 into Sheet2 (no VBA)

I didn't think to ask for an answer involving handling BLANKs, and formatting the results of the INDEX MATCH when the column can contain both Dates and Text values.

Fluffs SOLVED answer:
=INDEX(Sheet1!$H$2:$H$59,MATCH($A2&"|"&$H2,Sheet1!$A$2:$A59&"|"&Sheet1!$D$2:$D$59,0))


Now I introduced an "IFERROR" statement:

=IFERROR(INDEX(Sheet1!$H$2:$H$59,MATCH($A2&"|"&$H2,Sheet1!$A$2:$A59&"|"&Sheet1!$D$2:$D$59,0)), "No Entry")

Now, If the INDEX MATCH value can be a BLANK, contain TEXT, or contains DATE, how do I get it to display properly on the second sheet?

Formatting the Second Sheet column as "General", "Text", or "Date" doesn't work for all three possibilities.

What's the fix?

(Fluff- I almost posted this in the original question, but thought it might rate it's own post...hope that's ok)
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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