+ Reply to Thread
Results 1 to 9 of 9

IF with CONCATENATE

  1. #1
    Registered User
    Join Date
    05-01-2014
    Location
    New Brunswick, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question IF with CONCATENATE

    this is my first time using forum so please excuse any ignorance!

    My issue is that I have three columns with 5000 rows of data (that are not stable). Rather then manually creating the result I am looking for, I would like to use a conditional formula but I have no idea how to write.

    Here's the result I need:
    Col A Col B Col C
    XY 36 J

    If Col A = XY then return X and concatenate Col B and Col C

    So result would be "X36J"

    Help!

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF with CONCATENATE

    welcome to the forum.
    you could use =IF(A1="xy","x"&B1&C1,"") copied down.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: IF with CONCATENATE

    Hi Trish,

    Refer to the attached workbook, output in the column named Result

    or you can use

    Please Login or Register  to view this content.
    Last edited by Saarang84; 05-01-2014 at 09:21 AM.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  4. #4
    Registered User
    Join Date
    05-01-2014
    Location
    New Brunswick, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: IF with CONCATENATE

    That works Sambo Kid -- thanks sooo much! I want to hit the "EASY" button -- but it was easy for you and a head scratcher for me

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF with CONCATENATE

    You're welcome and thanks for the reputation bump!
    Just to make the moderators happy and as a housekeeping note, don't forget to mark your post as solved using the thread tools dropdown at the top of the post.

  6. #6
    Registered User
    Join Date
    05-01-2014
    Location
    New Brunswick, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: IF with CONCATENATE

    ARGH -- I just realized I actually need to check if XY or AB and return X if XY or A if AB -- any idea what the modification to the formula is?

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF with CONCATENATE

    this should take care of that...
    =IF(A1="xy","x"&B1&C1,IF(A1="ab","a"&B1&C1,""))
    or you can try an alteration of what Saarang84 gave you or another option would be a table with your values then a vlookup off that. Depends on how many iterations you have.

  8. #8
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: IF with CONCATENATE

    Nest an OR in the If-test, then use Saarang's approach.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    05-01-2014
    Location
    New Brunswick, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: IF with CONCATENATE

    Thanks again!!!

+ 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. Need Help with a CONCATENATE
    By Luke Andrews in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-06-2012, 05:49 AM
  2. Replies: 2
    Last Post: 04-12-2010, 12:35 PM
  3. [SOLVED] concatenate
    By Tennisstar007 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-07-2006, 11:40 AM
  4. [SOLVED] concatenate
    By jeanette.rimmer in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  5. [SOLVED] [SOLVED] I know how to concatenate ,can one de-concatenate to split date?
    By QUICK BOOKS PROBLEM- in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-26-2005, 01:05 PM

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