Solved

Moving Data within an Excel workbook

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

730 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