+ Reply to Thread
Results 1 to 1 of 1

Adding date and counting columns.

  1. #1
    Registered User
    Join Date
    12-10-2017
    Location
    Netherland
    MS-Off Ver
    2016
    Posts
    19

    Adding date and counting columns.

    Hi everyone, I have a macro that saves selected columns from a Sheet to a new Workbook and save it as Text file. I have a few things that I want to add to the macro and not sure how should I name the Title of this thread, please forgive me if you misunderstood something.
    I also have attached the macro so you can understand the situation better.

    Here is a few things I want to add but not sure how to start. First is adding 2 mandatory columns name COI and Workpackage.These 2 columns have to be always in the chosen columns. They are not from the "Input Sheet". Column COI is just the date create the new Workbook, column Workpackage is a counting column for each row with format main. + number. For exp: main.1, main.2...

    There is something I want to change for the output.There are some rows with yellow background and in bold, I will call these rows Milestone.
    When there is a word "Parallel" appears in Test Name column, the next Procedures until the next Milestone will be sub sequences of the sequence right before the "Parallel" row.

    This is an original output.(row 13 to 16)

    gdg022.adj,Set Source SSM State From Heated To H2,180.0,
    ,Parallel with Set Source SSM State From Heated To ....,,
    gft002.adj,Set C-Cool Temp Before Venting,30.0,
    gdl002.***,Do LOTO main shutter drive laser,10.0,

    Here is an example of what I want:

    gdg022.adj,Set Source SSM State From Heated To H2,3:00,COI (12/21 13:03),main.7
    Parallel with gdg022.adj, Parallel with Set Source SSM State From Heated To H2, COI (12/21 13:03), wp7.1
    gft002.adj,Set C-Cool Temp Before Venting, 0:30,COI (12/21 13:03),wp7.2
    gdl002.***,Do LOTO main shutter drive laser, 0:10,COI (12/21 13:03),wp7.3

    End Parallel with gdg022.adj, COI (12/21 13:03),wp7.3

    End Set Source SSM State From Heated To H2, COI (12/21 13:03),main.7

    The Workpackage column of sub sequences is "wp" + the number of the main sequence + sub number like in the example above.
    Adding 'Parallel with Procedure' Procedure is the procedure right before the Parallel row.
    Adding 'End Parallel with Procedure' the same procedure with the procedure above.
    Adding 'End Test Name' test name of the procedure.

    Any help would be appreciated.
    Thank you very much.
    Attached Files Attached Files
    Last edited by haitran; 01-12-2018 at 06:02 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. COUNTIFS; Excluding Columns, And Counting Between Specific Date Range...
    By Haslami in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-31-2017, 12:44 PM
  2. Adding Columns Based on a date
    By Jaspal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 06:40 AM
  3. [SOLVED] Counting 3 Columns Including 1 Date
    By Bellio3105 in forum Excel General
    Replies: 3
    Last Post: 10-05-2012, 06:42 AM
  4. Replies: 8
    Last Post: 03-29-2010, 09:20 PM
  5. Adding a up several columns from a certain date.
    By wickerman in forum Excel General
    Replies: 3
    Last Post: 03-27-2009, 06:50 AM
  6. [SOLVED] excel formula counting date to date in 4 columns
    By stuie d in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-04-2005, 08:06 AM
  7. Replies: 3
    Last Post: 04-21-2005, 05:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1