Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
I'm using this formula to add up unique fields (peoples names who appear many times) =SUMPRODUCT((L3:L2052<"")/COUNTIF(L3:L2052,L3:L2052&"")) Is there a way to adapt this so that when I auto filter it will only add up the visible unique cells? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Advanced Filter to filter the unique records, then use Auto Filter to filter
your criteria, then use Subtotal function to count. "Scott" wrote: Hi I'm using this formula to add up unique fields (peoples names who appear many times) =SUMPRODUCT((L3:L2052<"")/COUNTIF(L3:L2052,L3:L2052&"")) Is there a way to adapt this so that when I auto filter it will only add up the visible unique cells? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this array formula** :
=COUNT(1/FREQUENCY(IF(SUBTOTAL(3,OFFSET(L3,ROW(L3:L2052)-ROW(L3),)),MATCH(L3:L2052,L3:L2052,0)),ROW(L3:L205 2)-ROW(L3))) ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "Scott" wrote in message ... Hi I'm using this formula to add up unique fields (peoples names who appear many times) =SUMPRODUCT((L3:L2052<"")/COUNTIF(L3:L2052,L3:L2052&"")) Is there a way to adapt this so that when I auto filter it will only add up the visible unique cells? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Worked a treat, thank you
"T. Valko" wrote: Try this array formula** : =COUNT(1/FREQUENCY(IF(SUBTOTAL(3,OFFSET(L3,ROW(L3:L2052)-ROW(L3),)),MATCH(L3:L2052,L3:L2052,0)),ROW(L3:L205 2)-ROW(L3))) ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "Scott" wrote in message ... Hi I'm using this formula to add up unique fields (peoples names who appear many times) =SUMPRODUCT((L3:L2052<"")/COUNTIF(L3:L2052,L3:L2052&"")) Is there a way to adapt this so that when I auto filter it will only add up the visible unique cells? |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're welcome. Thanks for the feedback!
-- Biff Microsoft Excel MVP "Scott" wrote in message ... Worked a treat, thank you "T. Valko" wrote: Try this array formula** : =COUNT(1/FREQUENCY(IF(SUBTOTAL(3,OFFSET(L3,ROW(L3:L2052)-ROW(L3),)),MATCH(L3:L2052,L3:L2052,0)),ROW(L3:L205 2)-ROW(L3))) ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "Scott" wrote in message ... Hi I'm using this formula to add up unique fields (peoples names who appear many times) =SUMPRODUCT((L3:L2052<"")/COUNTIF(L3:L2052,L3:L2052&"")) Is there a way to adapt this so that when I auto filter it will only add up the visible unique cells? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumproduct with autofilter | Excel Worksheet Functions | |||
SUMPRODUCT w/ Autofilter | Excel Discussion (Misc queries) | |||
Autofilter & Sumproduct | Excel Discussion (Misc queries) | |||
Using Sumproduct in Autofilter | Excel Worksheet Functions | |||
SUMPRODUCT with Autofilter | Excel Worksheet Functions |