once data is filtered, how to sum up a particular col. value

immerse

New Member
Joined
Jul 18, 2004
Messages
31
Hi,

I'm interested to find out if its possible to sum a particular column value once its filtered and only sum up that which is shown on the screen or within a certain finite columns.

eg. i've got a series of columns such as

col a (Head co.)
col b (Values)

the entire spreadsheet contains like 15862 rows..

I filter by Head co. with autofilter,

and it subsequently shows the values...

so what id like is some code perhaps or if no code is good to, to simply now sum up the values of what is shown in col b after the filter..

hence it will change as the filter or as a different head company is chosen.

thanks again guys...
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Re: once data is filtered, how to sum up a particular col. v

=subtotal(9,A2:A15862) Will only total the visibale cells. The 9 refers to the functions which is add and A1:A15862 refers to the range of cells
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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