Matching One Cell to a List of Cells

Misterchipper

New Member
Joined
Jan 15, 2010
Messages
28
I have a list of approximately 15 states that are my list to match to.

Then I have several thousands of rows of data of people, addresses, and states. If one of these records is found in one of these 15 states, I would like to flag the record.

I know how to do this easily with vlookups and if(or( statements--however, I was wondering if anyone knew a simpler, faster, easier way to do it....maybe with arrays?

Help--vlookups are slowing down my computer..
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
highlight the column you want to have hightlighted, then select
format - Conditional Formatting - click dropdown to formula is
then in the box type in
=or("Texas", "Idaho", "Colorado") add whatever states you are wanting
then select the format pattern of the color and click Ok - Ok
 
Upvote 0
Thanks!

How would I do that with arrays/formulas.

Again I have one set of data that is about 10000 rows. One of these columns is state.

Then I have a list of 15 states that are problem states. I would like some formula/array to flag these 15 states.
 
Upvote 0
I have a list of approximately 15 states that are my list to match to.

Then I have several thousands of rows of data of people, addresses, and states. If one of these records is found in one of these 15 states, I would like to flag the record.

I know how to do this easily with vlookups and if(or( statements--however, I was wondering if anyone knew a simpler, faster, easier way to do it....maybe with arrays?

Help--vlookups are slowing down my computer..

Sort the range with 15 states in ascending order and name this range StateList.

Let E2 house the state from the first record to flag...

F2, just enter and copy down:

=(LOOKUP(E2,StateList)=E2)+0

This flags every record as either 1 (a hit) or as 0 (a miss) and does so in a reasonably fast fashion.
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

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