Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Michele
 
Posts: n/a
Default Count If Function

I am trying to write a formula to return a count if cell a1 equals "value a"
and cell a2 is not blank. I have tried various combinations of countif,
if(and..., counta, and count formulas with no success! Can anyone assist me
with creating a formula?

Thanks-
Michele
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Michele

one option
=SUMPRODUCT(--(A1="a"),--(A2<""))

check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

for details on how this function works
--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Michele" wrote in message
...
I am trying to write a formula to return a count if cell a1 equals "value
a"
and cell a2 is not blank. I have tried various combinations of countif,
if(and..., counta, and count formulas with no success! Can anyone assist
me
with creating a formula?

Thanks-
Michele



  #3   Report Post  
bj
 
Posts: n/a
Default

try
=sumproduct(--(A1:Z1="value a"),--(A2:Z2<""))
assuming you want rows checked

"Michele" wrote:

I am trying to write a formula to return a count if cell a1 equals "value a"
and cell a2 is not blank. I have tried various combinations of countif,
if(and..., counta, and count formulas with no success! Can anyone assist me
with creating a formula?

Thanks-
Michele

  #4   Report Post  
Michele
 
Posts: n/a
Default

Thank you both so much! It worked! Now my manager can get off my back :)

"bj" wrote:

try
=sumproduct(--(A1:Z1="value a"),--(A2:Z2<""))
assuming you want rows checked

"Michele" wrote:

I am trying to write a formula to return a count if cell a1 equals "value a"
and cell a2 is not blank. I have tried various combinations of countif,
if(and..., counta, and count formulas with no success! Can anyone assist me
with creating a formula?

Thanks-
Michele

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
excel should have a function to count sheets carlos sosa Excel Worksheet Functions 7 April 24th 05 08:29 PM
How do I add the count function to the toolbar? smeesh Excel Worksheet Functions 8 March 31st 05 07:51 AM
Can I count in an array based on a function? HokieLawrence Excel Worksheet Functions 2 February 12th 05 03:05 AM
PivotTable Macro Reverts to Count Function LTofsrud Excel Worksheet Functions 4 February 8th 05 09:41 PM
Sum and Count Function Daniell Excel Worksheet Functions 0 November 2nd 04 12:03 AM


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