Error checking

G

Guest

I have a file in one column we have Make and in the other column we have Model.
on a seperate work sheet there is a list of makes and models. in the make
column when you click on it there is a drop down list of all the makes on the
second work sheet and in the model column there is a drop down list of all
the models that corrospond to the selected make. now i have a 3rd file that i
am importing data makes and models into the make and model columns. But some
how i need to make sure that the makes and models that are being imported are
spelled the same as the ones in the drop down list. for example in the drop
down list there is Mercedes but in the import list it is Mercedes-Benz. is
there a formula i can run in a seperate column that will tell me yes or no if
they match up. so i don't have to go through each one individually?
 
D

Dave Peterson

=isnumber(match(a1,sheet2!a:a,0))

will tell you (TRUE) if the value in A1 is in the list in sheet2, column A.
 
G

Guest

Dave Peterson said:
=isnumber(match(a1,sheet2!a:a,0))

will tell you (TRUE) if the value in A1 is in the list in sheet2, column A.
=ISNUMBER(MATCH(C2,'[sheet2]Data list'!A:A,0))
this is the modification i made and this is working. but if i wanted to
check multiple columns in the second sheet how would i do that. A:A is for
checking column A but what it i wanted to check all of columns A through BK
any idea?
 
D

Dave Peterson

=match() wants to look at a single column or a single row.

Maybe you could use:
=countif('[sheet2]Data list'!A:bk,A1)>0

To find out if A1 appears anywhere in A:Bk of that other worksheet.


Dave Peterson said:
=isnumber(match(a1,sheet2!a:a,0))

will tell you (TRUE) if the value in A1 is in the list in sheet2, column A.
=ISNUMBER(MATCH(C2,'[sheet2]Data list'!A:A,0))
this is the modification i made and this is working. but if i wanted to
check multiple columns in the second sheet how would i do that. A:A is for
checking column A but what it i wanted to check all of columns A through BK
any idea?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top