+ Reply to Thread
Results 1 to 5 of 5

retrieve content of two columns into a third one with the exception of blank cells (duplic

  1. #1
    Registered User
    Join Date
    05-29-2015
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    27

    retrieve content of two columns into a third one with the exception of blank cells (duplic

    Hi, I have two columns consisting of string or nothing. I would like to move all strings into a new column and skip blank cells.

    EXAMPLE.jpg
    Last edited by regresss; 05-29-2015 at 02:57 PM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: retrieve content of two columns into a third one with the exception of blank cells (du

    This type of process is significantly less complicated with code than whatever array function that could do it.

    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: retrieve content of two columns into a third one with the exception of blank cells (du

    Okay, that was hard.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by daffodil11; 05-29-2015 at 04:15 PM.

  4. #4
    Registered User
    Join Date
    05-29-2015
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    27

    Re: retrieve content of two columns into a third one with the exception of blank cells (du

    Very impressive! Thank you! I have to test it on big data (10k-30k rows and the response time), but so far so good!

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

    Re: retrieve content of two columns into a third one with the exception of blank cells (du

    Here's another one...

    Data Range
    A
    B
    C
    D
    1
    A
    A
    A
    2
    B
    B
    3
    C
    D
    4
    D
    D
    F
    5
    F
    G
    6
    G
    E
    7
    E
    A
    8
    C
    9
    D
    10


    This array formula** entered in D1:

    =IFERROR(IFERROR(INDEX(A:A,SMALL(IF(A$1:A$7<>"",ROW(A$1:A$7)),ROWS(D$1:D1))),INDEX(B:B,SMALL(IF(B$1:B$4<>"",ROW(B$1:B$4)),ROWS(D$1:D1)-COUNTIF(A$1:A$7,"<>")))),"")

    ** 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.

+ 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] I want macro to Move content when certain cells change and to run automatically.
    By Mysstownsend in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-18-2013, 07:34 PM
  2. Looking for Nested If Statement to move content of cells to new cell
    By sfadam in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2013, 07:24 PM
  3. Add exception for blank cells/move new data to bottom of sheet
    By MATT-C in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2010, 09:58 AM
  4. move cells based on partial-content.
    By jimmyyang in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2008, 02:21 AM
  5. Delete & Move columns based on Heading content
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2007, 10:09 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