+ Reply to Thread
Results 1 to 3 of 3

Merging 2 columns into 1 alternating every other column with ability to omit empty cells

  1. #1
    Registered User
    Join Date
    03-22-2013
    Location
    Sterling, VA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Merging 2 columns into 1 alternating every other column with ability to omit empty cells

    I found the following link very helpful and was able to accomplish half of what i need to do.

    http://www.excelforum.com/excel-gene...er-column.html

    Here is my data: (The " " denotes an empty cell)

    1 2
    3 4
    5 " "
    6 7

    Desired Result:

    1
    2
    3
    4
    5
    6
    7

    Current Result: I am currently copying down the following formula =INDEX($A:$B,CEILING(ROWS(C$1:C1)/2,1),2-MOD(ROWS(C$1:C1),2))
    The empty cell shows as a 0. I would like to just skip the blank cell and continue on.

    1
    2
    3
    4
    5
    0
    6
    7

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Merging 2 columns into 1 alternating every other column with ability to omit empty cel

    I think a user defined function is easier.

    wait a few mins

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Merging 2 columns into 1 alternating every other column with ability to omit empty cel

    Ok

    Here is your function. Sample spreadsheet attached.

    The function accepts three variables the last being optional.

    First = range to modify
    Second is the position in the output to display
    Third is the Show blanks flag, default = 1 so shows Blanks.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-22-2013
    Location
    Sterling, VA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Merging 2 columns into 1 alternating every other column with ability to omit empty cel

    mehmetcik thanks for you response. This works well exactly what I was looking for.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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