English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have two files, one with data of about 2000 items (each different item is coded with a 3-4 letter acronym), the other with about 200 items (coded in the same way) but with different attributes. So for example the first file has AAAA: length 6 width 3 etc and the second file has AAAA: Weight 5.6 volume 7.8. I want to end up with all the data elements on the same line.

I'm using Excel and don't want to export to a database etc.

Thanks

2007-01-23 02:15:16 · 5 answers · asked by VBproblem 1 in Computers & Internet Programming & Design

5 answers

VLOOKUP is what you want to use. Assuming the 2000 items contains the 200 items then the formula you want will be along the lines of:

=IF(ISERROR(VLOOKUP(cellref_of_ AAAA_in_big_range, small_range_with _AAAA_leftmost, column_of_info_required, FALSE)),"",VLOOKUP(cellref_of_ AAAA_in_big_range, small_range _with_AAAA_leftmost, column_of_info_required, FALSE))

replace the lower case stuff with what it describes in your workbook, and repeat for each column you want to return. This will populate those rows in the 2000 that have no match in the 200 with empty cells. To populate with zero instead replace the "" in the formula with 0.

2007-01-23 02:45:44 · answer #1 · answered by johninmelb 4 · 0 0

you can just copy and paste it, so that you have all the data in 1 file. You then have to do a lot of work to change the layout, maybe exporting it to a database is much easier.

2007-01-23 02:18:59 · answer #2 · answered by Preykill 5 · 0 0

put both sheets in one workbook and use the vlookup function.

when you open the vlookup function it will explain how to use it.

It will do the search and paste based on the common info ex. AAAA

2007-01-23 02:20:26 · answer #3 · answered by rjc 2 · 0 0

if you make the columns on each one the same, which is pretty easy. you can just cut and paste the whole database instead of just cutting and pasting each column(which could make it easy to mix match some of your info). Then you can sort it how ever you want.

2007-01-23 02:21:44 · answer #4 · answered by Anonymous · 0 0

You could try using the Merge facility - I use it for letters, labels, invoices, etc.

2007-01-23 02:29:44 · answer #5 · answered by Lynda Lou 5 · 0 0

fedest.com, questions and answers