VB Script for Data consolidation

Status
Not open for further replies.

bb19august

New Member
Joined
Feb 1, 2019
Messages
18
I have provided this request before. Tables were not visible in that thread. So creating a new one. Can someone help me with creating excel macro for the following.

Data will be entered in the "Main" Table in Worksheet 1 (Main Worksheet). Shown entries for a project with two units - Unit 1 and 2. there could be multiple units.
Project Name
"Enter Project Name Here"
Test Date
"Enter Test Date here"
Report Name
"Enter Test Report Name here"
Unit Name
Unit P/N
Unit Criticality
SW Version
"Enter Unit1 Name Here"
"Enter Unit1 P/N Here"
"Enter Unit1 Criticality Here"
"Enter Unit1 SW Version here"
"Enter Unit2 Name Here"
"Enter Unit2
P/N Here"
"Enter Unit2 Criticality Here"
"Enter Unit2 SW Version here"

<tbody>
</tbody>

A click option (Button or a cell with "Click here") in the "Main" worksheet will populate the Project (say P1) data in a different worksheet in the same file (say "Data" worksheet 2) in the below fashion


Project Name
P1
Test Date
10/10/2019
Report Name
111-11
Unit Name
Unit P/N
Unit Criticality
SW Version
AA100
111
A
1.0
BB100
222
B
1.2

<tbody>
</tbody>

When a different project (say P2) details are entered and submitted in the "Main" worksheet, it will insert/add rows to include the data as shown below. Here shown for three units (AA100, BB101, C100). So it could be same unit name(AA100) or a new unit name (BB101, C100). Same unit names to insert rows below the same names and data populated. New unit names adds data below the last entered column as shown below.


Project Name
P1
P2
Test Date
10/10/2019
10/22/2019
Report Name
111-11
111-12
Unit Name
Unit P/N
Unit Criticality
SW Version
SW Version
AA100
111
A
1.0
AA100
112
A
1.1
1.1
BB100
222
B
2.0
BB101
223
B
2.1
C100
100
A
1.0

<tbody>
</tbody>

Appreciate if someone could help.

Thank you.
BB
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Duplicate https://www.mrexcel.com/forum/excel...cro-excel-data-consolidation-post5359907.html

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

If you do not receive a response, you can "bump" it by replying to it again, though we advise you to wait 24 hours before doing and not to bump a thread more than once a day.

 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,943
Messages
6,122,376
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top