Forum

Notifications
Clear all

Data Extract macro

22 Posts
2 Users
0 Reactions
143 Views
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

How to use a macro to exract rows [ highlighted in yellow] and create a Table as follows from a System download list, pls refer file t attach

         Invoice No  Model No   Qty   Unit Price   Amount

 
Posted : 14/09/2018 9:56 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi David

Your data is pretty messy. A lot of cleansing/converting/formatting is required before the report could be generated.

Since your attachment did not have the Invoice No so I didn't extract it.

From what I can see, all the Invoice number is the same except the PAGE No.

The macro will clear the data from the Extract Field sheet before extracting.

For your info the original sheet name Extract Field have an extra trailing space that I have removed.

Hope this helps.

Sunny

 
Posted : 15/09/2018 3:47 am
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

Big help Sunny!

 
Posted : 15/09/2018 5:14 am
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

After data Extract, can we develop the Macro further to compare and contrast to the PO data in the Master Sheet and extract the required fields in PO Check Worksheet, ie  base on field "Model No"?

 
Posted : 18/09/2018 8:31 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi David

Don't quite understand your question.

Can you provide some example of the expected output as per your attachment.

 
Posted : 18/09/2018 11:02 pm
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

Like in the PO Check worksheet  all fields extract there based on common field Model No

 

P/O No. P/O Item No. Model No P/O QTY Received QTY P/O Balance TCB Shipped QTY QTY
 
Posted : 18/09/2018 11:37 pm
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

Pls use this file data instead .

 
Posted : 18/09/2018 11:54 pm
(@sunnykow)
Posts: 1417
Noble Member
 

There are a lot of duplicate data so I really don't know what is your expected output.

Just give me a few example of what is expected in column H (Qty)

Furthermore the Model No field have excessive trailing spaces that need to be cleaned.

 
Posted : 19/09/2018 12:19 am
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

Yes trailing space must remove first for Model No field preferably using Macro.

Pls refer attach file again , hopefully make my reqeust more clear to you

 
Posted : 19/09/2018 1:33 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi David

Is it something like this but with a macro?

Sunny

 
Posted : 19/09/2018 12:12 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Try this.

 
Posted : 19/09/2018 8:55 pm
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

Yes, Sunny exactly the idea, ie using Extract Data Sheet then base Model No.  if match,  then  get follow Fields record ] but using Macro

P/O No. P/O Item No. Model No P/O QTY Received QTY P/O Balance TCB Shipped QTY QTY
 
Posted : 19/09/2018 9:00 pm
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

Tks Sunny , but I need the PO No fiield as well ..

 

Pls help ..

 
Posted : 19/09/2018 9:11 pm
(@david_ng)
Posts: 310
Reputable Member
Topic starter
 

Sunny, pls refer this attached for the desired outcome...

 
Posted : 19/09/2018 10:02 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Give this a try

 
Posted : 20/09/2018 2:05 am
Page 1 / 2
Share: