+ Reply to Thread
Results 1 to 6 of 6

How to convert a horizontal vector with blanks into a vertical one without blanks

  1. #1
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Smile How to convert a horizontal vector with blanks into a vertical one without blanks

    I have a row that is 400 columns wide with values sporadically thrown around in it. Majority of the values are blanks. Is there a way, without using visual basic, to put these nicely into a single column without blanks, using formulas only? There will never be more than 50 non-blank values, thus no more than 50 cells with formulas. I attached a sample file so it's a bit easier to understand what I am after. Thank you!
    Horizontal to Vertical Example.xlsx
    Last edited by luv2glyd; 08-27-2014 at 02:44 PM.
    You either quit or become really good at it. There are no other choices.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: How to convert a horizontal vector with blanks into a vertical one without blanks

    copy the row,
    paste transposed
    sort
    (record it as macro)

  3. #3
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: How to convert a horizontal vector with blanks into a vertical one without blanks

    I wanted to see if I can do it without VB - formulas only.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to convert a horizontal vector with blanks into a vertical one without blanks

    Try this...

    This array formula** entered in B9:

    =IFERROR(INDEX($3:$3,SMALL(IF(D$3:OM$3<>"",COLUMN(D$3:OM$3)),ROWS(B$9:B9))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: How to convert a horizontal vector with blanks into a vertical one without blanks

    Awesome! That works perfectly. Thank you.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to convert a horizontal vector with blanks into a vertical one without blanks

    You're welcome. Thanks for the feedback!

+ 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. Replies: 8
    Last Post: 06-15-2016, 09:53 AM
  2. Replies: 2
    Last Post: 07-09-2014, 12:18 PM
  3. Extract data from a horizontal range with blanks and create a vertical list
    By dommcg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2013, 10:41 AM
  4. convert horizontal to vertical
    By syuk225 in forum Excel General
    Replies: 2
    Last Post: 06-14-2012, 02:56 AM
  5. [SOLVED] Paste Special Skip Blanks not skipping blanks, but overwriting...
    By gsrosin in forum Excel General
    Replies: 0
    Last Post: 02-22-2005, 12:06 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