+ Reply to Thread
Results 1 to 1 of 1

Looking for a macro to move 2 columns over creating an advancing loop (total 30 columns)

  1. #1
    Forum Contributor
    Join Date
    01-11-2011
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2003
    Posts
    107

    Looking for a macro to move 2 columns over creating an advancing loop (total 30 columns)

    I have created the enclosed spreadsheet and need a macro to move columns W & X in both WS (Schedule & Players) to the end of the loop of 30 columns and then all shift columns left 2 spots to replace W & X with advanced data. I have 6 groups of cells (3 for each column) with a locked reference (examples below) to columns W & X that then would renew based on new data coming across. The macro I recorded moved the columns OK but the W & X columns referenced below moved with them and now read AZ & BA respectfully.

    =IFERROR(INDEX(Players!U$2:U$101,AGGREGATE(15,6,Players!$U$2:$U$101/(Players!$W$2:$W$101="TUES"),ROWS($3:3))),"")
    =IFERROR(INDEX(Players!U$2:U$101,AGGREGATE(15,6,Players!$U$2:$U$101/(Players!$X$2:$X$101="TUES"),ROWS($3:3))),"")

    =IFERROR(INDEX(Players!U$2:U$101,AGGREGATE(15,6,Players!$U$2:$U$101/(Players!$W$2:$W$101="WED"),ROWS($3:3))),"")
    =IFERROR(INDEX(Players!U$2:U$101,AGGREGATE(15,6,Players!$U$2:$U$101/(Players!$X$2:$X$101="WED"),ROWS($3:3))),"")

    =IFERROR(INDEX(Players!U$2:U$101,AGGREGATE(15,6,Players!$U$2:$U$101/(Players!$W$2:$W$101="THUR"),ROWS($3:3))),"")
    =IFERROR(INDEX(Players!U$2:U$101,AGGREGATE(15,6,Players!$U$2:$U$101/(Players!$X$2:$X$101="THUR"),ROWS($3:3))),"")


    Thanks in advance
    Attached Files Attached Files
    Last edited by clundeen; 10-04-2017 at 02:03 PM.

+ 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] Macro to combine Qty and Price Columns separated by Total Columns
    By prkhan56 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-17-2017, 02:46 AM
  2. [SOLVED] Macro to select columns, call a macro, then shift 11 columns and run again in loop
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2016, 12:24 PM
  3. VBA Code to move sub-total formula values 2 columns to the right and 1 row above
    By AliJWood in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-08-2016, 07:57 AM
  4. [SOLVED] To create a grand total of multiple columns without creating subtotals
    By Askari14 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2015, 07:40 AM
  5. [SOLVED] Macro to move Columns beneath other columns
    By capson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2014, 02:29 PM
  6. Macro required to move Columns and addidng columns with headings
    By sponge_designs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2009, 08:20 PM
  7. [SOLVED] Advancing outer Loop Based on criteria of inner loop
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2005, 01: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