+ Reply to Thread
Results 1 to 2 of 2

Move columns based on blank/non-blank cells

  1. #1
    Registered User
    Join Date
    03-08-2017
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    7

    Move columns based on blank/non-blank cells

    Working on an underwriting model. Have a 100 column data range that fills cells based on an anchored cell.

    At the end of the range, in the 101st column, I have a check. I would like the columns to adjust based on which ones are actually filled.

    i.e. If 44 of the 100 columns are filled, I would like the check cells to move to 1 column after, in this case, the 45th column.

    Is this possible?

  2. #2
    Registered User
    Join Date
    07-16-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Move columns based on blank/non-blank cells

    Perhaps there is a more elegant solution out there, which I would welcome learning about to, but this is one approach:

    In B1:
    =if(and(A1<>"",A1<>[check cell formula],C1=""),[check cell formula],"")

    Then drag this across all rows.

    Then enter the data in columns as needed. In so doing you will be overwriting this formula.

    When you get to the end of your data set, in the next column over the check cells should appear.

    The formula essentially says, if the column to the left has data (not including the check cell formula), but the column to the right does not have data we are at the end of the data set so put the check cell formula.

+ 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. Apply vlookup across 3 columns, move to next column if blank
    By Groovicles in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2014, 04:03 PM
  2. [SOLVED] Macro to fill blank cells in column A based on non-blank cells
    By ktalamantez in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2014, 02:47 PM
  3. Replies: 3
    Last Post: 07-31-2013, 10:41 AM
  4. [SOLVED] 3 Outcomes Conditional Formatting based on 4 blank/non blank cells
    By Supraman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2012, 06:21 AM
  5. VBA to delete cells that are blank and 0, move to left
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2011, 11:07 AM
  6. Move data to new columns when cell in Column A is blank
    By MrClaw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2010, 12:51 PM
  7. Goto Blank COLUMNS not all blank CELLS
    By chrismann85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2008, 08:30 AM

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