Index / Match on possible blank Date fields

fddekker

Board Regular
Joined
Jun 30, 2008
Messages
86
Office Version
  1. 365
Platform
  1. Windows
I am using the following syntax to find a possible date or blank:

=INDEX(Invoices!$B$2:$B$192,MATCH(E2,Invoices!$A$2:$A$192,0))

Since the column were the result is displayed should be in date format, empty finds are displayed as 1/0/1900.

I know that I can use the test:
IF (result = blank, "", "lookup-result"), but in this case I have to type the whole Index/Match formula twice, which just don't look like very good coding.

I've tried ISBLANK, without the desired result.

What is the best way to test if the look-up result is blank, and then keep the result field also blank?

Thanks in advance.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Try to describe a problem you want to solve in words (concisely) along with a scaled-down sample. The problem description by means of a non-working formula is often not the right thing to do. Guessing:

Control+shift+enter, not just enter:

=IFERROR(INDEX(Invoices!$B$2:$B$192,MATCH(1,IF(1-(Invoices!$B$2:$B$192=""),IF(Invoices!$A$2:$A$192=E2,1)),0)),"")
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,453
Members
452,514
Latest member
cjkelly15

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