VBA - Push column I data down depending on F

marshy3300

Board Regular
Joined
Aug 17, 2014
Messages
59
Hi - I have a report that spits out false info. Due date (F) populates 2 dates. In this case there are 4 x 27/06/19 that shouldn't exist. This in turn means the WIP Qty is 4 numbers short (I).
How can I push (I) down everytime it finds the wrong date? That would also depend on Job # (C) being the same.
As an FYI, the first line for each Job# will always be correct, its only the "required to make product xx" which stuffs up the report.

Job #Item #Item DescriptionDue DateJob QtyPicked QtyWIP QtyStatus
67111Product 1Product 14/07/20194 02
67111Product 2Product 24/07/201929 02
67111Product 3Product 34/07/20199 91
67111Product 4Product 44/07/201951 511
67111Product 4arequired to make product 427/06/201951 125Red
67111Product 4brequired to make product 427/06/2019102 252
67111Product 4crequired to make product 427/06/201951 02
67111Product 5Product 54/07/2019125 2
67111Product 6Product 64/07/201925 2
67111Product 6arequired to make product 627/06/201925 2
67111Product 7Product 74/07/20192 2
67200Product 20Product 204/07/20197 71
67200Product 20arequired to make product 2027/06/20197 02
67200Product 27Product 274/07/20191 2
67200Product 27arequired to make product 2727/06/20194 2

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

Not even sure its possible!
Thanks in advance
 
Hi Dante,

There inst a way. Experience on my end to know that "4a, 4b" are required for 4. The pattern that does exist is the date. So how it changes from 4/07 to 27/06 and then back to 4/07 on another valid code (original post)
As for descriptions mentioning it, or codes being similar... That's not the case.
Sorry, when i changed the names/descriptions i didn't think so much focus would be on those 2 columns.

I can say that the WIP Qty 125 (product 4a) really belongs to product 5. The 25 below that belongs to product 6.
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Thanks to you Both (Dante provided the guts and Foo with the change to date)
It does work once filtering per Job. Once i ran it I've realised Due Date also changes for priority stock. It can have a separate date than the bulk which results in pushing everything down.

I'll try to incorporate another variable into what you have provided to cater for that.

Thanks heaps guys, been amazingly helpful.
 
Upvote 0
Thanks to you Both (Dante provided the guts and Foo with the change to date)
It does work once filtering per Job. Once i ran it I've realised Due Date also changes for priority stock. It can have a separate date than the bulk which results in pushing everything down.

I'll try to incorporate another variable into what you have provided to cater for that.

Thanks heaps guys, been amazingly helpful.


Thanks footoo for the complement, good work.

I like to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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