Results 1 to 8 of 8

Need help writing Loop syntax

Threaded View

sslack88 Need help writing Loop syntax 06-24-2012, 06:34 PM
rylo Re: Need help writing Loop... 06-24-2012, 06:58 PM
sslack88 Re: Need help writing Loop... 06-24-2012, 07:12 PM
sslack88 Re: Need help writing Loop... 06-24-2012, 07:17 PM
rylo Re: Need help writing Loop... 06-24-2012, 08:04 PM
sslack88 Re: Need help writing Loop... 06-24-2012, 09:22 PM
rylo Re: Need help writing Loop... 06-25-2012, 12:56 AM
sslack88 Re: Need help writing Loop... 06-26-2012, 11:02 PM
  1. #1
    Registered User
    Join Date
    10-29-2008
    Location
    michigan
    Posts
    15

    Need help writing Loop syntax

    Hi Everyone,

    I am limited in coding using macros/vba for excel, so would greatly appreciate if someone could help me with the syntax. Here is what I need, and sample data attached:

    Loop
    Length - run until the end of data in column A

    Test#1
    Starting with "MAY 04", I want to run a loop that checks "MAY 04" against every month in the same row to see if there is data present in both months on the same date. If YES, then return the two header rows in the format "MAY 04^JUN 04".

    Then repeat this loop for each of the months in the header row from left to right...i.e, "JUN 04" against "JUL 04", "AUG 04", "SEP 04", etc. "JUL 04" against "AUG 04", "SEP 04", "OCT 04", etc.

    Continue this loop until all the months in the header row have been checked.

    Output
    The final output would be a list of all the months with data present on the same date (duplicates removed)

    Have a look at the attached spreadsheet, I think I have the test criteria for the loop that will work.

    SampleData1.xlsx
    Last edited by sslack88; 06-24-2012 at 07:18 PM.

Thread Information

Users Browsing this Thread

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

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