#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Percent Formula's

I have 1 column. It contains a W or an L in each individual cell down the
column to confirm wins and losses. How do I create a formula in a cell at
the bottom of that column to calculate the percentage of W to the entire
column of W and L?

Thank you,

Stephen
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Percent Formula's

Hello:

One way:
Use the following to compute the perentage of wins, (1-wins would be
percent of losses assuming no ties.)

=COUNTIF(A2:A7,"w")/COUNTA(A2:A7)

Assumes the w/l are in a2:a7 adjust accordingly.

Pieter Vandenberg


Bizman2125 wrote:
: I have 1 column. It contains a W or an L in each individual cell down the
: column to confirm wins and losses. How do I create a formula in a cell at
: the bottom of that column to calculate the percentage of W to the entire
: column of W and L?

: Thank you,

: Stephen
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Percent Formula's

If you're certain that the cells will either be blank or contain one of "W"
or "L", then try something like this:

=COUNTIF(A1:A20,"W")/COUNTA(A1:A20)
That formula divides the number of cells containing "W" by the number of
non-blank cells.

Otherwise, maybe this? :
=COUNTIF(A1:A20,"W")/SUM(COUNTIF(A1:A20,{"W","L"}))
That formula divides the number of cells containing "W" by the number of
cells containing either "W" or "L".

In either case, format the cell as percent.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Bizman2125" wrote:

I have 1 column. It contains a W or an L in each individual cell down the
column to confirm wins and losses. How do I create a formula in a cell at
the bottom of that column to calculate the percentage of W to the entire
column of W and L?

Thank you,

Stephen

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Percent Formula's

=COUNTIF(A1:A100,"W")/COUNTA(A1:A100)
=COUNTIF(A1:A100,"L")/COUNTA(A1:100)

Format cell as percentage

ma ma no teeth

"Bizman2125" wrote:

I have 1 column. It contains a W or an L in each individual cell down the
column to confirm wins and losses. How do I create a formula in a cell at
the bottom of that column to calculate the percentage of W to the entire
column of W and L?

Thank you,

Stephen

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
How to change column letters to correct ones in many formulas automatically? Dmitry Kopnichev Links and Linking in Excel 7 October 13th 05 09:52 PM
how can i get formulas in excel to copy and paste? bman Excel Worksheet Functions 1 October 3rd 05 04:15 PM
How prevent formulas to get external references/path to current workbook? Gunnar Johansson Excel Worksheet Functions 1 August 15th 05 10:39 AM
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


All times are GMT +1. The time now is 08:53 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"