calling all experts (Vlookup?)


Posted by sdimaggio on December 20, 2001 4:41 AM

I have a table of data in Sheet 1 (columns A thru Z) with part numbers in column “A”. On Sheet 2 in column “A” I have a list of part numbers some of which appear many times. I am trying to figure out how to lookup the part numbers in Sheet 2 column “A” and then copy the corresponding data in Sheet 1 columns A thru Z and place it right next to the part number on Sheet 2 dropping data in columns B thru AA.

Can this be done?

Ps. I know this can be done with Vlookup in each cell in sheet 2 but I run out of memory and the file size becomes massive.

Posted by Paul on December 20, 2001 5:03 AM

Try using the if command in the cells instead e.g. type the following formula into sheet2 B1 and then drag it into cells c1 through aa1 and then down through the rows

=IF(A1=Sheet1!A1,Sheet1!B1,"")

Paul

Posted by Sdimaggio on December 20, 2001 6:25 AM

Doesn't Work, but good try.

"

Posted by Aladin Akyurek on December 20, 2001 6:46 AM

I've the impression that you want to get rid off duplicates entries in Sheet1. Am I close?

Aladin

============

Posted by sdimaggio on December 20, 2001 7:35 AM

Aladin Akyurek thanks for the interest

Thanks for responding. I really hope you can help. Sheet1 column A are all unique part numbers as is the data through columns Z. the data in columns b:z is unique to the part number in column A.

What I'm trying to do in sheet2 is have excell find the part numbers in column A sheet2 and then copy the data that is unique to it ie. B:Z which is in sheet1 and paste it right next to it in sheet2.

The main difference is that in sheet1 the part number is unique along with the data through column z. In sheet2 i may have a particular part number listed 4 different times. And i'm trying to have excel recognize the part number and then get the corresponding data in sheet1.

Vlookup will work if i put it in each cell in sheet2 but it slows down excel and the file size grows to be masssive.

I don't know whether I need VBA laguage / macro?

I sure hope you can help.

Posted by Aladin Akyurek on December 20, 2001 8:49 AM

Re: Aladin Akyurek thanks for the interest

I've apparently misread the question. You are not trying to eliminate duplicate rows from Sheet1 (there are no duplicates there). Quite the opposite. You want to intentionally create duplicate records in Sheet2 possibly for a subset of part numbers. But why would you that? Since you have everything in Sheet1, why do you need Sheet2?

Aladin

=============================

Posted by Sdimaggio on December 20, 2001 10:07 AM

Re: Aladin Akyurek thanks for the interest

there are a number of calculations that have to be made based off the information contained on sheet1. The part numbers are really approval numbers that appear on sheet1 with pricing that is variable based of off delivery volumes that only appear on sheet2 and which are identified by the approval number.

Posted by Aladin Akyurek on December 20, 2001 10:42 AM

Parts and Orders

This will sound strange, but it's a serious proposal.

You have in fact 2 tables which together makes a relational database, which are connected via the field "approval number". The first one contains apparently basic info about parts and the second orders related to parts. I'd suggest keeping them apart and not to repeat in Sheet2 (ORDERS) the info that is available in the other (PARTS).

If you need any info from PARTS (Sheet1) in order to do a computation in ORDERS (Sheet2), pull that info directly by using VLOOKUP from PARTS (Sheet1) into the formula in ORDERS (Sheet2) that does the computation as in

=qty*VLOOKUP(part-num,PARTS,PriceColumn,0)

where qty is a number in ORDERS (Sheet2), part-num (or approval-num) in ORDERS (Sheet2), price in PARTS (which gets retrieved with VLOOKUP).

The advantages are obvious in terms of memory/storage and processing speed.

What do you think?

Aladin

=======

Posted by Sdimaggio on December 20, 2001 10:59 AM

Re: Parts and Orders

You it the nail on the head. "memory/storage and processing speed" is the problem. I have done what you are proposing many times for other applications. However, it won't work here because of the memory/storage issue. So what I was trying to do is get the approval data right next to the delivery data without using a serious calucation/formula. Any ideas?

Posted by HR Eddens on December 26, 2001 2:41 PM

I have a similar situation. I have 9000 records of data, 3 columns. In a second sheet I want to do a VLOOKUP to find a part number and return a value next to it. The problem is that VLOOKUP stops when it finds a match, it won't continue to look at the next row. In my case there is not a field that is unique, no key index. Is there a way to force VLOOKUP to continue to look for more matches?



Posted by Aladin Akyurek on January 02, 2002 10:41 AM

Care to post 15 rows of your data from the 3 columns you mention?

Aladin