Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Spreadsheets (https://www.askmehelpdesk.com/forumdisplay.php?f=395)
-   -   Finding the given text in different columns and place in other column (https://www.askmehelpdesk.com/showthread.php?t=260934)

  • Sep 16, 2008, 12:19 AM
    nikeshtnt
    Finding the given text in different columns and place in other column
    I have a worksheet where two columns contains name. I need to check that if one name is appering in any of these two columns then result shoule be shown in third column or if that name is not there then third column should be blank.

    If We have to find KEVIN MERRITT then result should be like this

    Name 1 Name 2 Result
    Mr ANDREW OSBORN Mr KEVIN MERRITT KEVIN MERRITT
    Mr NEIL CALDWELL Mr MOHAMMED KHAN
    Mr KEVIN MERRITT Mr NEIL CALDWELL KEVIN MERRITT
    Mr MOHAMMED KHAN Miss HELEN JOHNSON
    Mr KEVIN MERRITT Mr NEIL CALDWELL KEVIN MERRITT
    Miss HELEN JOHNSON Mr MOHAMMED KHAN
    Mr ANDREW OSBORN Miss HELEN JOHNSON
    Mr NEIL CALDWELL Miss HELEN JOHNSON
    Mr KEVIN MERRITT Mr MOHAMMED KHAN KEVIN MERRITT
    Mr MOHAMMED KHAN Mr KEVIN MERRITT KEVIN MERRITT
    Mr KEVIN MERRITT Miss HELEN JOHNSON KEVIN MERRITT
  • Sep 16, 2008, 05:26 AM
    JBeaucaire
    1 Attachment(s)
    Column A = Name 1
    Column B = Name 2
    Column C = Result

    List starts in row 2.

    The formula you put in cell C2 is:
    =IF(OR(A1="Mr Kevin Merritt",B1="Mr Kevin Merritt"),"KEVIN MERRITT","")

    Now copy that formula down to C3... etc.
  • Sep 16, 2008, 10:45 AM
    JBeaucaire
    Quote:

    nikeshtnt agrees: You are too good
    SO that's going to work for you?

    The only downside to this method is that it requires the spelling of "Mr Kevin Merritt" to be exactly correct in one of the two columns to get the KEVIN MERRITT to appear in the third.

    I know there's a way to watch for "part" of the text in a cell, but my head hurts when I start to think about it.

    Good luck with your sheet. Come back if you get stuck again.

  • All times are GMT -7. The time now is 02:25 PM.