How to 'append' cells to a spill?

Rnkhch

Well-known Member
Joined
Apr 28, 2018
Messages
528
Office Version
  1. 365
Platform
  1. Windows
Hello,

I use FILTER to get an output spill of numbers with the needed conditions, as shown in the attached XL2BB, but I was wondering if there is any way I could append the SUM of the spilled cells at the beginning of the spill, followed by the actual spill? 😂 In the example, I put the spill in D2 and manually included the SUM in D1

Thanks for any input!


Book1
ABCDE
1188b545
272a72
362c183
492g101
5121d189
6183a
7140t
8194f
9144h
10104s
11106d
12101a
13189a
14165f
1565v
16
Sheet1
Cell Formulas
RangeFormula
D1D1=SUM(FILTER(A1:A15,B1:B15="a"))
D2:D5D2=FILTER(A1:A15,B1:B15="a")
Dynamic array formulas.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi
Excel 365 Beta

=UNIQUE(TOCOL(CHOOSE({1\2},SUM(IF(B1:B15="a",A1:A15)),IF(B1:B15="a",A1:A15,#N/A)),2))
 
Upvote 0
Another option for those not on the beta channel.
Fluff.xlsm
ABCDE
1188b545
272a72
362c183
492g101
5121d189
6183a
7140t
8194f
9144h
10104s
11106d
12101a
13189a
14165f
1565v
Main
Cell Formulas
RangeFormula
D1:D5D1=LET(f,FILTER(A1:A15,B1:B15="a"),r,ROWS(f),s,SEQUENCE(r+1),IF(s=1,SUM(f),INDEX(f,s-1)))
Dynamic array formulas.
 
Upvote 0
Solution
Thank you guys so much! I'll mark Fluff's version as answer as I don't have TOCOL yet and I don't know when I'll get it :biggrin:
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,796
Members
449,095
Latest member
m_smith_solihull

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