+ Reply to Thread
Results 1 to 10 of 10

Does an if then apply here?

  1. #1
    Registered User
    Join Date
    11-18-2008
    Location
    California
    Posts
    6

    Does an if then apply here?

    I come in peace. If I don't adhere to all the rules (Which I read), please be kind as this is my first post. If this question doesn't belong here, then please advise.

    That said, here is my question:

    I have a task that I do again and again in excel and thought, "Why don't I take a stab at those 'macros things' that everybody talks about." Boy was I in for a surprise.

    Attached is a sample spreadsheet that I need formatted which comes to me as is in Sheet 1. On Sheet 2 is the finished product (what needs to be done). The trick is that the info on Sheet 1 comes in varying row lengths, sometimes its 100 rows, and sometimes its 30 rows and so on. Do I need variables? or an if then loop to accomplish all of this?

    On sheet 3, I pasted the macro code that I did in order to get the finished product.

    I tried to do this on my own and nearly went mad. I come to you with hat in hand. If I am asking for too much, then if you could point me in the right direction that would also be helpful.


    Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-18-2008
    Location
    Singapore
    Posts
    79
    Would the tables be displayed in the same order in sheet 1?
    Last edited by carddards; 11-19-2008 at 03:59 AM.

  3. #3
    Registered User
    Join Date
    11-18-2008
    Location
    California
    Posts
    6
    Yes they would.

    Thanks for looking at my problem! and any help you provide would be highly appreciated.

  4. #4
    Registered User
    Join Date
    11-18-2008
    Location
    California
    Posts
    6
    Bump no response

  5. #5
    Registered User
    Join Date
    08-18-2008
    Location
    Singapore
    Posts
    79
    Is there anyway you could get the tables to be placed side by side each time you use them? Or in different sheets? Or is this the only way the data would be displayed?

  6. #6
    Registered User
    Join Date
    11-18-2008
    Location
    California
    Posts
    6
    Unfortunately, the information on sheet 1 is how my program generates it. Again, it comes in varying lengths.

    Is there nothing that can be done?

  7. #7
    Registered User
    Join Date
    08-18-2008
    Location
    Singapore
    Posts
    79
    Do you get a new file each time you use it?
    Last edited by carddards; 11-20-2008 at 01:02 AM.

  8. #8
    Registered User
    Join Date
    11-18-2008
    Location
    California
    Posts
    6
    Yes, a new file is generated each time I use it. Depending on which client I run it on that is why it varies in length.

  9. #9
    Registered User
    Join Date
    08-18-2008
    Location
    Singapore
    Posts
    79
    Is this what you want?
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    11-18-2008
    Location
    California
    Posts
    6
    This is great!

    Thank you for all the work that you put into this. There are a few areas that I needed to adjust, but given my explanation you did an excellent job.

    THANKS CARDDARDS!!!!!!

+ Reply to Thread

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