Parsing out a cell from an array, and outputting the value.

ScottP4680

New Member
Joined
Feb 19, 2020
Messages
6
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
So I have a horizontal rolling calendar that has columns for the month, and in each column there's a date something happened (a calibration date) in a given month. I need a formula that can spit out the last 2 dates in a given row, and ignoring any date that's yet to come (the upcoming due date for the event to occur). Once cell will have the most recent date, prior to today, and another cell will have the SECOND most recent date.

My semi-excel algorithm looks like this in my head:
=#ROWLOOKUPIF(#REF<today(), #LASTCELLVALUE, #KEEPLOOKING)
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Maybe something like this

Dates as dd/mm/yyyy

Pasta1
ABCDEFGHIJKLMNOP
1JanFebMarAprMayJunJulAugSepOctNovDecResult1Result2
202/02/202110/05/202120/08/202130/12/202120/08/202110/05/2021
304/03/202105/04/202107/07/202127/12/202107/07/202105/04/2021
410/06/202130/12/202110/06/2021 
Plan4
Cell Formulas
RangeFormula
O2:P4O2=IF(COUNTIF($B2:$M2,"<"&TODAY())>=COLUMNS($O2:O2),AGGREGATE(14,6,$B2:$M2/($B2:$M2<TODAY()),COLUMNS($O2:O2)),"")


Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,215,453
Messages
6,124,929
Members
449,195
Latest member
Stevenciu

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