Find Highest (my recent ) date where the adjacent cell doesn't = "No Data"

APML

Board Regular
Joined
Sep 10, 2021
Messages
216
Office Version
  1. 365
Hi All, I'm looking for a formula to : (Date Range is C10 : C28 and Close Price is D10 : D28)
Return the highest date where the adjacent cell doesn't equal "No Data"
Note the Date Range won't necessarily be in date order as shown in my screenshot
All help is appreciated.


1665178762199.png
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Try this formula:
Excel Formula:
=MAXIFS(C10:C28,D10:D28,"<>"&"No Data")
 
Upvote 0
Solution
Thx works great. I'm using it to return the adjacent value which is used in another formula. The below works (using your formula), just wondering if there's an easier way?
=XLOOKUP(MAXIFS(C10:C269,D10:D269,"<>"&"No Data"),C10:C269,D10:D269,"No Data",0)
 
Upvote 0
Thx works great. I'm using it to return the adjacent value which is used in another formula. The below works (using your formula), just wondering if there's an easier way?
=XLOOKUP(MAXIFS(C10:C269,D10:D269,"<>"&"No Data"),C10:C269,D10:D269,"No Data",0)
You could probably use XLOOKUP, VLOOKUP, or INDEX/MATCH.
They should all work.
I hear that INDEX/MATCH might be a little more efficient, but XLOOKUP and VLOOKUP are a little more intuitive, IMO.
 
Upvote 0
You are welcome.
 
Upvote 0
just wondering if there's an easier way?
Your data appears to be chronological (from bottom up) so it seems that you are just looking for the first number in column D. If that is the case then there is no need to even calculate the date.

Excel Formula:
=INDEX(FILTER(D10:D269,ISNUMBER(D10:D269)),1)
 
Upvote 0
Your data appears to be chronological (from bottom up) so it seems that you are just looking for the first number in column D. If that is the case then there is no need to even calculate the date.
Based on what they said in the original question, I don't think we can assume that will always be the case.
Note the Date Range won't necessarily be in date order as shown in my screenshot
 
Upvote 0
Based on what they said in the original question, I don't think we can assume that will always be the case.
Thanks Joe - should have put my đź‘“ on!

Excel Formula:
=INDEX(SORT(FILTER(C10:D269,ISNUMBER(D10:D269)),1,-1),1,2)
 
Upvote 0

Forum statistics

Threads
1,216,172
Messages
6,129,290
Members
449,498
Latest member
Lee_ray

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