Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
carricka
 
Posts: n/a
Default COUNT NON-BLANK CELLS WITH REFERENCE TO ANOTHER COLUMN

I want to create a formula to count non-blank (text) cells in a column for
those cells that have an indicator in another column. For example:
A B
1 CAT X
2 DOG
3 X
4 GOD X
The answer I need is 2 - there are two non-blank cells in Column A that have
an indicator in Column B. So, count all non-blank cells in Column A, where
there is an X in Column B (the columns may not be adjacent).
Thanls.
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

=SUMPRODUCT(--(A2:A100<""),--(B2:B100="X"))


Regards,

Peo Sjoblom

"carricka" wrote:

I want to create a formula to count non-blank (text) cells in a column for
those cells that have an indicator in another column. For example:
A B
1 CAT X
2 DOG
3 X
4 GOD X
The answer I need is 2 - there are two non-blank cells in Column A that have
an indicator in Column B. So, count all non-blank cells in Column A, where
there is an X in Column B (the columns may not be adjacent).
Thanls.

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
Expanding conditional formating with reference cells changing CCoop Excel Discussion (Misc queries) 2 May 4th 05 02:36 PM
simple formula with blank cells Brian Excel Worksheet Functions 1 April 1st 05 04:41 AM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM
What function can make cells shift up when they are blank? Julie Excel Worksheet Functions 0 March 26th 05 07:31 PM
Blank Cells in Pivot Tables Greg Excel Discussion (Misc queries) 1 March 16th 05 09:23 PM


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

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"