#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Sum Value

I have a spread sheet with the following formula. =COUNTIF(B3:B34,"W") This
adds the total count. I want to add to the formula if a cell contains "s" it
would add an additional 5 to the total count. any help would be greatly
appreciated.

Richard
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Sum Value

Is the 'S' in the same range of B3:B34? or in another column?

"Richardb" wrote:

I have a spread sheet with the following formula. =COUNTIF(B3:B34,"W") This
adds the total count. I want to add to the formula if a cell contains "s" it
would add an additional 5 to the total count. any help would be greatly
appreciated.

Richard

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Sum Value

If the S is in the same range of B3:B34 then
=IF(COUNTIF(B3:B34,"S")0,COUNTIF(B3:B34,"W")+5,CO UNTIF(B3:B34,"W"))
If you wanted to add 5 for every S in the same range, then
=COUNTIF(B3:B34,"S")*5+COUNTIF(B3:B34,"W")


"Richardb" wrote:

I have a spread sheet with the following formula. =COUNTIF(B3:B34,"W") This
adds the total count. I want to add to the formula if a cell contains "s" it
would add an additional 5 to the total count. any help would be greatly
appreciated.

Richard

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Sum Value

Thanks that gets me going.

Richard

"JLatham" wrote:

If the S is in the same range of B3:B34 then
=IF(COUNTIF(B3:B34,"S")0,COUNTIF(B3:B34,"W")+5,CO UNTIF(B3:B34,"W"))
If you wanted to add 5 for every S in the same range, then
=COUNTIF(B3:B34,"S")*5+COUNTIF(B3:B34,"W")


"Richardb" wrote:

I have a spread sheet with the following formula. =COUNTIF(B3:B34,"W") This
adds the total count. I want to add to the formula if a cell contains "s" it
would add an additional 5 to the total count. any help would be greatly
appreciated.

Richard

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Sum Value

You're welcome.

"Richardb" wrote:

Thanks that gets me going.

Richard

"JLatham" wrote:

If the S is in the same range of B3:B34 then
=IF(COUNTIF(B3:B34,"S")0,COUNTIF(B3:B34,"W")+5,CO UNTIF(B3:B34,"W"))
If you wanted to add 5 for every S in the same range, then
=COUNTIF(B3:B34,"S")*5+COUNTIF(B3:B34,"W")


"Richardb" wrote:

I have a spread sheet with the following formula. =COUNTIF(B3:B34,"W") This
adds the total count. I want to add to the formula if a cell contains "s" it
would add an additional 5 to the total count. any help would be greatly
appreciated.

Richard

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



All times are GMT +1. The time now is 12:07 PM.

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"