+ Reply to Thread
Results 1 to 18 of 18

Find and mark values in another cell

  1. #1
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Find and mark values in another cell

    Hi all, I'm attaching the find value excel. I need to find in B2 if it contains any value from column A and if doesn't content mark Approved in a green cell in C2, if content exists place the word found. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Find and mark values in another cell

    Try this for starters:

    =IFERROR(LOOKUP(99999,SEARCH($A$2:$A$7,B2),$A$2:$A$7),"Approved")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Re: Find and mark values in another cell

    Thanks, 2 things. Can we make it to find at least one word from column A? For example, C8 should be satellite as a result. It was my bad to not comment all the requirements. Also, when approved can be marked in green and if not yellow? Thanks!!!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Find and mark values in another cell

    Foir the colour-coding, you simply need to apply a conditional formatting rule to that column:

    Yellow: =AND(C2<>"",C2<>"Approved")

    Green: =AND(C2<>"",C2="Approved")

    Why can you not include satellite on its own in the lookup list? After all, you have gun and stun gun separately:

    AliGW on MS365 Insider (Windows) 64 bit

    A
    B
    C
    1
    keyword name
    2
    gun vvv rere gun gun
    3
    Satellite vvv rere tytytyyt Approved
    4
    Satellite Phone ffdf scope gfgfgf Scope
    5
    Scope gfgfgfgf Approved
    6
    stun gun gfgssf satellite phone Satellite Phone
    7
    stungun hghghghg Approved
    8
    Thermal ghghgfh767676 satellite Satellite
    9
    ggfggfdfdf Approved
    10
    jhjhjh Approved
    11
    erere Approved
    Sheet: Sheet1

    =IFERROR(LOOKUP(99999,SEARCH($A$2:$A$8,B2),$A$2:$A$8),"Approved")
    Last edited by AliGW; 01-07-2022 at 05:59 AM.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Find and mark values in another cell

    If you ALSO want satellite to be returned, (as per cell C8), you need to add satellite to the keyword list and sort the keyword list alphabetically and then useAli's formula, with the range adjusted appropriately:

    =IFERROR(LOOKUP(99999,SEARCH($A$2:$A$8,B2),$A$2:$A$8),"Approved")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Find and mark values in another cell

    Ali... Tsk, tsdk. Post editing threads!! see C6 (in your post). That's why the list needs to be sorted.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Find and mark values in another cell

    Yes, I know - I have just updated my post.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Find and mark values in another cell

    Ali... Tsk, tsdk. Post editing threads!!
    At the precise moment you were posting your alert ...

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Find and mark values in another cell

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  10. #10
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Re: Find and mark values in another cell

    Thank you both! So the first formula is for the exact match and the second is for any word? Also, how to do I the condition for the color?

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Find and mark values in another cell

    See post #4 - everything is there.
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Re: Find and mark values in another cell

    Thanks! We are almost there. Please find attached update, C16 is not showing the correct output. Thanks for the help.
    Attached Files Attached Files

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Find and mark values in another cell

    That's because you need 'stun' in your lookup list:

    AliGW on MS365 Insider (Windows) 64 bit

    A
    B
    C
    D
    1
    keyword name
    2
    gun vvv rere gun gun =IFERROR(LOOKUP(99999,SEARCH($A$2:$A$9,B2),$A$2:$A$9),"Approved")
    3
    Satellite vvv rere tytytyyt Approved =IFERROR(LOOKUP(99999,SEARCH($A$2:$A$9,B3),$A$2:$A$9),"Approved")
    4
    Satellite Phone ffdf scope gfgfgf Scope
    5
    Scope gfgfgfgf Approved
    6
    stun gfgssf satellite phone Satellite Phone
    7
    stun gun hghghghg Approved
    8
    stungun ghghgfh767676 satellite Satellite
    9
    Thermal ggfggfdfdf Approved
    10
    jhjhjh Approved
    11
    erere Approved
    12
    fdfd Approved
    13
    erere Approved
    14
    erere Approved
    15
    54545454dfdfd Approved
    16
    stun gfgf stun
    17
    Thermal Thermal
    18
    Scope fgfgf Scope
    Sheet: Sheet1

  14. #14
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Re: Find and mark values in another cell

    It is, in C6, there is a way it can take it from there (2 words)?

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Find and mark values in another cell

    No - we explained this to you over the course of posts #4 and #5 above.

  16. #16
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Re: Find and mark values in another cell

    Thank you, will test then as is!

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Find and mark values in another cell

    Please mark as solved, etc. as per post #9. Thanks.

  18. #18
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Re: Find and mark values in another cell

    Hi, question, please see attached result for c18, it should be exact match. Can you check please and help if possible? It is taking value from c8 but it is not right...
    Attached Files Attached Files

+ 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. Find and mark values
    By dandi10 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 04-11-2021, 07:59 AM
  2. Find Specific words/values in Columns and mark them
    By Rolandelo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-25-2015, 06:15 AM
  3. Replies: 3
    Last Post: 10-16-2013, 03:56 AM
  4. [SOLVED] Find certain text in a cell and mark it as...
    By siobeh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2013, 12:28 PM
  5. Find Max and Min Values every 10 rows & Mark row as keep
    By Jmino in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-24-2010, 02:22 AM
  6. Find text and mark cell
    By Robban_HG in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-07-2009, 01:42 AM
  7. Find and mark cell
    By hafizfarooq in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2008, 05:24 AM

Tags for this Thread

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