Formula to search column for data and return true or false

missyvette

New Member
Joined
Jul 24, 2010
Messages
11
I need to create a formula that will look at a 10 digit number in column S of Sheet 1 and see if it appears in row A of sheet 2. If it finds the exact number in column A of sheet 2, I want it to return a true value, if it doesn't find it, I want it to return a false value.

Is this an IF function or a LOOKUP function?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Row A or column A in sheet 2?


For Column A:
Code:
=IF(ISERROR(VLOOKUP(S1, Sheet2!A:A,1,0)), FALSE, S1)

For Row A (Row 1):
Code:
=IF(ISERROR(HLOOKUP(S1, Sheet2!1:1,1,0)), FALSE, S1)
 
Upvote 0
I need to create a formula that will look at a 10 digit number in column S of Sheet 1 and see if it appears in row A of sheet 2. If it finds the exact number in column A of sheet 2, I want it to return a true value, if it doesn't find it, I want it to return a false value.

Is this an IF function or a LOOKUP function?

=ISNUMBER(MATCH(S2,Sheet2!A:A,0))

would be adequate and fast.
 
Upvote 0
Thank you!! This one would have worked for me except I should have mentioned that I want to identify what the true and false values are.
 
Upvote 0
Thank you!! This one would have worked for me except I should have mentioned that I want to identify what the true and false values are. Can I do this?

Sorry I should have mentioned this.

IsNumber/Match will automatically give you TRUE when a match is successful and FALSE otherwise. The formula is faster than a COUNTIF set up.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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