Displaying most recent number in a horizontal array

des378

New Member
Joined
Jun 11, 2024
Messages
10
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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,224,813
Messages
6,181,107
Members
453,021
Latest member
Justyna P

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