+ Reply to Thread
Results 1 to 8 of 8

Using If Formula with Concatenate to Join Text String

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    Fairfax, Virginia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Using If Formula with Concatenate to Join Text String

    FILE ATTACHED.

    A B C
    1 HQ003415P0160 P0008 HQ003415P0160P0008
    ----------------------------------
    I need a formula that checks if B1 has a five digit text string entry and if it does, it joins the text from column A and B in column C. I tried =if(B1="?????", concatenate(A1, B1)) but that didn't work.

    Thanks in advance for your help!
    Jason
    Last edited by jasonb9; 11-14-2018 at 08:57 AM.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,915

    Re: Using If Formula with Concatenate to Join Text String

    Try this:

    =IF(LEN(B1)=5,CONCATENATE(A1,B1))

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Using If Formula with Concatenate to Join Text String

    Please attach an Excel sheet with REPRESENTATIVE data in it. You said a five digit text string entry.... but it looks like 13-14 characters to me...

    So what is the range of stuff you have to work with and what are your expected outcomes. So, a sheet please - not a picture of one.


    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    07-02-2012
    Location
    Fairfax, Virginia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Using If Formula with Concatenate to Join Text String

    Ok, thanks. I'll repost with the sheet attached. I'm new so I appreciate the help.

  5. #5
    Forum Contributor
    Join Date
    04-30-2015
    Location
    The Netherlands
    MS-Off Ver
    office 365
    Posts
    195

    Re: Using If Formula with Concatenate to Join Text String

    I would recommend adding the example sheet here (there is a go advanced option for replying too), as a repost will likely be closed by a moderator (as this is against the rules).

  6. #6
    Registered User
    Join Date
    07-02-2012
    Location
    Fairfax, Virginia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Using If Formula with Concatenate to Join Text String

    I uploaded the file.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,915

    Re: Using If Formula with Concatenate to Join Text String

    Please see post # 2

  8. #8
    Registered User
    Join Date
    07-02-2012
    Location
    Fairfax, Virginia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Using If Formula with Concatenate to Join Text String

    PROBLEM SOLVED!! Thanks!

+ 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] Concatenate text string search into one cell
    By Trnecessary in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-18-2018, 01:00 PM
  2. [SOLVED] Optimal Join of a text string with Logic
    By sryair in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2016, 05:40 AM
  3. Replies: 1
    Last Post: 10-09-2015, 06:27 PM
  4. Concatenate text string as values
    By Ravana in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2015, 05:30 AM
  5. Remove & Concatenate Text String
    By seanyeap in forum Excel General
    Replies: 1
    Last Post: 06-06-2012, 06:55 AM
  6. Concatenate function to join some text strings
    By FRJ1949(Frank) in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2010, 03:30 PM
  7. concatenate a text string if two different cells contain the sam.
    By Linda G in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-17-2005, 04:06 PM

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