Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default count values in a range of cells depending on value in adjacent ce

I have a spreadsheet with names in column A and names are often repeated
within this column. Columns B - E have values. I want to count the valuies in
each column only if the name in the row is ""Bob"?

I also sometimes want to count the values in each column if the name is
"Bob" or "Dave"?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default count values in a range of cells depending on value in adjacent ce

Columns B - E have values.

values = numbers?

Try these:

=SUMPRODUCT((A1:A10="Bob")*(ISNUMBER(B1:E10)))

=SUMPRODUCT(((A1:A10="Bob")+(A1:A10="Dave"))*(ISNU MBER(B1:E10)))

Better to use cells to hold the criteria:

G1 = Bob
H1 = Dave

=SUMPRODUCT((A1:A10=G1)*(ISNUMBER(B1:E10)))

=SUMPRODUCT(((A1:A10=G1)+(A1:A10=H1))*(ISNUMBER(B1 :E10)))


--
Biff
Microsoft Excel MVP


"birdgirl31" wrote in message
...
I have a spreadsheet with names in column A and names are often repeated
within this column. Columns B - E have values. I want to count the valuies
in
each column only if the name in the row is ""Bob"?

I also sometimes want to count the values in each column if the name is
"Bob" or "Dave"?



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 values in a range of cells Loralei Excel Worksheet Functions 3 November 13th 07 11:13 PM
how do i count cells with values in a certain range ? Capt. Trevor Bailey Excel Discussion (Misc queries) 3 October 11th 06 03:48 PM
How to count several non-adjacent cells RMF Excel Worksheet Functions 8 December 23rd 05 04:01 PM
Display text depending on values of 3 different cells? henrat Excel Worksheet Functions 6 November 22nd 05 06:09 PM
Is there an easy way to count when adjacent cells contain same data? mrarcade Excel Worksheet Functions 1 August 3rd 05 10:36 AM


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