Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mik Mik is offline
external usenet poster
 
Posts: 42
Default Match Cells, and Sum Data

Hello,

Hoping that someone out there can help this newbie with a problem.

I have a spreadsheet, where Column A shows a number which could be
duplicated further down the sheet.
The number of times this is duplicated may be as many as 5 times
(max).

What i would like, is to SUM the values in column B, where the Numbers
in Column A match, and show the result in column C.
See the example below:-
Number 1 appears 3 times, and the sum of Column B for each of these
number 1 inputs is 20.

eg.
Col A Col B ColC
1 10 20
1 5 20
1 5 20
2 20 30
2 10 30
3 5 5
4 42 42
etc..

Can anybody please help?

Thanks in advance.
Mike

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Match Cells, and Sum Data

=SUMIF(A1:A100,1,B1:B100)
will sum all the B cells which have corrsponding A cell values of 1
Looking at you example:
=SUMIF($A$1:$A$100,C1,$B$1:$B$100)
entered in C1 and copied down the column
Of course, you will need to adjust the A1:A100 range
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Mik" wrote in message
oups.com...
Hello,

Hoping that someone out there can help this newbie with a problem.

I have a spreadsheet, where Column A shows a number which could be
duplicated further down the sheet.
The number of times this is duplicated may be as many as 5 times
(max).

What i would like, is to SUM the values in column B, where the Numbers
in Column A match, and show the result in column C.
See the example below:-
Number 1 appears 3 times, and the sum of Column B for each of these
number 1 inputs is 20.

eg.
Col A Col B ColC
1 10 20
1 5 20
1 5 20
2 20 30
2 10 30
3 5 5
4 42 42
etc..

Can anybody please help?

Thanks in advance.
Mike



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mik Mik is offline
external usenet poster
 
Posts: 42
Default Match Cells, and Sum Data

On 13 Oct, 19:47, "Bernard Liengme"
wrote:
=SUMIF(A1:A100,1,B1:B100)
will sum all the B cells which have corrsponding A cell values of 1
Looking at you example:
=SUMIF($A$1:$A$100,C1,$B$1:$B$100)
entered in C1 and copied down the column
Of course, you will need to adjust the A1:A100 range
best wishes
--
Bernard V Liengme
Microsoft Excel MVPwww.stfx.ca/people/bliengme
remove caps from email

"Mik" wrote in message

oups.com...



Hello,


Hoping that someone out there can help this newbie with a problem.


I have a spreadsheet, where Column A shows a number which could be
duplicated further down the sheet.
The number of times this is duplicated may be as many as 5 times
(max).


What i would like, is to SUM the values in column B, where the Numbers
in Column A match, and show the result in column C.
See the example below:-
Number 1 appears 3 times, and the sum of Column B for each of these
number 1 inputs is 20.


eg.
Col A Col B ColC
1 10 20
1 5 20
1 5 20
2 20 30
2 10 30
3 5 5
4 42 42
etc..


Can anybody please help?


Thanks in advance.
Mike- Hide quoted text -


- Show quoted text



Bernard,

I thank you very much.

Just the trick..

Mike

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
Excel: match two cells in one sheet to two cells in another and return a third cells value Spence Excel Worksheet Functions 3 February 13th 11 05:33 AM
Match cells with cells on another workbook James1976 Excel Worksheet Functions 1 October 31st 06 05:28 PM
Query counting cells in a row that exactly match cells in another Marlsnz Excel Discussion (Misc queries) 1 June 2nd 06 07:08 AM
Match Cells in Worksheets and add data from one to another tpayton Excel Discussion (Misc queries) 0 February 9th 06 09:38 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


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