Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Moving Data within an Excel workbook

Posted on 2013-01-03
2
Medium Priority
?
268 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
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.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

636 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