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.


Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...