Index/Match formula that returns blank/empty cells instead of #N/A and 1/0/1900

heretolearnexcel

Board Regular
Joined
Jan 22, 2019
Messages
58
Office Version
  1. 365
Platform
  1. Windows
I need to look up a value in another list and if the value is found then get the value from the same row in another column. If the value isn't found I need to get an empty value back, if the value is found but the value in the other column is empty I need to get a blank cell back, and since it's a date value if left alone I'll get 1/0/1900. I want to find a solution with a single index/match formula. There are basically three possible scenarios of values found:
  1. The value is found and the date is found. With a normal index match I get a normal date value
  2. The value is found but the date is empty. With a normal index match I get a 1/0/1900 date value
  3. The value is not found. With a normal index match I get a #N/A value
Here is an example of the above

demo.xlsx
ABCDEF
1List 1List 2
2iddateiddate
31235/1/20211235/1/2021
4123491/0/190012344/3/2021
512632#N/A12345
6 123461/1/2021
712347
812348
912349
1012350
11123513/2/2021
1212352
1312353
14123542/28/2021
1512355
16123564/3/2021
1712357
1812358
Sheet1
Cell Formulas
RangeFormula
B3:B5B3=INDEX($F$3:$F$18,MATCH(A3,$E$3:$E$18,0))


I think I basically need to include the formulas: ISERROR and ISBLANK within the index/match formula. But I can only find a way to include one of them at a time. I tried using an IFS formula but It doesn't have the "if false" part, which I think is needed. Example with ISERROR:

demo.xlsx
ABCDEF
1List 1List 2
2iddate 1commentiddate 1
31235/1/20211235/1/2021
4123491/0/1900should get an empty cel12344/3/2021
512632 12345
6 123461/1/2021
712347
812348
912349
1012350
11123513/2/2021
1212352
1312353
14123542/28/2021
1512355
16123564/3/2021
1712357
1812358
Sheet1 (2)
Cell Formulas
RangeFormula
B3:B5B3=IF(ISERROR(INDEX($F$3:$F$18,MATCH(A3,$E$3:$E$18,0))),"",INDEX($F$3:$F$18,MATCH(A3,$E$3:$E$18,0)))


Example with ISBLANK:
demo.xlsx
ABCDEFG
1List 1List 2
2iddate 1commentiddate 1comment
31235/1/20211235/1/2021
412349 12344/3/2021
512632#N/Ashould get an empty cel12345
6 123461/1/2021
712347
812348
912349
1012350
11123513/2/2021
1212352
1312353
14123542/28/2021
1512355
16123564/3/2021
1712357
1812358
19
Sheet1 (2)
Cell Formulas
RangeFormula
B3:B5B3=IF(ISBLANK(INDEX($F$3:$F$18,MATCH(A3,$E$3:$E$18,0))),"",INDEX($F$3:$F$18,MATCH(A3,$E$3:$E$18,0)))


Thank you in advance.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
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’)
 
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’)
Done. Thanks for the suggestion. It's Excel 365.
 
Upvote 0
Thanks for that, how about
+Fluff 1.xlsm
ABCDEFG
1List 1List 2
2iddate 1commentiddate 1comment
312301/05/202112301/05/2021
412349 123403/04/2021
512632 should get an empty cel12345
6 1234601/01/2021
712347
812348
912349
1012350
111235102/03/2021
1212352
1312353
141235428/02/2021
1512355
161235603/04/2021
1712357
1812358
19
Summary
Cell Formulas
RangeFormula
B3:B5B3=LET(Return,XLOOKUP(A3,$E$3:$E$18,$F$3:$F$18,"",0),IF(Return="","",Return))
 
Upvote 0
Thanks for that, how about
+Fluff 1.xlsm
ABCDEFG
1List 1List 2
2iddate 1commentiddate 1comment
312301/05/202112301/05/2021
412349 123403/04/2021
512632 should get an empty cel12345
6 1234601/01/2021
712347
812348
912349
1012350
111235102/03/2021
1212352
1312353
141235428/02/2021
1512355
161235603/04/2021
1712357
1812358
19
Summary
Cell Formulas
RangeFormula
B3:B5B3=LET(Return,XLOOKUP(A3,$E$3:$E$18,$F$3:$F$18,"",0),IF(Return="","",Return))
That works perfectly, actually. Is there a version of an index/match that could potentially work as well? I'm trying to learn/improve my inded/match skills. I know xlookup can work great many times, but other times it doesn't seem to work, in certain specifc scenarios.
 
Upvote 0
You can use
Excel Formula:
=LET(Return,INDEX($F$3:$F$18,MATCH(A3,$E$3:$E$18,0)),IF(ISNA(Return),"",IF(Return="","",Return)))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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