+ Reply to Thread
Results 1 to 11 of 11

transposing data and sort it by value

  1. #1
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    transposing data and sort it by value

    Good Afternoon

    I would apreciate if i could get some help tyransposing editing and sorting data in a excell. In the attached spreadsheet you will see that on sheet 1 i have data on vertical tabs under the headers order tote sector and time, i will need to pass that data to the sheet 2 in the format that i have dsigned in there.

    My apolagies if i wasnt able to explain myself

    Thanks in advance

    PS : i had to reduce the qty of date to be able to add the spreadseet, this will use nearly 4.000 lines
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: transposing data and sort it by value

    Hi luis6777

    W A R N I N G ! W A R N I N G

    Your file includes things that I did not expect. I was trying to write a macro, but (a) routines would not work and (b) data was being written to places that I had not specified.

    I have copied the data to a new workbook and all is well.

    I have a file that does as you ask. I have written a macro to do it and then realised that a formula could achieve the same result, so I did that also (cunningly hidden away on a sheet called "Formula). The formula version requires a helper column in sheet 1 (Column E)

    I have tested it with 5,000 rows and it seems to work OK.

    Let me know how you get on.

    Regards
    Alastair
    Attached Files Attached Files
    Last edited by aydeegee; 04-06-2014 at 10:11 AM.

  3. #3
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: transposing data and sort it by value

    Quote Originally Posted by aydeegee View Post
    Hi luis6777

    W A R N I N G ! W A R N I N G

    Your file includes things that I did not expect. I was trying to write a macro, but (a) routines would not work and (b) data was being written to places that I had not specified.

    I have copied the data to a new workbook and all is well.

    I have a file that does as you ask. I have written a macro to do it and then realised that a formula could achieve the same result, so I did that also (cunningly hidden away on a sheet called "Formula). The formula version requires a helper column in sheet 1 (Column E)

    I have tested it with 5,000 rows and it seems to work OK.

    Let me know how you get on.

    Regards
    Alastair
    Alastar
    thank you for your help
    Can you please explain in a easy way a few things, the blue box that says crt shif +Q that every time that is pressed passes the same line to the sheet 2 is for what? why always pass the same line?
    Column e on sheet 1 what data is that one? to update i only will need to past new data on sheet 1 and this will pass to formula is that?

    What i would like to do as well if possible is that on formula sheet when we have the same tote id with multiple locations i would like that in the same line and not in separate line, do you think that is possibel

    My apologies for so many questions but im a newby

    Thank you for your help one more time
    Last edited by luis6777; 04-07-2014 at 03:55 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: transposing data and sort it by value

    Hi luis6777

    Sorry about that - there was 1 line that has become changed from when I last saw the file. It now works as it should.

    Regards
    Alastair
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: transposing data and sort it by value

    Here is a formula way to perform your task. I am assuming that the blank spaces in column 1 should be the Order Number above it?
    If so, they would need to be filled in. See below.

    Once that is done,
    In sheet2 D4 copied across and down

    =IF(COUNTIFS(Sheet1!$A$2:$A$199,$B4,Sheet1!$B$2:$B$199,$C4,Sheet1!$C$2:$C$199,D$3),D$3,"")

    To fill in blanks in a column
    First, select the column then F5 (Opens Goto Window)> Special>Blanks
    (that should select the blank cells in column A)
    Then in the formula bar, type = and hit the up arrow
    Then CNTRL + ENTER
    Then select column A again and Copy>Paste Special>Values
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: transposing data and sort it by value

    Quote Originally Posted by aydeegee View Post
    Hi luis6777

    Sorry about that - there was 1 line that has become changed from when I last saw the file. It now works as it should.

    Regards
    Alastair
    HI Alastair

    Thank you for this, just one last request, is anyway that we can merge the same tote ID in one line? instead of having several lines for the same tote id due to diferent locations can we place all locations in one line

    Thanks in advance
    luis

  7. #7
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: transposing data and sort it by value

    Quote Originally Posted by ChemistB View Post
    Here is a formula way to perform your task. I am assuming that the blank spaces in column 1 should be the Order Number above it?
    If so, they would need to be filled in. See below.

    Once that is done,
    In sheet2 D4 copied across and down

    =IF(COUNTIFS(Sheet1!$A$2:$A$199,$B4,Sheet1!$B$2:$B$199,$C4,Sheet1!$C$2:$C$199,D$3),D$3,"")

    To fill in blanks in a column
    First, select the column then F5 (Opens Goto Window)> Special>Blanks
    (that should select the blank cells in column A)
    Then in the formula bar, type = and hit the up arrow
    Then CNTRL + ENTER
    Then select column A again and Copy>Paste Special>Values
    Hi ChemistB
    Thank you for your reply
    Could you break down the above instructions please, im not expert with excell, is it possibel to consolidate duplicate orders and tote id, so i onluy have the same order number once and the same tote id once but the several locations in one line?

    Thanks in advance
    luis

  8. #8
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: transposing data and sort it by value

    Hi luis

    This combines the tote ID numbers.

    Hope this works OK

    Regards
    Alastair
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: transposing data and sort it by value

    Quote Originally Posted by aydeegee View Post
    Hi luis

    This combines the tote ID numbers.

    Hope this works OK

    Regards
    Alastair
    Work great
    thank you very much

  10. #10
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: transposing data and sort it by value

    Hi luis

    Quote Originally Posted by luis6777
    Hi Alastar my apolagies just one last question / request, i have tryed your spreadsheet, and i have place all the date that i would like to sort, unfortunatly this equals to 29904 rows, is anyway that this macro can sort all this ows as at this moment is giving me error 9 subscript out of range

    your help would be apreciated

    Thanks
    Luis
    Go in to the macro (Alt+F8 / Step into) and change the "Dim Pu(5000, 3)" to "Dim Pu(30000, 3)"

    It may take a little time, but should work

    Regards
    Alastair

  11. #11
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: transposing data and sort it by value

    Hi luis

    I have now had chance to test this. I can confirm that it works well with over 32,000 rows. Did you manage tp get it to work?

    Regards
    Alastair

+ 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. Transposing list of values with 6 zeroes in front to retain the zero after transposing
    By Lisa4legin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2013, 03:34 AM
  2. Excel 2007 : transposing data
    By JoeK in forum Excel General
    Replies: 5
    Last Post: 10-21-2011, 04:35 PM
  3. Transposing Data
    By jcarstens in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2009, 06:46 PM
  4. Replies: 5
    Last Post: 08-01-2006, 12:23 AM
  5. Transposing Data
    By Amy_SATX in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:28 PM

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