+ Reply to Thread
Results 1 to 11 of 11

Return targeted columns from an array of columns

Hybrid View

  1. #1
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Return targeted columns from an array of columns

    Okay, I know this is not the most elegant solution (uses OFFSET and is an array formula for a large spreadsheet), but I thought it was a interesting challenge. This is what worked. Put this in cell A1 of Sheet2:
    =OFFSET(Sheet1!$A$1,ROW(),SMALL(--(Sheet1!$A$1:$AX$1)*COLUMN(Sheet1!$A$1:$AX$1),COUNTIF(Sheet1!$B$1:$AX$1,FALSE)+COLUMN()+1)-1)
    Enter with Ctrl-Shift-Enter, and then drag across and down the sheet.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  2. #2
    Registered User
    Join Date
    08-08-2013
    Location
    Cambridge
    MS-Off Ver
    Win7 Office 2010
    Posts
    34

    Re: Return targeted columns from an array of columns

    Thank you Pauley, I've tried your formula but it just returned VALUE! in all cells. Thank you anyways, my issue is now solved ^_^

    Quote Originally Posted by Pauleyb View Post
    Okay, I know this is not the most elegant solution (uses OFFSET and is an array formula for a large spreadsheet), but I thought it was a interesting challenge. This is what worked. Put this in cell A1 of Sheet2:
    =OFFSET(Sheet1!$A$1,ROW(),SMALL(--(Sheet1!$A$1:$AX$1)*COLUMN(Sheet1!$A$1:$AX$1),COUNTIF(Sheet1!$B$1:$AX$1,FALSE)+COLUMN()+1)-1)
    Enter with Ctrl-Shift-Enter, and then drag across and down the sheet.

+ 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. Simple data entry form above the targeted columns.
    By mrmikepan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-03-2013, 05:34 PM
  2. Replies: 5
    Last Post: 12-01-2012, 06:34 PM
  3. Replies: 2
    Last Post: 10-28-2012, 09:53 PM
  4. [SOLVED] "Run-time error '13': Type mismatch" when deleteing multiple cells from targeted columns
    By mweickdival in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2012, 01:09 PM
  5. columns in excel to reflect array of values entered in previous two columns
    By netvasi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2011, 01:12 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