+ Reply to Thread
Results 1 to 6 of 6

Test cell ISBLANK, if true concatenate two text cells

  1. #1
    Registered User
    Join Date
    03-19-2020
    Location
    Stratford upon Avon, UK
    MS-Off Ver
    16
    Posts
    3

    Question Test cell ISBLANK, if true concatenate two text cells

    I have a big sheet of imported names and zip codes that I want to sort.

    Some of the names have been split across two cells, one part beneath the other. The second part of the name has a blank zip code cell beside it.

    I want to test for this blank cell and, if present, concatenate the two parts of the name and store it in a new cell.

    I just can't get my head around the syntax - could anyone give me a pointer please?

    Rollright Screenshot.JPG

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Test cell ISBLANK, if true concatenate two text cells

    in D2
    =IF( B3 = "" , A2&A3 , A2)
    IN E2 just put =B2
    that should reproduce the table you have
    However , can you produce a large sample in an spreadsheet and attach
    so we can perhaps see any other issues
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    03-19-2020
    Location
    Stratford upon Avon, UK
    MS-Off Ver
    16
    Posts
    3

    Re: Test cell ISBLANK, if true concatenate two text cells

    Wayne, thank you for your swift response. Your code works great (I just added a space between the two parts of the name). However, I need to make it conditional so that if the cell in column B is blank, nothing is entered into the new column (I hope the screen shot explains this clearly) otherwise the last part of the name appears.

    For information, the formula in column C allows me to tag blank cells in column B so that I can filter and eventually delete those rows.

    Attachment 668304

    Charles

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Test cell ISBLANK, if true concatenate two text cells

    does this work
    =IF(B2="","",IF(B3="",A2&" "&A3,A2))
    as mentioned perhaps a sample would help

  5. #5
    Registered User
    Join Date
    03-19-2020
    Location
    Stratford upon Avon, UK
    MS-Off Ver
    16
    Posts
    3

    Re: Test cell ISBLANK, if true concatenate two text cells

    Quote Originally Posted by etaf View Post
    does this work
    =IF(B2="","",IF(B3="",A2&" "&A3,A2))
    as mentioned perhaps a sample would help
    That works perfectly - thank you!

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Test cell ISBLANK, if true concatenate two text cells

    you are welcome

+ 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. Logical test argument answer = true for different cell value
    By Hitagain in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-06-2016, 09:09 PM
  2. Replies: 3
    Last Post: 09-10-2014, 04:07 PM
  3. [SOLVED] CONCATENATE question about text, date, test
    By dawondr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-20-2014, 02:57 PM
  4. ISBLANK won't let me return text if true
    By as3ad in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-10-2014, 12:34 PM
  5. [SOLVED] Test if a cell is within a name range and return a text value based on the test
    By DraconR in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-24-2013, 02:46 AM
  6. [SOLVED] Can you test for a range (Q16:19) any cell is ISBLANK
    By CRayF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2005, 02:05 AM
  7. [SOLVED] What do I use to test this. Not isblank
    By dbuchanan in forum Excel General
    Replies: 4
    Last Post: 05-16-2005, 08:06 AM

Tags for this Thread

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