Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jen
 
Posts: n/a
Default Combining duplicate records(rows)

I'm pulling sales per item, but sometimes the item number shows up twice with
two different sales numbers and I want to add the two sales numbers together
and have that total sales under the one item number. Any ideas?
  #2   Report Post  
Ken Wright
 
Posts: n/a
Default

Pivot table perhaps, or sort your data on item number and then use data /
subtotals.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"Jen" wrote in message
...
I'm pulling sales per item, but sometimes the item number shows up twice

with
two different sales numbers and I want to add the two sales numbers

together
and have that total sales under the one item number. Any ideas?



  #3   Report Post  
Jen
 
Posts: n/a
Default

Isn't there a way to have excel analyze the data and combine the rows into
one row when the item number is the same and then adding the sales number in
both rows together?

"Ken Wright" wrote:

Pivot table perhaps, or sort your data on item number and then use data /
subtotals.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"Jen" wrote in message
...
I'm pulling sales per item, but sometimes the item number shows up twice

with
two different sales numbers and I want to add the two sales numbers

together
and have that total sales under the one item number. Any ideas?




  #4   Report Post  
Ken Wright
 
Posts: n/a
Default

Yes, via a Pivot table or Data / Subtotals. Use either one to get what you
want and then if you really want to lose the detail data, just copy and
paste special the table as values. Then delete the detail data.

Failing that you need to use VBA to do what you want, though it would
probably be quickest to have the VBA use a pivot table or data Subtotals and
then give you a hardcoded output table and deleting the detail.

A pivot table giving you what you want can probably be created from your
data in literally 60 seconds - Likewise Data / Subtotals

Pivot table intro
http://peltiertech.com/Excel/Pivots/pivotstart.htm

Data / Subtotals:-
Sort all your data on the item number, select all the data, do Data /
Subtotals - At each change in 'Iten Number', Sum - Tick all the fields you
want to sum.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"Jen" wrote in message
...
Isn't there a way to have excel analyze the data and combine the rows into
one row when the item number is the same and then adding the sales number

in
both rows together?

"Ken Wright" wrote:

Pivot table perhaps, or sort your data on item number and then use data

/
subtotals.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03


--------------------------------------------------------------------------

--
It's easier to beg forgiveness than ask permission :-)


--------------------------------------------------------------------------

--

"Jen" wrote in message
...
I'm pulling sales per item, but sometimes the item number shows up

twice
with
two different sales numbers and I want to add the two sales numbers

together
and have that total sales under the one item number. Any ideas?






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
Preventing Duplicate Entries within a column Bruce Excel Discussion (Misc queries) 3 January 29th 05 12:33 AM
find duplicate cells in Excel shawneyv Excel Discussion (Misc queries) 2 January 5th 05 01:39 AM
How do you find duplicate values in excel- 2 columns of numbers rickmanz Excel Discussion (Misc queries) 1 December 15th 04 11:16 PM
Duplicate records in Excel Sheidsa Excel Discussion (Misc queries) 1 November 30th 04 12:23 AM
Add numbers for duplicate entries then delete Chillygoose Excel Worksheet Functions 1 November 2nd 04 04:35 PM


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