Formula help - last date in a range with criterion

virtuosok

Board Regular
Joined
Sep 2, 2020
Messages
209
Office Version
  1. 365
Platform
  1. Windows
Hi,
I am likely missing something very obvious... can you tell me what is wrong with the formula as it currently stands? I am trying for it to return the last date with 1 criterion.
Here's the source tab:
Capture.PNG


...and here's the tab with the formula in cell O10; I expect it to return the value from cell N3 above, i.e. 10 Jan 2020 but it returns zero:

tempsnip.png
 
That's why I said it needs CSE entry. ;)
What is wrong with the MIN formula I provided?
It returns indefinite number of ############### signs (if the cell is formatted as date). Or, if I format the cell to number just to check what's in there, it returns 10,000,000,000
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
That suggests that there no matches for the value in B10.
 
Upvote 0
If that's the case try
Excel Formula:
=IFERROR(1/(1/MIN(IF(B10=IWRS002!$H$2:$H$3000,IWRS002!$P$2:$P$3000,""))),"")
 
Upvote 0
Ok thanks. Let me paste the clips. The MAX formula works perfectly, but the MIN still does not... The last clip (source) is on a tab named IWRS001
 

Attachments

  • MAX.PNG
    MAX.PNG
    29.3 KB · Views: 4
  • MIN.PNG
    MIN.PNG
    26.7 KB · Views: 3
  • Source.PNG
    Source.PNG
    7.7 KB · Views: 3
Upvote 0
Do you have any blank cells in col N where col A is 7?
 
Upvote 0
Do you have any blank cells in col N where col A is 7?
No, all entries in column A have a corresponding date in column N. In other words, column N has no blank entries. I actually double checked the formatting in column N and it was "general"; however switching it to DD-MMM-YYYY did not change anything in terms of MIN formula output... and then again, it worked for MAX :)
 
Upvote 0
Yes I think you're right; these dates are pulled from a third party portal and then pasted "as is".
Is there a way to have a formula addressing this? Or do I need to convert all these text entries into dates? (in which case I think I would need 2 helper columns)
 
Upvote 0
You could try text to columns,
select the column then in text to columns, select delimited, next , uncheck all boxes, next, select DMY from the date drop down, Finish
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,955
Latest member
BatCoder

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