+ Reply to Thread
Results 1 to 8 of 8

Search list for cell value, return or highlight cells that contain value

  1. #1
    Registered User
    Join Date
    10-16-2016
    Location
    USA
    MS-Off Ver
    Excel
    Posts
    7

    Search list for cell value, return or highlight cells that contain value

    I am currently having trouble trying to figure out a formula for what I am trying to do. Basically, I would like to search a list of machines that my company has by tonnage it produces and the machines that are equal to or greater than the value searched, show me what machines the value will fit in. So lets say on sheet 2, I get a value in Cell B10. I want to search the values on sheet 1 in Cells B16:B29 for the value that is in Cell B10 on sheet 2. When it find values equal to or greater than what was in Cell B10, return what machines had those given value(s).

    I have attached a picture of what the cells look like.

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Excel 2016
    Posts
    10,084

    Re: Search list for cell value, return or highlight cells that contain value

    Hello Dusty & Welcome to the Forum,

    Are you looking for one machine or as many that are less than the tonnage 202?

    FYI: If you are going to post an example, it's extremely hard to work with an Excel sheet pasted as a picture in a Word doc. Just attach an Excel workbook.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    10-16-2016
    Location
    USA
    MS-Off Ver
    Excel
    Posts
    7

    Re: Search list for cell value, return or highlight cells that contain value

    Sorry about that. Here is the workbook. Cell numbers changed a bit also.

    And as many machines equal to or above the tonnage 202.
    Attached Files Attached Files
    Last edited by dusty90; 10-16-2016 at 09:15 PM.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Excel 2016
    Posts
    10,084

    Re: Search list for cell value, return or highlight cells that contain value

    Hi dusty & thanks for the ss,

    How about this. Just use a formula on sheet 2 to identify what machines are equal to or greater and then filter. There's your list.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-16-2016
    Location
    USA
    MS-Off Ver
    Excel
    Posts
    7

    Re: Search list for cell value, return or highlight cells that contain value

    Thanks Jefferybrown, that looks awesome!

    Can you somewhat explain what you did? Like the formula and then filter?

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Excel 2016
    Posts
    10,084

    Re: Search list for cell value, return or highlight cells that contain value

    I just used the basic IF construct ... =IF(logical_test,value_if_true,value_if_false)

    The logical test >> test B2 on Sheet2 for greater than or equal to B8 on Sheet1

    If it is greater than or equal to>> value if true >> "Above"

    If it less than >> value if false >> "No"

    Now turn on the filter >> Data >> Sort & Filter >> Filter

    Unselect "No" and now you are left with just "Above"

  7. #7
    Registered User
    Join Date
    10-16-2016
    Location
    USA
    MS-Off Ver
    Excel
    Posts
    7

    Re: Search list for cell value, return or highlight cells that contain value

    Thanks again!!

    I was trying to make it a lot more difficult than it was. I just started messing around with it and it clicked. Thanks for the explantation.

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Excel 2016
    Posts
    10,084
    You are very welcome. Please mark as solved if your query has been solved.

+ 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. Search, check and highlight in List box
    By nathanrose1986 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2016, 04:48 PM
  2. Replies: 2
    Last Post: 09-12-2015, 11:02 AM
  3. Search value, return list of cells
    By matuella in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2015, 09:19 PM
  4. [SOLVED] Search for a word within a list of names and return the entire name within the cell.
    By staljunk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-02-2015, 04:50 PM
  5. [SOLVED] Search/return a cell with a large number of characters from a list (column)
    By jwebber82 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-30-2014, 09:44 PM
  6. [SOLVED] Formula to search from keyword list and return adjacent cell
    By Ninja2k in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2013, 08:44 AM
  7. search array of cells in one workbook and return the value of the adjacent cell
    By tomturner89 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2013, 04:09 AM

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