1. Welcome to Chandoo.org Forums. Short message for you

    Hi Guest,

    Thanks for joining Chandoo.org forums. We are here to make you awesome in Excel. Before you post your first question, please read this short introduction guide. When posting or responding to questions please remember our values at Chandoo.org are: Humility, Passion, Fun, Awesomeness, Simplicity, Sharing Remember that we have people here for whom English is not there first language and we need to allow for this in our dealings.

    Yours,
    Chandoo
  2. Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  3. When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

formula to search a list for a keyword in another cell, then get a result from another cell

Discussion in 'Ask an Excel Question' started by brianaclark1967, Jan 10, 2019.

  1. brianaclark1967

    brianaclark1967 Member

    Messages:
    125
    Afternoon all,

    Hoping you can help with this one

    I want to search a list for a set word. If found I want to pull the value from a specific cell

    I've attached a sample sheet as an example

    Thanks all

    Brian

    Attached Files:

  2. bosco_yip

    bosco_yip Excel Ninja

    Messages:
    2,105
    Maybe,

    In C2, enter formula :

    =COUNTIF(E2:E29,B2&"*")

    Regards
    Bosco
  3. brianaclark1967

    brianaclark1967 Member

    Messages:
    125
    Hi Bosco

    Thanks for getting back to me.

    I really wanted the result to be in cell G2

    If the word C/lock from cell B2 appears in the list E2:E29, I wanted cell G2 to copy the number from cell C2

    If the word doesn't appear in the list, return zero instead in cell G2

    Regards

    Brian
  4. bosco_yip

    bosco_yip Excel Ninja

    Messages:
    2,105
    Then,

    In G2 :

    =IF(COUNTIF(E2:E29,B2&"*")>0,C2,0)

    Regards
    Bosco
    Thomas Kuriakose likes this.
  5. brianaclark1967

    brianaclark1967 Member

    Messages:
    125
    That's excellent Bosco,

    Worked a treat, thank you so much.

    Regards,

    Brian

Share This Page