A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count If.....help



 
 
Thread Tools Display Modes
  #1  
Old April 20th, 2010, 05:58 PM posted to microsoft.public.excel.worksheet.functions
Scott_goddard
external usenet poster
 
Posts: 32
Default Count If.....help

I am trying to sum the amount of time two words "high" and "very high" appear
in a col....I can get this to work for one word but when i try and nest the
statement it doest work - Why and how to i solve it.

=COUNTIF('(R2) Risks Log'!L9:L99,"Very High",CountIF(Risks
Log'!L9:L99,"High"))

thanks.
  #2  
Old April 20th, 2010, 06:08 PM posted to microsoft.public.excel.worksheet.functions
Duke Carey
external usenet poster
 
Posts: 1,027
Default Count If.....help

First, your question is ambiguous. Are you tring to count the number of
times a cell's contents - as a whole - is either "High" or "Very High"? Or
are you looking to count how many times the a) word or b) phrase appears
within other cell contents?

Second, COUNTIF() doesn't work the way you've tried to use it.

Since you're are using COUNTIF, let's assume the cells contain only High or
Very High. Just add two COUNTIF()s together

=COUNTIF('(R2) Risks Log'!L9:L99,"Very High") +CountIF(Risks
Log'!L9:L99,"High")

"Scott_goddard" wrote:

I am trying to sum the amount of time two words "high" and "very high" appear
in a col....I can get this to work for one word but when i try and nest the
statement it doest work - Why and how to i solve it.

=COUNTIF('(R2) Risks Log'!L9:L99,"Very High",CountIF(Risks
Log'!L9:L99,"High"))

thanks.

  #3  
Old April 20th, 2010, 06:29 PM posted to microsoft.public.excel.worksheet.functions
eduardo
external usenet poster
 
Posts: 2,131
Default Count If.....help

Hi,

=sumproduct(Risks Log'!L9:L99=,"Very High")*(Risks Log'!L9:L99=,"High")

"Scott_goddard" wrote:

I am trying to sum the amount of time two words "high" and "very high" appear
in a col....I can get this to work for one word but when i try and nest the
statement it doest work - Why and how to i solve it.

=COUNTIF('(R2) Risks Log'!L9:L99,"Very High",CountIF(Risks
Log'!L9:L99,"High"))

thanks.

  #4  
Old April 20th, 2010, 06:36 PM posted to microsoft.public.excel.worksheet.functions
Don Guillett[_2_]
external usenet poster
 
Posts: 607
Default Count If.....help

try using a wildcard

=COUNTIF('(R2) Risks Log'!L9:L99,"*High")


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Scott_goddard" wrote in message
...
I am trying to sum the amount of time two words "high" and "very high"
appear
in a col....I can get this to work for one word but when i try and nest
the
statement it doest work - Why and how to i solve it.

=COUNTIF('(R2) Risks Log'!L9:L99,"Very High",CountIF(Risks
Log'!L9:L99,"High"))

thanks.


  #5  
Old April 21st, 2010, 09:11 AM posted to microsoft.public.excel.worksheet.functions
Scott_goddard
external usenet poster
 
Posts: 32
Default Count If.....help

Sorry that doest work!! not sure why i also went down that route.

"Eduardo" wrote:

Hi,

=sumproduct(Risks Log'!L9:L99=,"Very High")*(Risks Log'!L9:L99=,"High")

"Scott_goddard" wrote:

I am trying to sum the amount of time two words "high" and "very high" appear
in a col....I can get this to work for one word but when i try and nest the
statement it doest work - Why and how to i solve it.

=COUNTIF('(R2) Risks Log'!L9:L99,"Very High",CountIF(Risks
Log'!L9:L99,"High"))

thanks.

  #6  
Old April 21st, 2010, 09:13 AM posted to microsoft.public.excel.worksheet.functions
Scott_goddard
external usenet poster
 
Posts: 32
Default Count If.....help

Didnt even think of doing this - very simple. thanks.

"Don Guillett" wrote:

try using a wildcard

=COUNTIF('(R2) Risks Log'!L9:L99,"*High")


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Scott_goddard" wrote in message
...
I am trying to sum the amount of time two words "high" and "very high"
appear
in a col....I can get this to work for one word but when i try and nest
the
statement it doest work - Why and how to i solve it.

=COUNTIF('(R2) Risks Log'!L9:L99,"Very High",CountIF(Risks
Log'!L9:L99,"High"))

thanks.


.

  #7  
Old April 21st, 2010, 09:16 AM posted to microsoft.public.excel.worksheet.functions
Scott_goddard
external usenet poster
 
Posts: 32
Default Count If.....help

Sorry - i am trying to count the amount of time in a col the words "high and
"very high" appear. You formula works great - can you tell me why count IF
doesnt work like thay? and what should i have used?

"Duke Carey" wrote:

First, your question is ambiguous. Are you tring to count the number of
times a cell's contents - as a whole - is either "High" or "Very High"? Or
are you looking to count how many times the a) word or b) phrase appears
within other cell contents?

Second, COUNTIF() doesn't work the way you've tried to use it.

Since you're are using COUNTIF, let's assume the cells contain only High or
Very High. Just add two COUNTIF()s together

=COUNTIF('(R2) Risks Log'!L9:L99,"Very High") +CountIF(Risks
Log'!L9:L99,"High")

"Scott_goddard" wrote:

I am trying to sum the amount of time two words "high" and "very high" appear
in a col....I can get this to work for one word but when i try and nest the
statement it doest work - Why and how to i solve it.

=COUNTIF('(R2) Risks Log'!L9:L99,"Very High",CountIF(Risks
Log'!L9:L99,"High"))

thanks.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:21 AM.


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