Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Simon
 
Posts: n/a
Default searching for values and summing the corresponding values

Hi i have a table with a list of companies, which in some cases are
duplicated, and next to each company is a corresponding value. I want to be
able to return another table which returns the corresponding value for a
company, but if a company is duplicated then that company should only appear
in the returned table once but the value beside should be the sum of its
values. For instance i have

(First Table)
Company Amount
RBC 500
Suncorp 400
RBC 200

(2nd Table - What i would like returned)
Company Amount
RBC 700
Suncorp 400

Thanks
Simon.

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Extract a list of the unique company names to another
location then use a SUMIF formula.

Assume your table is in the range A1:B4 with A1 and B1
being headers.

Select A1:A4
Goto DataFilterAdvanced Filter
Select Copy to another location
Copy to - enter where you want the new list to appear
Select Unique records only
OK out

Assume the filtered list is in the rangge D1:Dn with D1
being the header. Enter the Amount header in E1.

In E2 enter this formula and copy down as needed:

=SUMIF(A$2:A$4,D2,B$2:B$4)

Biff

-----Original Message-----
Hi i have a table with a list of companies, which in some

cases are
duplicated, and next to each company is a corresponding

value. I want to be
able to return another table which returns the

corresponding value for a
company, but if a company is duplicated then that company

should only appear
in the returned table once but the value beside should be

the sum of its
values. For instance i have

(First Table)
Company Amount
RBC 500
Suncorp 400
RBC 200

(2nd Table - What i would like returned)
Company Amount
RBC 700
Suncorp 400

Thanks
Simon.

.

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 Values from different workbooks Harlan Grove Excel Discussion (Misc queries) 0 November 26th 04 07:38 PM
Summing values of corresponding columns lanceg Excel Worksheet Functions 0 November 7th 04 10:56 AM
Summing values of corresponding columns lanceg Excel Worksheet Functions 2 November 5th 04 05:41 AM
Summing values of corresponding columns lanceg Excel Worksheet Functions 0 November 4th 04 10:10 PM
Need to sum values of columns 1 - 13 and 4 - 15 ExcelHelp Excel Worksheet Functions 1 October 27th 04 07:03 PM


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