Summing all previous numbers with criteria

des378

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

Hi again,


Looking to sum all previous numbers based on criteria. Need output to be a horizontal spilled range.. Example below. I have a formula but it uses the "OFFSET" function and I need to do this without volatile functions in Excel. Thanks in advance!

Ex
2024-11-18 2024-05-12 2024-10-09 2024-11-18 2024-10-09
50 100 30 75 90

Output all summed previous numbers as a horizontal spilled range that are equal to 2024-11-18
Output:
2024-11-18 2024-05-12 2024-10-09 2024-11-18 2024-10-09
50 n/a n/a 125 n/a

If it could also display n/a or 0 as a value that would be great (e.g changeable between both).
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
A reminder:

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Try:
Book1
ABCDE
111/18/245/12/2410/9/2411/18/2410/9/24
250100307590
3
4
511/18/24
650n/an/a125n/a
Sheet5
Cell Formulas
RangeFormula
A6:E6A6=LET(x,A1:E1=A5,IF(x,SCAN(0,IF(x,A2:E2,0),LAMBDA(a,b,SUM(a,b))),"n/a"))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,094
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