Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Vlookup for data comparison/validation?

I have a worksheet containing 2 colums of data to be updated in a database.
One column has the key, the other is the data to be updated. After it is
processed, I want to be able to download the entire data base to a second
worksheet and validate that the updates were made. I am only submitting
about 500 updates, but will have to download 34,000 records. I need to use
the key from the first worksheet to find a match on the second worksheet and
if found, give me the key and data on the first worksheet so I can sort and
compare the values.

EX:
worksheet 1:
Coumn 1 Column 2
abc olive
jkl cranberry
qrs pink

worksheet 2:
Column 1 Column 2
abc blue
def green
ghi yellow
jkl purple
mno red
qrs pink

What I want to do is use the value in column 1 from worksheet 1 to find a
match in column 1 from worksheet 2 and if found, put the key and value on
worksheet 1, so I end up with:

Coumn 1 Column 2
abc olive
jkl cranberry
qrs pink
abc blue
jkl purple
qrs pink

Then I could sort this worksheet by column 1 and use the EXACT function to
find where the updates were made correctly.

Someone suggested I could use VLOOKUP to do the first step, but I've tried
about 15 ways to do that with no luck. If I should be using a different
function, or if someone can help me with the VLOOKUP, or a better way to get
to where I want, I sure would appreciate it.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Vlookup for data comparison/validation?

Hi Linda 1949,

I think that the suggestion to use vlookup was a good one.

After you have downloaded the database to worksheet 2 I assume it is in
another workbook where I call it book2.xls you you will have to change it and
the database is on sheet1 in that book.

in the orginal sheet in cell C1 enter

=vlookup(a1,'[book2.xls]sheet1'!A:B,2,false)

then copy it down

then you can check cell to cell with column d

if(b1=c1,"","<<<<<")

and copy that down.


--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Linda1949" wrote:

I have a worksheet containing 2 colums of data to be updated in a database.
One column has the key, the other is the data to be updated. After it is
processed, I want to be able to download the entire data base to a second
worksheet and validate that the updates were made. I am only submitting
about 500 updates, but will have to download 34,000 records. I need to use
the key from the first worksheet to find a match on the second worksheet and
if found, give me the key and data on the first worksheet so I can sort and
compare the values.

EX:
worksheet 1:
Coumn 1 Column 2
abc olive
jkl cranberry
qrs pink

worksheet 2:
Column 1 Column 2
abc blue
def green
ghi yellow
jkl purple
mno red
qrs pink

What I want to do is use the value in column 1 from worksheet 1 to find a
match in column 1 from worksheet 2 and if found, put the key and value on
worksheet 1, so I end up with:

Coumn 1 Column 2
abc olive
jkl cranberry
qrs pink
abc blue
jkl purple
qrs pink

Then I could sort this worksheet by column 1 and use the EXACT function to
find where the updates were made correctly.

Someone suggested I could use VLOOKUP to do the first step, but I've tried
about 15 ways to do that with no luck. If I should be using a different
function, or if someone can help me with the VLOOKUP, or a better way to get
to where I want, I sure would appreciate it.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Vlookup for data comparison/validation?

Thanks Martin! That worked perfectly and I see how I was making errors with
the VLOOKUP function. You saved me hours of work!

"Martin Fishlock" wrote:

Hi Linda 1949,

I think that the suggestion to use vlookup was a good one.

After you have downloaded the database to worksheet 2 I assume it is in
another workbook where I call it book2.xls you you will have to change it and
the database is on sheet1 in that book.

in the orginal sheet in cell C1 enter

=vlookup(a1,'[book2.xls]sheet1'!A:B,2,false)

then copy it down

then you can check cell to cell with column d

if(b1=c1,"","<<<<<")

and copy that down.


--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Linda1949" wrote:

I have a worksheet containing 2 colums of data to be updated in a database.
One column has the key, the other is the data to be updated. After it is
processed, I want to be able to download the entire data base to a second
worksheet and validate that the updates were made. I am only submitting
about 500 updates, but will have to download 34,000 records. I need to use
the key from the first worksheet to find a match on the second worksheet and
if found, give me the key and data on the first worksheet so I can sort and
compare the values.

EX:
worksheet 1:
Coumn 1 Column 2
abc olive
jkl cranberry
qrs pink

worksheet 2:
Column 1 Column 2
abc blue
def green
ghi yellow
jkl purple
mno red
qrs pink

What I want to do is use the value in column 1 from worksheet 1 to find a
match in column 1 from worksheet 2 and if found, put the key and value on
worksheet 1, so I end up with:

Coumn 1 Column 2
abc olive
jkl cranberry
qrs pink
abc blue
jkl purple
qrs pink

Then I could sort this worksheet by column 1 and use the EXACT function to
find where the updates were made correctly.

Someone suggested I could use VLOOKUP to do the first step, but I've tried
about 15 ways to do that with no luck. If I should be using a different
function, or if someone can help me with the VLOOKUP, or a better way to get
to where I want, I sure would appreciate it.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLookup a Vlookup adamb2000 Excel Worksheet Functions 4 June 28th 06 10:54 PM
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


All times are GMT +1. The time now is 10:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"