Solved

Moving Data within an Excel workbook

Posted on 2013-01-03
2
259 Views
Last Modified: 2013-01-05
I need a macro or something that can make the table shown below

I have attached a sample file.

Product Name                   Quantity      Price
12345678-09878709      1               200                              
12345678-09878709      25               175                              
12345678-09878709      100               165                              
12345678-09878709      500               150                              
12345678-09878709      1000       125                              
wqrt 678 ng-iryrbq 6      1           45678                              
wqrt 678 ng-iryrbq 6      25           43212                              
wqrt 678 ng-iryrbq 6      100           40009                              
wqrt 678 ng-iryrbq 6      500           38456                              
wqrt 678 ng-iryrbq 6      1000     35045                              
J43h-456                               1                  7                              
J43h-456                               25               6.5                              
J43h-456                               100             6.25                              
J43h-456                               500             6.13                              
J43h-456                              1000          6                              
WS402-5089                      1             450                              
WS402-5089                   25              435                              
WS402-5089                      100              425                              
WS402-5089                      500              415                              
WS402-5089                      1000      400                              

Look like this

Product Name                                         1                 25               100        500              1000
12345678-09878709                      200          175          165         150          125
wqrt 678 ng-iryrbq 6                  45678      43212      40009      35045      35045
J43h-456                                                  7           6.5         6.25         6.13              6
WS402-5089                                      450          435          425          415          400
EE-Question.xlsx
0
Comment
Question by:Jeremy-M
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 16

Expert Comment

by:terencino
ID: 38742512
Pivot table will work well for this application
...Terry
EE-Question-pivot.xlsx
0
 
LVL 16

Accepted Solution

by:
terencino earned 500 total points
ID: 38742517
Just select a field in your data, the Insert > Pivot Table, and in the field list move the fields as shown here, and you have your pivot table. Right click the table to refresh if the data is changed, also to change display options such as grand totals etc
Field listLet me know if you need anything more
...Terry
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question