Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
bamamike
 
Posts: n/a
Default combine row and the delete duplicates

combine duplicates clmns then delete duplicate
Customer 2000sales 2001 Sales 2002 sales

Joe Smith $200.00
Joe Smith $300.00
Joe Smith $250.00
Kip Tucker $100.00
Kip Tucker $175.00
Kip Tucker $225.00

I need to combine these on to one row but leave them under the
appropriate year and then delete the duplicate names My post doesn't
show it but the values should be under each year
I want the results too look like this


Customer 2000sales 2001 Sales 2002 sales

Joe Smith $200.00 $300.00 $250.00
Kip Tucker $100.00 $175.00 $225.00

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

How about just selecting your range and doing:

Insert a new worksheet
and then back to your data worksheet
Data|subtotals
At each change in Customer
use Sum as the function for each of the yearly columns.

Then you'll have the subtotals for each person.
Use the outlining symbols to the left to hide the details.
Select your range
edit|goto|special|visible cells only
edit|copy
Edit|Paste special|values
on that new worksheet.

Select column A of that new worksheet and
edit|replace
what: _Total (_ represents a space bar)
with: (leave blank)
replace all.

(Delete that grand total line if you copied it and don't want it.)

bamamike wrote:

combine duplicates clmns then delete duplicate
Customer 2000sales 2001 Sales 2002 sales

Joe Smith $200.00
Joe Smith $300.00
Joe Smith $250.00
Kip Tucker $100.00
Kip Tucker $175.00
Kip Tucker $225.00

I need to combine these on to one row but leave them under the
appropriate year and then delete the duplicate names My post doesn't
show it but the values should be under each year
I want the results too look like this

Customer 2000sales 2001 Sales 2002 sales

Joe Smith $200.00 $300.00 $250.00
Kip Tucker $100.00 $175.00 $225.00


--

Dave Peterson
  #3   Report Post  
Nikki
 
Posts: n/a
Default

you can use Sumif function:
A B C
D
Customer 2000 Sales 2001 Sales
Joe Smith =sumif(A1:A4,"Joe Smith",B1:B4) =sumif(A1:A4,"Joe
Smith",c1:c4)
or
=sumif(A1:A4,$A$1,B1:B4) =sumif(A1:A4,$A$1,c1:c4)

"bamamike" wrote:

combine duplicates clmns then delete duplicate
Customer 2000sales 2001 Sales 2002 sales

Joe Smith $200.00
Joe Smith $300.00
Joe Smith $250.00
Kip Tucker $100.00
Kip Tucker $175.00
Kip Tucker $225.00

I need to combine these on to one row but leave them under the
appropriate year and then delete the duplicate names My post doesn't
show it but the values should be under each year
I want the results too look like this


Customer 2000sales 2001 Sales 2002 sales

Joe Smith $200.00 $300.00 $250.00
Kip Tucker $100.00 $175.00 $225.00


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



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