Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default I need the percentage of objects used in a drop-down box

I'm creating a spreadsheet of the different sites that I visit. There are 12
different areas that I have listed in a drop-down box. since there are
multiple sites within a given area, they will show up on the sheet multiple
times. What I need is to show the percentage of the 12 different areas I
have visited as a running calculation. Example; NYC (2 times) Portland (3
times) Atlanta (1 time) Chicago (4 times). I made 10 visits, showing 4 areas
10 times and actually visited 33.33% of my areas
--
John
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default I need the percentage of objects used in a drop-down box

Hi John,
Try
=COUNTIF($A:$A,C2)
Where column A is where you enter your data and C2 is in your case the area
i.e. NYC
If you are not using excel 2007 replace the above formula with

=COUNTIF($A1:$A1000,C2)

"John C" wrote:

I'm creating a spreadsheet of the different sites that I visit. There are 12
different areas that I have listed in a drop-down box. since there are
multiple sites within a given area, they will show up on the sheet multiple
times. What I need is to show the percentage of the 12 different areas I
have visited as a running calculation. Example; NYC (2 times) Portland (3
times) Atlanta (1 time) Chicago (4 times). I made 10 visits, showing 4 areas
10 times and actually visited 33.33% of my areas
--
John

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default I need the percentage of objects used in a drop-down box

Hi,

I'm not entirely clear on what you are asking. Show us a sample layout.

Here is my guess - you have a list of all the places you visited in A1:A100,
in B1 you have a Data Validation drop down listing the unique entries in
column A. If that is the case then in C1 enter the following formula

=COUNTIF(A1:A100,B1)/COUNTA(A1:A100)

and format as a percent.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"John C" wrote:

I'm creating a spreadsheet of the different sites that I visit. There are 12
different areas that I have listed in a drop-down box. since there are
multiple sites within a given area, they will show up on the sheet multiple
times. What I need is to show the percentage of the 12 different areas I
have visited as a running calculation. Example; NYC (2 times) Portland (3
times) Atlanta (1 time) Chicago (4 times). I made 10 visits, showing 4 areas
10 times and actually visited 33.33% of my areas
--
John

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
CREATE SERIES OF PERCENTAGE OPTIONS 4 A VALUE. IN A DROP DOWN BOX Luke Excel Worksheet Functions 2 January 1st 07 06:34 PM
Calculating a percentage with the end percentage in mind Shadowshady Excel Discussion (Misc queries) 2 June 17th 06 09:41 AM
How to create a drop down menu for objects DORI Excel Worksheet Functions 3 November 28th 05 12:58 AM
Bar Chart depicting the "percentage of another percentage(less than 100)" TEAM Charts and Charting in Excel 1 October 28th 05 05:06 AM
VBA Objects Kevin Excel Discussion (Misc queries) 8 January 1st 05 09:07 PM


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

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

About Us

"It's about Microsoft Excel"