Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 45
  • Last Modified:

Copying Value by Column Header Name into new Sheet

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.


Chandra Gupt Kumar
Chandra Gupt Kumar
  • 4
  • 2
1 Solution
KoenChange and Transition ManagerCommented:
example sheet not attached...
KoenChange and Transition ManagerCommented:
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.
Chandra Gupt KumarAuthor Commented:

Attached sample file.

I have no clue how data table would help me solving this problem.
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

KoenChange and Transition ManagerCommented:
Ok, so that is why a sample was needed, i misundertood your question...

see if the attached macro in the workbook solves your problem...
Chandra Gupt KumarAuthor Commented:
Wow !

It is wonderful to see results ..

KoenChange and Transition ManagerCommented:
If you are happy with the result do not forget to close the question.
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.

Experts-Exchange Cleanup Volunteer
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now