ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   count specific value with filtered data (https://www.excelbanter.com/excel-worksheet-functions/96706-count-specific-value-filtered-data.html)

Shawn13

count specific value with filtered data
 
I am trying to count the number of times a part number appears in a column of
filtered data. The part number is repeated because I need to track serial
numbers with it. I tried using the Countif function but it takes into
accound values that are filtered out. I sorted my data by part number and
used the subtotal function with CountA. This gives me an accurate total but
I have to constantly change the range when I add more parts to the
spreadsheet.

Should I be using the Subtotal function or is there another way to total my
values without having to constantly make modifications? Thank you for any
help provided.

Peo Sjoblom

count specific value with filtered data
 
=SUMPRODUCT(--($B$2:$B$200=Part#),SUBTOTAL(3,OFFSET($B$2,ROW($B$ 2:$B$200)-MIN(RO
W($B$2:$B$200)),,)))

will count Part# in a filtered list B2:B200, adapt to fit



--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"Shawn13" wrote in message
...
I am trying to count the number of times a part number appears in a column
of
filtered data. The part number is repeated because I need to track serial
numbers with it. I tried using the Countif function but it takes into
accound values that are filtered out. I sorted my data by part number and
used the subtotal function with CountA. This gives me an accurate total
but
I have to constantly change the range when I add more parts to the
spreadsheet.

Should I be using the Subtotal function or is there another way to total
my
values without having to constantly make modifications? Thank you for any
help provided.





All times are GMT +1. The time now is 05:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com