Displaying most recent number in a horizontal array

des378

New Member
Joined
Jun 11, 2024
Messages
8
Office Version
  1. 365
Platform
  1. MacOS
Hi,

I have an array full of prices and 1 date column. I need to display the most recent value of each row's array that are all equal to today's date. I plan to sum all the numbers eventually.

Ex:

TODAY'S DATE: July 4th 2024

04-Jul$14.00$45.00
78.00​
18-May$63.00$86.00
$92.00​
04-Jul$134.00$34.00$50.00
04-Jul$25.00

Output:

78
50
25

(Summed up this would be 153)

Thanks in advance!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
You can try:
Book1
ABCDE
1
24-Jul$14.00$ 45.00$ 78.00
318-May$63.00$ 86.00$ 92.00
44-Jul$134.00$ 34.00$ 50.00
54-Jul$25.00
6
7DateMost recent valuesSum
84-Jul78153
950
1025
Sheet8
Cell Formulas
RangeFormula
B8:B10B8=BYROW(FILTER(B2:E5,A2:A5=A8),LAMBDA(r,XLOOKUP(TRUE,r<>0,r,,,-1)))
C8C8=SUM(B8#)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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