Matching data

  • Thread starter Lost in Microbiology
  • Start date
L

Lost in Microbiology

I have two columns with order numbers, if they match, I need to go to a third
column and put that information with the first order number.

So basically I have a row of data that needs to be updated with information
from a second location.

The data set that needs completion looks like this:
ACC Result MRN
00-000-0000 no virus
00-000-0001 flu
00-000-0002 no virus

The complementary data looks like this:
ACC MRN
00-000-0000 123456
00-000-0001 123457
00-000-0002 123458

The data is in no particular order. so I need to search from a list of about
1500 rows of data. I tried an if function, but couldn't figure out how to
compare one cell to a range, and the match function gave me an error. Thanks
for any help or new directions to try.
 
M

mk

I have two columns with order numbers, if they match, I need to go to a third
column and put that information with the first order number.

So basically I have a row of data that needs to be updated with information
from a second location.

The data set that needs completion looks like this:
ACC Result MRN
00-000-0000 no virus
00-000-0001 flu
00-000-0002 no virus

The complementary data looks like this:
ACC MRN
00-000-0000 123456
00-000-0001 123457
00-000-0002 123458

The data is in no particular order. so I need to search from a list of about
1500 rows of data. I tried an if function, but couldn't figure out how to
compare one cell to a range, and the match function gave me an error. Thanks
for any help or new directions to try.

it seems like a vlookup case. have you tried vlookup formula?
 
L

Lost in Microbiology

That worked thanks! I did have to change the data, it gave me an error at
first, because you can't have a constant as the lookup value. The dashes in
the sequence threw it off, but once I removed them, it worked.
 

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

Similar Threads

Only extract numbers from a string of text 4
vlookup 2 criteria 10
Insert Row and Countif Macro 1
How do i set up a data base in excel for code 128 1
Aligning related data 3
Nz function 6
Concatenation 1
Matching 1

Top