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

1. ## 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,

2. ## 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.

3. ## 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.

4. ## 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.

5. ## 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. ## 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. ## 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. You are very welcome. Please mark as solved if your query has been solved.

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### 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