Solved

Copying Value by Column Header Name into new Sheet

Posted on 2016-10-26
7
24 Views
Last Modified: 2016-11-27
Background (Why the data is scattered) : Data are shared by multiple team (18-20) and after consolidation it becomes a table where Part Number , Qty , Price and Value are repeated 18-20 times.  - Example refer Sheet 1 attached of raw data.

Desired output is to pull data through Macro of all adjacent cells where Part Number is not blank.

If Part Number is not blank, pull qty and value of that specific part number from Sheet 1 and paste value Result Sheet in respective column.

  -  Refer "Results" Sheet -Based on part number not blank  in column A of Sheet 1 and pulling qty and Value (C&D).
  - Similar results need to be pulled from all subsequent column till last column with Part Number heading.



Don't know if i explain enough to understand the desired output. In case not, please ask.


br,

CGK
0
Comment
Question by:Chandra Gupt Kumar
  • 4
  • 2
7 Comments
 
LVL 8

Expert Comment

by:Koen
ID: 41860101
example sheet not attached...
0
 
LVL 8

Expert Comment

by:Koen
ID: 41860104
It looks to me like turning your data into a table would be the key to solving this one.
Then you can reference the columns by their header, resulting in the macro (or formulas) to work no matter where that column is in your data.
0
 

Author Comment

by:Chandra Gupt Kumar
ID: 41861682
Hi,


Attached sample file.

I have no clue how data table would help me solving this problem.
File-for-refernce.xlsx
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 8

Accepted Solution

by:
Koen earned 500 total points
ID: 41862111
Ok, so that is why a sample was needed, i misundertood your question...

see if the attached macro in the workbook solves your problem...
File-for-refernce--1-.xlsm
0
 

Author Comment

by:Chandra Gupt Kumar
ID: 41863539
Wow !

It is wonderful to see results ..

Thanks
0
 
LVL 8

Expert Comment

by:Koen
ID: 41863637
If you are happy with the result do not forget to close the question.
Tx
0
 
LVL 14

Expert Comment

by:frankhelk
ID: 41902939
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Koen (https:#a41862111)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

frankhelk
Experts-Exchange Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to With line 4 42
InternetExplorer object in Excel VBA. 4 21
Mac Excel column treating text as date 2 31
Excel Save As Status Box will not go away 6 19
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

920 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

16 Experts available now in Live!

Get 1:1 Help Now