+ Reply to Thread
Results 1 to 10 of 10

Reversing the order of Auto Updated Rows into a new Sheet

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Reversing the order of Auto Updated Rows into a new Sheet

    Hi Folks

    Old problem, new approach.

    In the attached worksheet the Rows in Cols A to F are auto updated from another program.
    Each new update pushes the previous rows down one so that the latest update is always showing in row 2.

    On another Sheet I want to be able to reverse the order so that the first row updated stays as the first row (row 2) and each subsequent one is displayed under the previous etc.

    The info showing in row 4 was the first update brought in so I need it to display in the new sheet as row 2 etc.

    I have no control on the way the program brings in and displays the updates.

    Can this be done either with code or formula or both?

    Cheers
    Hammer
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Reversing the order of Auto Updated Rows into a new Sheet

    I copied your table to H1:M4, then in H2, copied down and across, used this...
    =INDEX($A$1:$F$4,COUNTA(A:A)-(ROW(A1)-1),MATCH(H$1,$A$1:$F$1,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Reversing the order of Auto Updated Rows into a new Sheet

    Thanks FDibbins, now when the next auto update occurs (there will always be a maximum of 20) those rows I have in the sample sheet will push down one and the new info will be in row 2 and so on until we have 20 rows of updates. I need to work another sheet immediately after each update (while it is still in row 2) so I cannot wait until all the updates are done to reverse the order.
    Hope that makes sense.

  4. #4
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Reversing the order of Auto Updated Rows into a new Sheet

    Just wondering if there is a formula to find the LAST value in a Col and then the SECOND last? etc as this could also solve my problem.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Reversing the order of Auto Updated Rows into a new Sheet

    I moved that table to sheet2, and adjusted the formula to this...
    =IF(ROW()>COUNTA(Sheet1!$A$1:$A$6),"",INDEX(Sheet1!$A$1:$F$6,COUNTA(Sheet1!A:A)-(ROW(A1)-1),MATCH(A$1,Sheet1!$A$1:$F$1,0)))

    You can now copy that down on the new sheet as far as you want (it will now exclude the headings), and adding a new row of data after the heading on sheet 1 will cause sheet2 to update accordingly
    see the attached
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Reversing the order of Auto Updated Rows into a new Sheet

    Okay, I think we are humming along nicely
    Now before I smother you in kisses and because we are now on the same wave length with this, could you give me a formula to input into H2 in Sheet2 that provides an updating COUNT of the number of rows with data (excluding the heading row) as they are submitted into the sheet. I cannot get the normal COUNTIF etc to work because I am a dummy

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Reversing the order of Auto Updated Rows into a new Sheet

    You are not a dummy - just using the wrong count. Try using =countA(A:A)-1

    (and if you really want to smother me in kisses, I hope you have less facial hair than me? LOL )

  8. #8
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Reversing the order of Auto Updated Rows into a new Sheet

    LOL
    Could you please test that in the worksheet sample you posted before for me, it is not working for moi.
    Appreciating your time here

  9. #9
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Reversing the order of Auto Updated Rows into a new Sheet

    Okay, I managed to crack that last problem so it is all systems go.
    Once again many many thanks FDibbins

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Reversing the order of Auto Updated Rows into a new Sheet

    Its always a good feeling when you figure it out for yourself

    Happy to help, thanks for the feedback and kind words

+ 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. [SOLVED] Count formula after a sheet is auto updated.
    By hammer2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-22-2013, 03:18 AM
  2. Reversing Order of Chart
    By prr in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-02-2009, 05:20 AM
  3. Rev. Auto Updated when sheet is updated and or entire book
    By frankee_gee in forum Excel General
    Replies: 1
    Last Post: 04-07-2008, 05:05 PM
  4. Autofill- Reversing Order
    By Earl in forum Excel General
    Replies: 4
    Last Post: 07-31-2006, 05:18 PM
  5. [SOLVED] reversing row order
    By Jamie Morken in forum Excel General
    Replies: 1
    Last Post: 05-31-2005, 03:05 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