Combining data, should i use pivottable or something else?

Funbags

New Member
Joined
Jun 8, 2004
Messages
13
Hello,

Below is a quick example of what I am trying to do. Baiscly I have a UPC code which is the comon element that can be compaired. I want to merge anything that has the same upc code to total it up. I thought to use a pivottable, but for some reason it doesnt total them. Any Help is appreciated!

Example data:

Code:
UPC	BackOrder	Inventory	On Order
679420014586	0	19	0
679420014586	2	47	5
679420014586	0	1	0
679420014845	0	1	0
679420014845	2	0	0


I want the output to do this (combine them):

UPC	BackOrder	Inventory	On Order
679420014586	2	67	5
679420014845	2	1	0
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Re: Combining data, should i use pivottable or something els

The problem I am having with using a pivottable is it doesnt combine them and it doesnt list the UPC next to each item, below is the output from the pivottable:
Book3
ABCD
1UPCBackOrderInventoryOnOrder
2679420014586010
3190
42475
5679420014845010
6200
Sheet1




I tried many differnent ways, I know there has to be a way :) Thanks guys!
 
Upvote 0
As far as I know a pivot table wouldn't organize your data like you describe in your first post.
 
Upvote 0
Pivot table output on your data with no tweaks - is this what you wanted:-
Book1
ABCD
3Data
4UPCSumofBackOrderSumofInventorySumofOnOrder
56794200145862675
6679420014845210
7GrandTotal4685
Sheet4
 
Upvote 0
Ken

What version of Excel are you using?

I tried in 2000 with the OP's data and couldn't get that result.

I'm sure it's possible but I'm more used to using pivot tables in 97.

EDIT Finally got it by dragging the fields about.
 
Upvote 0
:)

For the OPs benefit now:-

Data / Pivot Table & Chart report - Hit Next / Next / Finish

Drag UPC field to the left into the ROW fields
Drag Backorder field into the DATA field
Drag Inventory field into the DATA field
Drag On Order field into the DATA field

backorder/Inv/OnOrd will now all be on top of each other, and at the top of the table you will see they all sit under a grey button marked Data. Grab that button and drag it to the Top right of the table and the data will now be horizontal
 
Upvote 0
Grab that button and drag it to the Top right of the table and the data will now be horizontal
That's exactly what I would do in 97.

In 2000, for some reason when you do that it 'removes' the data items.
 
Upvote 0
Jut tried in 2K as well, and it works just the same for me. Table prior to that last drag looks like this
Book1
ABCD
3UPCDataTotal
4679420014586SumofBackOrder2
5SumofInventory67
6SumofOnOrder5
7679420014845SumofBackOrder2
8SumofInventory1
9SumofOnOrder0
10TotalSumofBackOrder4
11TotalSumofInventory68
12TotalSumofOnOrder5
Sheet4


and then I drag the Data button to what is currently C3 and contains the word 'Total'
 
Upvote 0
I finally got it by dragging data on to Total - I think my problem was I was dragging it off the table.

By doing that Excel things you want to delete it I suppose.

I'm sure I never happened with 97.
 
Upvote 0

Forum statistics

Threads
1,203,072
Messages
6,053,377
Members
444,660
Latest member
Mingalsbe

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top