Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default summing only certain numbers in calumn

A B C
1111 5000 2
2222 3000 1
1111 4000 1
2222 700 1

Col A has 200 set number codes, col b has various amounts, col C has set
numbers 1 -4. I need to add up all the numbers in col b that have the same
code in col a and col c, and place the result in another cell that will be
linked to another workbook. Their can be upto 100 items with code 2222 but
the will have either a 1, 2, etc by them I need to sum all 2222 for each set
of numbers 1-4.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default summing only certain numbers in calumn

=SUMPRODUCT(--(A$2:A$1000=1111),--(C$2:C$1000=1),(B$2:B$1000))

Note you can adjust the logic comparisons as needed, or change them to cell
references for ease of use. Also, SUMPRODUCT can't callout entire columns
(e.g. A:A) unless using XL 2007.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"carourke" wrote:

A B C
1111 5000 2
2222 3000 1
1111 4000 1
2222 700 1

Col A has 200 set number codes, col b has various amounts, col C has set
numbers 1 -4. I need to add up all the numbers in col b that have the same
code in col a and col c, and place the result in another cell that will be
linked to another workbook. Their can be upto 100 items with code 2222 but
the will have either a 1, 2, etc by them I need to sum all 2222 for each set
of numbers 1-4.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default summing only certain numbers in calumn

Hi,

In 2007 the best approach would be

=SUMIFS(B$2:B$100,A$2:A$100,222,C$2:C$100,1)

or better yet, reference cells rather than hardcoding values into your
formulas

=SUMIFS(B$2:B$100,A$2:A$100,D1,C$2:C$100,D2)

This last comment also applies to the use of SUMPRODUCT in 2003.



--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"carourke" wrote:

A B C
1111 5000 2
2222 3000 1
1111 4000 1
2222 700 1

Col A has 200 set number codes, col b has various amounts, col C has set
numbers 1 -4. I need to add up all the numbers in col b that have the same
code in col a and col c, and place the result in another cell that will be
linked to another workbook. Their can be upto 100 items with code 2222 but
the will have either a 1, 2, etc by them I need to sum all 2222 for each set
of numbers 1-4.

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
Summing numbers Gingit Excel Discussion (Misc queries) 2 October 7th 06 12:31 AM
Keep getting #### when summing numbers Ammy Excel Discussion (Misc queries) 2 June 15th 06 06:40 AM
summing more than 30 numbers stevientx Excel Discussion (Misc queries) 5 March 10th 06 02:36 PM
summing numbers with in a cell the-charles Excel Discussion (Misc queries) 5 July 6th 05 07:52 PM
Summing Numbers Dave C. Excel Discussion (Misc queries) 1 February 24th 05 03:56 PM


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