+ Reply to Thread
Results 1 to 10 of 10

Combine Specific Data from two columns

  1. #1
    Registered User
    Join Date
    07-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    51

    Combine Specific Data from two columns

    I have two columns of data. One may or may not contain a certain phrase. The other has a list of companies. The plain language of what I would like to have happen is

    "Look in Column K. If you find the letters "ABC" anywhere in the cell, then show "QED" in Column J. Otherwise, show me the information in column L"
    Last edited by bremen22; 07-09-2013 at 12:18 PM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Combine Specific Data from two columns

    Please post a small sample sheet Thx

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Combine Specific Data from two columns

    Do you mean in J1 and copy down?

    =IF(COUNTIF(K1,"*ABC*"),"QED","")

    In L1 and copy down.

    =IF(J1<>"","","QED")

    OR

    =IF(COUNTIF($K$1:$K$1000,"*ABC*"),"QED","")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    07-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Combine Specific Data from two columns

    Here is a sample of the data I am trying to create. Sample 1.xlsx

    The phrase of data that I will be looking for in Column B will not always be in the same place.

  5. #5
    Registered User
    Join Date
    07-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Combine Specific Data from two columns

    Quote Originally Posted by Fotis1991 View Post
    Do you mean in J1 and copy down?

    =IF(COUNTIF(K1,"*ABC*"),"QED","")
    That one did the trick. Thank you very much. Now, is there a way to do that twice. if "ABC" then "QED" if "DEF" then "WRT"?

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Combine Specific Data from two columns

    Perhaps =IF(COUNTIF(K1,"*ABC*"),"QED",IF(COUNTIF(K1,"*DEF*"),"WRT",""))

  7. #7
    Registered User
    Join Date
    07-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Combine Specific Data from two columns

    That didnt work for me, and now for some reason i am trying the same formula in another column with different data and it doesnt want to work.....

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Combine Specific Data from two columns

    Which is the formula that using your sample workbook works for you and which is the one that does not works?

  9. #9
    Registered User
    Join Date
    07-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Combine Specific Data from two columns

    After removing the column and adding it again excel took the formula.

    Thank you very much.

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Combine Specific Data from two columns

    ........................

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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