Help with an index match formula involving returning Dates

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
888
Office Version
  1. 365
Platform
  1. Windows
I have the below formula that indexes column Q. Column Q has dates in it as well as blanks. This formula is working for me with one exception:

If there are blank cells in Q the formula will return the date: 01/00/1900

How can I modify this formula to return a blank if there is a blank in column Q?

=IFERROR(TEXT(INDEX('Manual Log'!Q:Q,MATCH('Parts in Engineering'!A2,'Manual Log'!A:A,FALSE)),"MM/DD/YYYY")&"","")

Any help would be appreciated.

Thank you

Carla
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
How about
=IFERROR(TEXT(IFERROR(1/(1/INDEX('Manual Log'!Q:Q,MATCH(A2,'Manual Log'!A:A,FALSE))),""),"MM/DD/YYYY")&"","")
 
Upvote 0
Try

=IFERROR(TEXT(INDEX('Manual Log'!Q:Q,MATCH('Parts in Engineering'!A2,'Manual Log'!A:A,FALSE)),"MM/DD/YYYY;;;"),"")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
If Manual Log'!A:A contains only unique entries, then you could also use

=TEXT(MAXIFS(Manual Log'!A:A,A2,Manual Log'!Q:Q),"mm/dd/yyyy;;;")

The semi-colons in the text format eliminate the 01/00/1900 dates and the removal of the match function does away with the need for iferror.
 
Upvote 0
Too late to edit my previous reply but I just realised that I used the syntax for sumif in error, the formula should be

=TEXT(MAXIFS(Manual Log'!Q:Q,Manual Log'!A:A,A2),"mm/dd/yyyy;;;")
 
Upvote 0
=IF(ISNUMBER(V(INDEX('Manual Log'!Q:Q,MATCH('Parts in Engineering'!A2,'Manual Log'!A:A,0)))),TEXT(V(),"MM/DD/YYYY"),"")


For the foregoing formula to work, we need to install the V() function using Alt+F11 of which the code is as follows:

Public Function V(Optional vrnt As Variant) As Variant
'
' Stephen
Dunn
' 2002-09-12
'
Static vrntV As Variant
If Not IsMissing(vrnt) Then vrntV = vrnt
V = vrntV
End Function
 
Upvote 0

Forum statistics

Threads
1,214,892
Messages
6,122,112
Members
449,066
Latest member
Andyg666

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