Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Charles
 
Posts: n/a
Default summing up contents on ceratin cells depending on selection criter

I have a worksheet with 4 columns an may rows. Column B and C have Lastname
(Column B) and First Name (Column C) in Column D I have a value lets say a
dollar amount. I would like to write a formula were I want to look for
"Smith" "Joe" and sum up the "Dollars". I can have many entries for "Smith
Joe".
I tried the sum with the If but does not seem to work.
  #2   Report Post  
KL
 
Posts: n/a
Default

Hi Charles,

Try this one:

=SUMPRODUCT((B1:B100&C1:C100="SmithJoe")*D1:D100)

or

=SUMPRODUCT((B1:B100="Smith")*(C1:C100="Joe")*D1:D 100)

Regards,
KL


"Charles" wrote in message
...
I have a worksheet with 4 columns an may rows. Column B and C have Lastname
(Column B) and First Name (Column C) in Column D I have a value lets say a
dollar amount. I would like to write a formula were I want to look for
"Smith" "Joe" and sum up the "Dollars". I can have many entries for "Smith
Joe".
I tried the sum with the If but does not seem to work.



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 do I change a cell's contents to it's formula's value? Cindy Excel Worksheet Functions 1 July 18th 05 05:55 AM
Macro to remove contents of cell and move all other contents up one row adw223 Excel Discussion (Misc queries) 1 July 1st 05 03:57 PM
Summing non-contiguous cells Cheryl Excel Worksheet Functions 6 April 26th 05 03:04 AM
How to get excel cells to change colors depending on value KV Excel Worksheet Functions 2 November 25th 04 09:50 AM
How do I automatically shade cells depending on data entered? Jim Johnson Excel Worksheet Functions 6 October 29th 04 07:01 PM


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