Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
paulgallanter
 
Posts: n/a
Default Need Countif to work like Sumif

I am trying to use the formula =Sumif(B7:B203,"Paul
G",(COUNTIF(C7:C203,"*"))) to count the number of cells in the "C" column
which contains text and are in the same row next to my name in the "B"
column. This formula does not work. Ay suggestions?

Thank you, paul
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Need Countif to work like Sumif

=SUMPRODUCT(--(B7:B203="Paul"),--(ISTEXT(C7:C203)))

note that if you have formulas in C that can return a "" (blank looking
cell) they will be included, then you can use

=SUMPRODUCT(--(B7:B203="Paul"),--(ISTEXT(C7:C203)),--(LEN(C7:C203)0))

and of course if you only want to test for non empty cells in C

=SUMPRODUCT(--(B7:B203="Paul"),--(C7:C203<""))

--

Regards,

Peo Sjoblom

Northwest Excel Solutions

www.nwexcelsolutions.com

(remove ^^ from email address)

Portland, Oregon




"paulgallanter" wrote in message
...
I am trying to use the formula =Sumif(B7:B203,"Paul
G",(COUNTIF(C7:C203,"*"))) to count the number of cells in the "C" column
which contains text and are in the same row next to my name in the "B"
column. This formula does not work. Ay suggestions?

Thank you, paul


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default Need Countif to work like Sumif

Either:

=SUMPRODUCT(--($B$7:$B$203="Paul G"),--ISTEXT($C$7:$C$203))

Or:

=SUM(IF($B$7:$B$203="Paul G",ISTEXT($C$7:$C$203)+0))

which needs to be confirmed with control+shift+enter, not just with enter.

paulgallanter wrote:
I am trying to use the formula =Sumif(B7:B203,"Paul
G",(COUNTIF(C7:C203,"*"))) to count the number of cells in the "C" column
which contains text and are in the same row next to my name in the "B"
column. This formula does not work. Ay suggestions?

Thank you, paul

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
KL
 
Posts: n/a
Default Need Countif to work like Sumif

Hi Paul,

Try these:

=SUMPRODUCT(--(B7:B203="Paul G"),--(C7:C203<""))
=SUMPRODUCT((B7:B203="Paul G")*(C7:C203<""))

or if apart from non-empty the value in column [C] must be text...

=SUMPRODUCT(--(B7:B203="Paul G"),--ISTEXT(C7:C203))
=SUMPRODUCT((B7:B203="Paul G")*ISTEXT(C7:C203))

Regards,
KL

"paulgallanter" wrote in message ...
I am trying to use the formula =Sumif(B7:B203,"Paul
G",(COUNTIF(C7:C203,"*"))) to count the number of cells in the "C" column
which contains text and are in the same row next to my name in the "B"
column. This formula does not work. Ay suggestions?

Thank you, paul

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Alan
 
Posts: n/a
Default Need Countif to work like Sumif

Try
=SUMPRODUCT(--(A1:A100="Paul G"),--(ISTEXT(B1:B100)))
Regards,
Alan.
"paulgallanter" wrote in message
...
I am trying to use the formula =Sumif(B7:B203,"Paul
G",(COUNTIF(C7:C203,"*"))) to count the number of cells in the "C" column
which contains text and are in the same row next to my name in the "B"
column. This formula does not work. Ay suggestions?

Thank you, paul





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default Need Countif to work like Sumif


hi!

something like

=SUMPRODUCT(--(B7:B203="PAUL"),--(C7:C203="*text you wanted*"))

-via135

paulgallanter Wrote:
I am trying to use the formula =Sumif(B7:B203,"Paul
G",(COUNTIF(C7:C203,"*"))) to count the number of cells in the "C"
column
which contains text and are in the same row next to my name in the "B"
column. This formula does not work. Ay suggestions?

Thank you, paul



--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=531351

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
Sumif of Sumif perhaps? Fred Excel Discussion (Misc queries) 2 March 29th 06 05:39 PM
COUNTIF doesnt work! jjj Excel Worksheet Functions 2 September 30th 05 02:38 AM
problems with sumif and countif Simon Shaw Excel Discussion (Misc queries) 6 July 23rd 05 10:02 PM
formula SUMIF or whichever one will work for my issue Richelle Excel Worksheet Functions 5 March 31st 05 11:01 PM
How do I use ">$E$5" as the criteria using SUMIF and have it work. Lisa Excel Worksheet Functions 4 December 16th 04 04:15 PM


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