Select, Copy, Paste one by one till last data to new format


New Member
Nov 1, 2019
Hi Excel Experts,
Myself Srini, new to this forum. I need your help to provide a macro code for the below
Input & Output file image links are as below

Input File Image-->
Output File Image-->

In Input, Rows & Columns can be n numbers.
Need to filter datewise excluding blanks from input and copy Row Lables values, Date & Qty and paste in the Output Format from Cell A3
For the dates it need to convert from traditional date format to as below.
10-Oct-2019 --> 101019
05-Oct-2019--> '051019
For a single part number, multiple dates & Qty available means it need to enter in the Date 2 & Qty 2 for the 2nd Data, if 3rd & 4th Date & Qty available for same part means need to enter in Comments 1 & Comments 2 in simple way like 20OCT-10 (ie.,DDMMM-Qty).
If more than 4 Date & Qty available means put in some error file & store.
From Input Date as TBA & Qty as 0 -->put in some error file & store.

It will be really helpful if anyone can help me.


Some videos you may like

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Watch MrExcel Video

Forum statistics

Latest member

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...