Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default Formula for counting and dividing

Here's my example. Cells A1:H1 have + (plus sign: goal met) and - (minus
sign: goal not met) in them and some cells in the same row have nothing if
the goal was not ran that day. I need a formula that counts the number of +
signs and - signs (a total of the two: adding + and - together) and then it
divides the number of + signs by the answer. Any help is appreciated. I'd
like to have the answer in the format of percentage or fraction. I'm using
excel 2007 and the cell containing the answer are merged (will they need to
be unmerged?).

Thanks,
Mike
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Formula for counting and dividing

They would need to be unmerged first...

=Countif(A1:H1,"+")/counta(A1:H1)

This assumes those that have nothing truly are blank.

Otherwise:

=Countif(A1:H1,"+")/(Countif(A1:H1,"+")+Countif(A1:H1,"-"))

Gets it for sure.

"Preschool Mike" wrote:

Here's my example. Cells A1:H1 have + (plus sign: goal met) and - (minus
sign: goal not met) in them and some cells in the same row have nothing if
the goal was not ran that day. I need a formula that counts the number of +
signs and - signs (a total of the two: adding + and - together) and then it
divides the number of + signs by the answer. Any help is appreciated. I'd
like to have the answer in the format of percentage or fraction. I'm using
excel 2007 and the cell containing the answer are merged (will they need to
be unmerged?).

Thanks,
Mike

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
SUMPRODUCT: dividing the formula of one cell by another. SW Excel Worksheet Functions 1 July 14th 08 11:12 PM
What is the formula for dividing-I have the total Susan Excel Worksheet Functions 1 August 2nd 07 01:29 AM
Need formula for dividing by "number of entries" in a column or row [email protected] Excel Discussion (Misc queries) 3 April 5th 07 07:16 PM
Formula needed for dividing hours by numbers oxicottin Excel Discussion (Misc queries) 4 January 4th 07 11:06 AM
What is the formula for dividing a number by 4 in excel Blessingspoint Excel Worksheet Functions 1 January 13th 05 05:58 PM


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