Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Help with Count IF Statement

I am having trouble figuring out this formula. I need to count the
number of cells that have a value (or non-blank) if it meets a criteria
from a different row.

Database Worksheet
A B
1 brian 08/01/05
2 chris 08/15/05
3 pam
4 brian
5 brian 08/31/05


Totals/Formula Worksheet
F G
1 brian FORMULA WILL BE HERE
2 chris
3 pam

The formula should determine if A1:A5=brian, then it will count any
cells with a value ("paid" in this example) in row B. So in this
example, G1 should = 2 (i.e. brian had two cells where there was a date
value). Notice that there is one cell in B that related to "brian" but
does not have a value, so it is not included in the count.

Can anyone help me???

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default Help with Count IF Statement

=sumproduct(--($A$1:$A$5=F1),--($B$1:$B$5<""))

--

HTH

RP
(remove nothere from the email address if mailing direct)


wrote in message
oups.com...
I am having trouble figuring out this formula. I need to count the
number of cells that have a value (or non-blank) if it meets a criteria
from a different row.

Database Worksheet
A B
1 brian 08/01/05
2 chris 08/15/05
3 pam
4 brian
5 brian 08/31/05


Totals/Formula Worksheet
F G
1 brian FORMULA WILL BE HERE
2 chris
3 pam

The formula should determine if A1:A5=brian, then it will count any
cells with a value ("paid" in this example) in row B. So in this
example, G1 should = 2 (i.e. brian had two cells where there was a date
value). Notice that there is one cell in B that related to "brian" but
does not have a value, so it is not included in the count.

Can anyone help me???



  #3   Report Post  
 
Posts: n/a
Default Help with Count IF Statement

Thank you for your assistance. The formula above still does not appear
to work across multiple worksheets. For example, when I use exactly
what you have above in single worksheet, it works.

However, when I have the totals (the F & G columns above) on a
different worksheet, it keeps returning a "0".

Any ideas? The data worksheet has a lot more columns of data than my
example above, so I have all of my total caculations on a different
worksheet.

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default Help with Count IF Statement

It should total on one worksheet the values on another worksheet. Are you
asking to total across worksheets rather than what I described here? If so,
what sheets are you referring to as your original email said nothing of
that.

--

HTH

RP
(remove nothere from the email address if mailing direct)


wrote in message
ups.com...
Thank you for your assistance. The formula above still does not appear
to work across multiple worksheets. For example, when I use exactly
what you have above in single worksheet, it works.

However, when I have the totals (the F & G columns above) on a
different worksheet, it keeps returning a "0".

Any ideas? The data worksheet has a lot more columns of data than my
example above, so I have all of my total caculations on a different
worksheet.



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
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
count if statement NYDIA Excel Discussion (Misc queries) 4 February 1st 05 09:30 PM
How do I write a conditional statement in Excel to count if two c. marblelife Excel Worksheet Functions 2 January 16th 05 11:16 PM


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