Excel 365 Vstack and "Total"

Sourdough123

Board Regular
Joined
Oct 25, 2021
Messages
142
Office Version
  1. 365
Platform
  1. Windows
Hi can you assist me in Adding "Total" at end of data
thisiis formula
=LET(u,UNIQUE(FILTER($CI$50:$CI$1000,$CI$50:$CI$1000<>"")),s,SUMIFS($CK:$CK,$CI:$CI,u,$CJ:$CJ,CP49),TAKE(SORT(FILTER(HSTACK(u,s),s<>0),2,-1),10))
Thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Do you mean you want the word Total to appear below the last row?
 
Upvote 0
Ok, how about
Excel Formula:
=LET(u,UNIQUE(FILTER($CI$50:$CI$1000,$CI$50:$CI$1000<>"")),s,SUMIFS($CK:$CK,$CI:$CI,u,$CJ:$CJ,CP49),VSTACK(TAKE(SORT(FILTER(HSTACK(u,s),s<>0),2,-1),10),{"Total",""}))
 
Upvote 0
=LET(u,UNIQUE(FILTER($CI$50:$CI$1000,$CI$50:$CI$1000<>"")),s,SUMIFS($CK:$CK,$CI:$CI,u,$CJ:$CJ,CP49),VSTACK(TAKE(SORT(FILTER(HSTACK(u,s),s<>0),2,-1),10),{"Total",""}))
Book1
GH
4MSP404,733.00
5 LATREAU 207,982.00
6 Spotlight 206,295.00
7 BTM JOINERY 95,460.00
8 Paxton Kitchens 87,728.00
9 Elk SSW 84,560.00
10 My Kitchen Co 77,006.00
11 Quantum Leap 65,520.00
12 76 Build 49,210.00
13 Total
14
Sheet1

get spill error for 10 items ( as per formula) but if i reduce it to 9 it works

can you sum total also please
 
Upvote 0
The Spill error suggests that either G14 or H14 (or both) are not empty.
 
Upvote 0
How about
Excel Formula:
=LET(u,UNIQUE(FILTER($CI$50:$CI$1000,$CI$50:$CI$1000<>"")),s,SUMIFS($CK:$CK,$CI:$CI,u,$CJ:$CJ,CP49),VSTACK(TAKE(SORT(FILTER(HSTACK(u,s),s<>0),2,-1),10),HSTACK("Total",SUM(s))))
 
Upvote 0
Book1
GH
4ArethaJob Value
5MSP404,733.00
6LATREAU207,982.00
7Spotlight206,295.00
8BTM JOINERY95,460.00
9Paxton Kitchens87,728.00
10Elk SSW84,560.00
11My Kitchen Co77,006.00
12Quantum Leap65,520.00
1376 Build49,210.00
14 Louws Carpentry 41,727.00
15Total1,483,974.00
16163,753.00
171,320,221.00
Sheet1

=LET(u,UNIQUE(FILTER($CI$50:$CI$1000,$CI$50:$CI$1000<>"")),s,SUMIFS($CK:$CK,$CI:$CI,u,$CJ:$CJ,CP49),VSTACK(TAKE(SORT(FILTER(HSTACK(u,s),s<>0),2,-1),10),HSTACK("Total",SUM(s))))

This is not adding up
I cant see how
Thanks
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,294
Members
449,149
Latest member
mwdbActuary

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