Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
drwrbrts
 
Posts: n/a
Default formulas and drop down lists


I have a table of data converted into a dropdown list that contains a
few columns with just "yes" or "no" entries. I created a formula below
the actual blue border of the list to calculate the percentage of yes'
in the list:
=COUNTIF(E2:E40,"Yes")/(COUNTIF(E2:E40,"Yes")+COUNTIF(E2:E40,"no"))

However, this only calculates the data for the entire list, even when I
have filtered it. How do I modify it to apply only to the filtered
entries in the list? Thanks if you can help, guys.


--
drwrbrts
------------------------------------------------------------------------
drwrbrts's Profile: http://www.excelforum.com/member.php...o&userid=35122
View this thread: http://www.excelforum.com/showthread...hreadid=548768

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default formulas and drop down lists

Try...

=SUMPRODUCT(SUBTOTAL(3,OFFSET(E2:E40,ROW(E2:E40)-ROW(E2),0,1)),--(E2:E40=
"Yes"))/SUBTOTAL(3,E2:E40)

Hope this helps!

In article ,
drwrbrts
wrote:

I have a table of data converted into a dropdown list that contains a
few columns with just "yes" or "no" entries. I created a formula below
the actual blue border of the list to calculate the percentage of yes'
in the list:
=COUNTIF(E2:E40,"Yes")/(COUNTIF(E2:E40,"Yes")+COUNTIF(E2:E40,"no"))

However, this only calculates the data for the entire list, even when I
have filtered it. How do I modify it to apply only to the filtered
entries in the list? Thanks if you can help, guys.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
drop down formulas Tim Excel Worksheet Functions 1 May 22nd 06 06:17 AM
time sheet drop down lists Steve Excel Discussion (Misc queries) 12 March 18th 06 10:30 PM
using formulas in a drop down box Matt Excel Worksheet Functions 0 July 28th 05 02:36 PM
formulas for drop down menus Char Excel Discussion (Misc queries) 0 July 18th 05 07:29 PM
formulas from a drop down box Lisa H via OfficeKB.com Excel Discussion (Misc queries) 6 May 28th 05 01:18 AM


All times are GMT +1. The time now is 06:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"