+ Reply to Thread
Results 1 to 8 of 8

Array Function to shift rows to the right in a range

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Array Function to shift rows to the right in a range

    I would help on building an array function that shifts rows to right of a data range. The attached spreadsheet demonstrates my desire more clearly!

    Thank you for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Array Function to shift rows to the right in a range

    Hi,

    Probably simpler solutions, but in B24 and copy across and down:

    =IF(COLUMNS($A:A)-ROWS($1:1)+1<1,"",INDEX($B$2:$S$19,ROWS($1:1),COLUMNS($A:A)-ROWS($1:1)+1))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    04-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Array Function to shift rows to the right in a range

    Thanks for your help.

    But is it possible if you can show me how this can be done using VBA please?

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Array Function to shift rows to the right in a range

    Maybe:

    Please Login or Register  to view this content.
    Last edited by JOHN H. DAVIS; 06-03-2014 at 06:39 AM.

  5. #5
    Registered User
    Join Date
    04-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Array Function to shift rows to the right in a range

    Thank you guys.

    Instead of using "xlToRight", how can I project the results on a different range?

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Array Function to shift rows to the right in a range

    Which Range? This will send the results to a helper Sheet1.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Array Function to shift rows to the right in a range

    Thank you.

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Array Function to shift rows to the right in a range

    You're welcome. Glad to help out. Hope it does what you require. If it does then please comply with Forum Rule No. 9.


    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ 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] If criteria met: delete cell and shift to the left but shift only over a certain range
    By olivierpbeland in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-11-2013, 07:44 AM
  2. Delete Range of Rows and Columns and Shift Up
    By BobBing in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2012, 02:02 PM
  3. VBA Shift Rows Within Range - Execution Speed
    By eadamy in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-22-2011, 06:28 PM
  4. Replies: 6
    Last Post: 07-06-2011, 04:29 PM
  5. Shift range down by x amount of rows
    By davey4444 in forum Excel General
    Replies: 3
    Last Post: 11-25-2010, 12:58 PM

Tags for this Thread

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