Lookup in a range and find a value in a range

xcel87

New Member
Joined
Jan 6, 2018
Messages
3
Hello Friends,[TABLE="width: 1020"]
<colgroup><col><col><col><col><col><col><col span="7"></colgroup><tbody>[TR]
[TD="colspan: 13"]I am trying to find if any of the values in a range cell matches to any value in another another range of cell.One cell range has fixed value another cell range keeps changing constantly.
I need to write a formula in such a way that anytime any value changes in range of cell and if the value is in other range of cell

Any idea how to set up this formula

Thanks[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I have 5 values in cell A1:A5(20,78,52,65,12). I am trying find if any of this values matches in cell B1:B5(This range starts with empty cells and depends on user input).If a user enters 20 on cell B5 and that matches the value in cell A1 i need to conditionally format cell A1. I am trying to figure out how can we do that.

Thanks
 
Upvote 0
Select A1:A5 with A1 being the active cell. Then go to conditional formatting in home tab or (Alt+O+D)
Then press Alt+N.
Choose the formula option and put this formula:

=ISNUMBER(MATCH(A1,$B$1:$B$5,0))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top