+ Reply to Thread
Results 1 to 7 of 7

If cells contains certain text add on X-Large to end of text in column next to it

  1. #1
    Registered User
    Join Date
    09-29-2013
    Location
    New York
    MS-Off Ver
    2012
    Posts
    4

    If cells contains certain text add on X-Large to end of text in column next to it

    Hi Everyone,

    I'm having a good amount of trouble doing this formula even though I've done it in the past. Someone help?

    If any cells in column A contain the text "-XL" add "- X-Large" onto the end of the respective cells in column B.

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: If cells contains certain text add on X-Large to end of text in column next to it

    1.the text"-XL" can be anywhere or will be at the end
    2.You want to remove "-XL" and add "-X-Large" or keep "-XL" and Add "-X-Large"

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: If cells contains certain text add on X-Large to end of text in column next to it

    Insert a new column C if you already have data in that column, then put this in C2:

    =IF(ISNUMBER(SEARCH("-XL",A2)),B2&"- X-Large",B2)

    then copy down to the bottom of your data. Fix the values in column C and delete column B.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    09-29-2013
    Location
    New York
    MS-Off Ver
    2012
    Posts
    4

    Re: If cells contains certain text add on X-Large to end of text in column next to it

    Thank you Pete! Appreciate it!

  5. #5
    Registered User
    Join Date
    09-29-2013
    Location
    New York
    MS-Off Ver
    2012
    Posts
    4

    Re: If cells contains certain text add on X-Large to end of text in column next to it

    Pete (or anyone),

    One more question. If I want to add more 'if' formulas to search column A and give different results in the new column C, how would I do that?

    I want to search column A for say "-XL", "-L" and "-M". Depending on which result is found I want column C to give the result of either " - X-Large", " - Large" or " - Medium".

    Help? Thanks again in advance!

  6. #6
    Registered User
    Join Date
    09-29-2013
    Location
    New York
    MS-Off Ver
    2012
    Posts
    4

    Re: If cells contains certain text add on X-Large to end of text in column next to it

    I meant I want column C to add those results onto the end of what's in column B. Thanks

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: If cells contains certain text add on X-Large to end of text in column next to it

    You could do something like this:

    =IF(ISNUMBER(SEARCH("-M",A2)),"- Medium ","") & IF(ISNUMBER(SEARCH("-L",A2)),"- Large ","") & IF(ISNUMBER(SEARCH("-XL",A2)),"- X-Large","") & B2

    then copy down. This assumes that you could have any one (or none) of those identifiers in column A.

    Hope this helps.

    Pete

+ 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] vlookup on large text in cells
    By Gus in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  2. [SOLVED] vlookup on large text in cells
    By Harlan Grove in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 07:05 AM
  3. [SOLVED] vlookup on large text in cells
    By Gus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2005, 02:07 PM
  4. [SOLVED] Large amount of text in cells - Problem text.xls (0/1)
    By Patrick in forum Excel General
    Replies: 3
    Last Post: 05-05-2005, 12:06 PM
  5. Large amount of text in cells - Problem text.xls (1/1)
    By Patrick in forum Excel General
    Replies: 0
    Last Post: 05-05-2005, 09:06 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