+ Reply to Thread
Results 1 to 9 of 9

Search text from range of cells and base on result replace data in a different cell?

  1. #1
    Registered User
    Join Date
    07-24-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2000,2003,2010
    Posts
    38

    Search text from range of cells and base on result replace data in a different cell?

    This is my first post. Hello everyone.

    I do not know excel functions. I am learning excel. I would like to do following function. Someone kindly help me do this function.

    My spread sheet contain A1 to G1 following text data

    A1 = John
    B1 = Mark
    C1 = Mike
    D1 = Dan
    E1 = Alton
    F1 = Joe
    G1 = Peter

    I would like to search cells A1 to G1 for text “Alton”. If text “Alton” is occupied any of the cells from A1 to G1 than H1 cell should display “X” ; If text “Alton” is NOT occupied any of the cells from A1 to G1 than H1 cell should display “Y”.
    Thanks.
    Last edited by manharji; 07-26-2010 at 07:12 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Search text from range of cells and base on result replace data in a different ce

    if(countif(a1:g1="alton"),"x","y")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-24-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2000,2003,2010
    Posts
    38

    Re: Search text from range of cells and base on result replace data in a different ce

    Thank you for reply.
    on H1 I enter =if(countif(a1:g1="alton"),"x","y")
    I got "You have entered too few arguments of the function." error message.
    Please help.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Search text from range of cells and base on result replace data in a different ce

    oops typo
    on H1 I enter =if(countif(a1:g1,"alton"),"x","y")

  5. #5
    Registered User
    Join Date
    07-24-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2000,2003,2010
    Posts
    38

    Re: Search text from range of cells and base on result replace data in a different ce

    Thank you Sir.

  6. #6
    Registered User
    Join Date
    07-24-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2000,2003,2010
    Posts
    38

    How can I do following function?

    How can I do following function?
    Cell A1 is a entry cell. Cell B1 is a display cell.

    If cell A1 = “Wendy” than cell B1 should display “Mark”; but cell A1 =”Mark” B1 should display “Wendy”
    Thanks.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Search text from range of cells and base on result replace data in a different ce

    =IF(A1="mark","wendy",IF(A1="wendy","mark",""))
    but next time please start a new thread for a new question!

  8. #8
    Registered User
    Join Date
    07-24-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2000,2003,2010
    Posts
    38

    Re: Search text from range of cells and base on result replace data in a different ce

    Please forgive me.... New in the forum. Next time follow all rules.
    Thanks for the quick response.

  9. #9
    Registered User
    Join Date
    07-24-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2000,2003,2010
    Posts
    38

    Re: Search text from range of cells and base on result replace data in a different ce

    Sorry entered by error.
    Last edited by manharji; 03-03-2011 at 03:31 PM. Reason: wrong place

+ 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