Solved

Moving Data within an Excel workbook

Posted on 2013-01-03
2
220 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
  • 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now