Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bruno Campanini
 
Posts: n/a
Default How to Count Rows with defined values in multiple columns

"ryesworld" wrote in message
...
I need a formula or function that will sum the number of occurences a
specific text string is entered into cells in column B. I only want to
count
the occurences when a number that is in column A (on the same row as the
text) is equal to a specific number. Sounds easy but it's very
frustrating.


=SUMPRODUCT(--(AA1:AA6=YourNumber),--(AB1:AB6="YourString"))

Ciao
Bruno


  #2   Report Post  
ryesworld
 
Posts: n/a
Default How to Count Rows with defined values in multiple columns

Right idea but it gave me a "#NUM!" error. I think this formula must only be
for numbers. I need to count the number of times a string of text is entered
- when it's on the same row as a specific number.

"Bruno Campanini" wrote:

"ryesworld" wrote in message
...
I need a formula or function that will sum the number of occurences a
specific text string is entered into cells in column B. I only want to
count
the occurences when a number that is in column A (on the same row as the
text) is equal to a specific number. Sounds easy but it's very
frustrating.


=SUMPRODUCT(--(AA1:AA6=YourNumber),--(AB1:AB6="YourString"))

Ciao
Bruno



  #3   Report Post  
Bruno Campanini
 
Posts: n/a
Default How to Count Rows with defined values in multiple columns

"ryesworld" wrote in message
...
Right idea but it gave me a "#NUM!" error. I think this formula must only
be
for numbers. I need to count the number of times a string of text is
entered
- when it's on the same row as a specific number.


Sorry ryesworld,

1 ab
2 bc
3 bc
1 ad
3 bc
3 ad

=SUMPRODUCT(--(AA1:AA6=3),--(AB1:AB6="bc"))
gives 2.

The result is correct.
Is it not?

Bruno


  #4   Report Post  
ryesworld
 
Posts: n/a
Default How to Count Rows with defined values in multiple columns

Sorry Bruno, Your Formula does work, but not for my situation... the two
lookup ranges (AA1:AA6 & AB1:AB6) are on a separate sheet. This produces a
#VALUE! error. Any Ideas? (Also, it's strange that the formula doesn't work
at all if a lookup range is an entire column, ie: AA:AA)

"Bruno Campanini" wrote:

"ryesworld" wrote in message
...
Right idea but it gave me a "#NUM!" error. I think this formula must only
be
for numbers. I need to count the number of times a string of text is
entered
- when it's on the same row as a specific number.


Sorry ryesworld,

1 ab
2 bc
3 bc
1 ad
3 bc
3 ad

=SUMPRODUCT(--(AA1:AA6=3),--(AB1:AB6="bc"))
gives 2.

The result is correct.
Is it not?

Bruno



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
how to count one value or another across multiple columns? MeatLightning Excel Discussion (Misc queries) 10 May 22nd 05 09:23 AM
Count Rows with Conditional Format? Ken Excel Discussion (Misc queries) 3 March 24th 05 02:27 PM
averaging specific rows in multiple arrays GJR3599 Excel Worksheet Functions 2 March 3rd 05 12:24 PM
Formula to compare multiple rows values based on another column? Murph Excel Worksheet Functions 4 February 21st 05 02:44 AM
Finding common data in multiple columns and rows in Excel sparham Excel Worksheet Functions 3 February 12th 05 04:11 AM


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