MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 05:35 PM   #1
ultratch47
 
Join Date: Aug 2002
Location: Virginia
Posts: 126
Default Pivot Tables - Utterly Confused

I know what i want to do, and i am pretty sure that a pivot table is the best approach, however i cant EVER seem to get the pivtot table to come out like i want it. I have found and read tutorials and help files on them, but they never go to in depth.

if anyone has a suggestion, here is my file:
thank in advance

******** LANGUAGE="JavaScript" ************************************************************************>
Microsoft Excel - Book1___Running: xl97 : OS = Windows XP
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

A
B
C
D
E
F
G
H
I
1
ItemDescriptionQty$*ItemDescriptionQty$
2
0300COLLAR1*$***19.00**0300COLLAR10*$*190.00*
3
04A5SHIRT*3*$***55.00**04A5SHIRT*3*$***55.00*
4
04BESKIRT5*$***59.00**04BESKIRT5*$***59.00*
5
04B7TEE1*$***39.00*--------->>04B7TEE3*$*117.00*
6
04CLCAMISOLE1*$***35.00**04CLCAMISOLE1*$***35.00*
7
0300COLLAR9*$***19.00******
8
04B7TEE2*$***39.00******
Sheet1*

[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.

ultratch47 is offline   Reply With Quote
Old Mar 30th, 2004, 05:50 PM   #2
marstonk
 
Join Date: Jan 2003
Posts: 273
Default Re: Pivot Tables - Utterly Confused

Well to put it in a pivot is easy but I don't how to get a field which will multiply one by the other IE $ by Quantity. Select the data and go to pivot table wizard. Go through the steps until you get the layout option this is the best way to design your pivot I find. The row headings will be the Description and the Price, the data will be the quantity and a product field.

If you cannot find a solution to the total field then just do a multiplication column in your raw data.

Hope this helps.
kitty g

******** ******************** ************************************************************************>
Microsoft Excel - Book1___Running: xl2002 XP : OS = Windows Windows 2000
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

A
B
C
D
E
3
***Data*
4
ItemDescription$Sum*of*QtyProduct*of*$
5
300COLLAR*$***19.00*100.00
6
04A5SHIRT**$***55.00*30.00
7
04B7TEE*$***39.00*30.00
8
04BESKIRT*$***59.00*50.00
9
04CLCAMISOLE*$***35.00*10.00
10
Grand*Total**22*
Sheet4*

[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.
marstonk is offline   Reply With Quote
Old Mar 30th, 2004, 07:53 PM   #3
Ekim
 
Join Date: Jul 2002
Location: Perth, Australia
Posts: 1,416
Default Re: Pivot Tables - Utterly Confused

Your raw data appears to be inconsistent.

You have 10 collars at $19.00 each to give a total of $190.00. However, you have 3 skirts at $55 each (I assume) – shouldn’t the total be $165.00? It seems that your raw data should be this:

******** ******************** ************************************************************************>
Microsoft Excel - Book1-PT.xls___Running: xl2002 XP : OS = Windows XP
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

A
B
C
D
E
1
ItemDescriptionQty$Total
2
300COLLAR11919
3
04A5SHIRT*355165
4
04BESKIRT559295
5
04B7TEE13939
6
04CLCAMISOLE13535
7
300COLLAR919171
8
04B7TEE23978
9
*****
Sheet1*

[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.


If so (Excel XP menu system):
Click cell A1.
Go to the Data menu | Pivot Tables.
Next Next.
Where do you want to put the Pivot Table report? – select Existing Worksheet – say G1.
Click the Layout button.
Drag “Item” to row, “Description” to row.
Drag “Qty” to Data, and “Total” to Data (ensure both these items are now showing
“Sum of Qty” and “Sum of Total” respectively.
OK
Finish

The preliminary Pivot Table (PT) will look like this:

******** ******************** ************************************************************************>
Microsoft Excel - Book1-PT.xls___Running: xl2002 XP : OS = Windows XP
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

F
G
H
I
J
K
1
*ItemDescriptionDataTotal*
2
*300COLLARSum*of*Qty10*
3
***Sum*of*Total190*
4
*300*Sum*of*Qty**10*
5
*300*Sum*of*Total**190*
6
*04A5SHIRT*Sum*of*Qty3*
7
***Sum*of*Total165*
8
*04A5*Sum*of*Qty**3*
9
*04A5*Sum*of*Total**165*
10
*04B7TEESum*of*Qty3*
11
***Sum*of*Total117*
12
*04B7*Sum*of*Qty**3*
13
*04B7*Sum*of*Total**117*
14
*04BESKIRTSum*of*Qty5*
15
***Sum*of*Total295*
16
*04BE*Sum*of*Qty**5*
17
*04BE*Sum*of*Total**295*
18
*04CLCAMISOLESum*of*Qty1*
19
***Sum*of*Total35*
20
*04CL*Sum*of*Qty**1*
21
*04CL*Sum*of*Total**35*
22
*Total*Sum*of*Qty**22*
23
*Total*Sum*of*Total**802*
24
******
Sheet1*

[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.


Click the Data button in cell I1 (colored green for demo purposes) and with your mouse drag the button onto the Total cell (J1) – release the mouse.

Select any cell inside the PT, say cell G3, right click and select “Field Settings” In the Subtotals field, click the radio button for “None”. Then OK.

The final PT Table should now be shown.

HTH

Mike
Ekim is offline   Reply With Quote
Old Mar 30th, 2004, 08:01 PM   #4
Ekim
 
Join Date: Jul 2002
Location: Perth, Australia
Posts: 1,416
Default Re: Pivot Tables - Utterly Confused

The final Pivot Table should look the following:

******** ******************** ************************************************************************>
Microsoft Excel - Book1-PT.xls___Running: xl2002 XP : OS = Windows XP
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

F
G
H
I
J
K
1
***Data**
2
*ItemDescriptionSum*of*QtySum*of*Total*
3
*300COLLAR10190*
4
*04A5SHIRT*3165*
5
*04B7TEE3117*
6
*04BESKIRT5295*
7
*04CLCAMISOLE135*
8
*Grand*Total*22802*
9
******
Sheet1*

[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.


If you don’t want a Grand Total line:
Right click cell G8
Select “Table Options”
Uncheck the check box “Grand totals for columns”
OK
Ekim is offline   Reply With Quote
Old Mar 30th, 2004, 08:16 PM   #5
ultratch47
 
Join Date: Aug 2002
Location: Virginia
Posts: 126
Default Re: Pivot Tables - Utterly Confused

ahhhhhhhhhhh

i was getting the same results you were on the beginning table, from there i didnt know how to get a single line.

Thanks very much for your posts
ultratch47 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 05:52 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.