Return next date if....

Steves73

Board Regular
Joined
Oct 19, 2016
Messages
173
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I know there is a way just can't think of the formula

As shown below I have formulas that returns a date in Cell F12 if sees the first 250 in row 11. As 250 comes up often I need to capture in cell G12 the next date (In this case it would be 14-Aug-23) after cell F12 is populated

I.E, Formula looks at F12, see it has a date in it, so returns the date of when the next 250 come along. in this case it should return 14-Aug-23

Hope this makes sense


1685875519816.png
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
And which is your Office version?
And 14-Aug-23 is the correct answer for you because it is "the second" occourrence for 250 or because it is "the last" one? Or why?
 
Upvote 0
Office 365
The current formula in Cell F12 picks up the first "250", in need a formula that search's row 11 and picks up the 2nd "250"
 
Upvote 0
Office 365

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
Try, in F12
VBA Code:
=IFERROR(LET(yData,$AH$12:$KV$12,yVal,E12,tCol,SMALL(IF(yData=E12,COLUMN(yData),""),2),INDEX($A$10:$KV$10,tCol)),"")
 
Upvote 0
Solution
Thanks Mate, You have done it. Works perfectly :)

Thank you
 
Upvote 0
Account Edited and updated
Thanks for that (y)
Another option in F12 will return the first two dates
Excel Formula:
=TAKE(FILTER($K$10:$KV$10,$K12:$KV12=$E12),,2)
 
Upvote 0
Just tried that one, impressive, works perfectly as well.

To all, Thank you very much.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,170
Messages
6,123,416
Members
449,099
Latest member
COOT

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