# Matching two lists of numbers

I have two spreadsheets that have a column with numbers in them.  I want to match the numbers where they are the same.  What is the best way to do this?  I have attached a spreadsheet example where i have shown the two (example) number lists on different tabs.  Thanks.  - Tom
EE.xlsx
LVL 7
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
Not sure exactly what you're asking.  If the number in the first column matches the number in the second column, what should happen?

One easy way is to put one set in numerical order, number them in the next column and use vlookup.  =VLOOKUP(C2,'List 1'!C2:D5,2,FALSE)

10      1
20      2
45      3
65      4

23      #N/A
10      #N/A
45      3
67      #N/A
99      #N/A
85      #N/A
0
Commented:
Whoops

Should have been =VLOOKUP(C2,'List 1'!\$C\$2:\$D\$5,2,FALSE)
0
Author Commented:
Yea, not sure what I am asking either.  Let me clarify...  I have billings and payments on different spreadsheets, and I am trying to match up payments to billing (knowing there can be a payment that could match up with more than one billing, and vise versa.)  I have used the VLOOKUP as you suggested and it provides some help, and maybe that is the best approach.  Was wondering if there were other ways that could work better since this is probably a common problem.
0
Distinguished Expert - 2017Commented:
You may try something like attached...
Tom_Farrar_CompareColumns.xlsx
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
Actually both solutions were good.  Thanks to both of you.  - Tom
0