+ Reply to Thread
Results 1 to 9 of 9

convert data automatically?

  1. #1
    Registered User
    Join Date
    12-30-2009
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    4

    Exclamation convert data automatically?

    I'm not good at all on VBA.

    Attached is the excel file which I compressed.

    Can anyone help me please to turn the data on sheet1 into the data on sheet2?

    The data on the sheet1 always varies everyday so there's no exact data will remain on the same column or row on the following day.

    I've been doing this manually by copying and pasting it.
    And it takes me around 1 hour if its the end of the month.

    Any help using macro/vba will be greatly appreciated.

    Thanks!
    Attached Files Attached Files
    Last edited by Bangenge; 01-10-2010 at 05:24 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to convert these data automatically?

    The data on sheet 1 seems to be i the wrong columns, is that what you mean?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-30-2009
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How to convert these data automatically?

    the sheet1 is the input (raw data) and the sheet 2 is the output that I want.

    Is there a way using VBA/macro to arrange those data easily?

    Coz we're doing this manually.

    thanks!
    Last edited by Bangenge; 12-30-2009 at 05:44 AM.

  4. #4
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: How to convert these data automatically?

    If your intention is to bring code: SHIFT and start date to all the columns, then see the attachment and try this; you may not require a macro.

    Using a formula bring these to the right side columns (highlighted in red color)


    Select the area 'I4:J9488'

    Press ^G (Go to), select Special and then select Blanks

    Now you selected all the blank cells in the range I4:J9488

    From the active cell, type a formula to take the upper cell content. ie if your active cell is J4, type '=J3' there.

    Now instead of striking enter, press ^Enter (Control+Enter) to copy the formula to all the blank cells selected

    You can copy paste all these formulas as values and do the required sorting you need.

    rgds

    johnjohns
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-30-2009
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How to convert these data automatically?

    Thanks for the idea. but its not reliable that much cause I need to change the formulas on each dates. But still I really appreciate your help.

  6. #6
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: How to convert these data automatically?

    It should not take more than 3-4 min to do this. You can filter for the dates and apply the formula at one go.


    rgds

    johnjohns

  7. #7
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: How to convert these data automatically?

    Or if you are looking for a macro to fill up the dates and codes, then try this
    Please Login or Register  to view this content.
    or see the attachment

    rgds

    johnjohns
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-30-2009
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How to convert these data automatically?

    thanks a bunch this will make my life easier.!!!!

  9. #9
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: convert data automatically?

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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