Thanks! (it´s a solution)
I see that there were several “errors” in my approach (in this example)
Since the example file was created directly in the spreadsheet, many formatting problems occurred. (sometimes a bit tricky to keep the cell as a text field)
Would be interesting to see what a solution with Base would look like.
How long it would take to use Base instead.
To eliminate errors/problems in Calc, I think the following steps should be a guide. (maybe
)
1) Create CSV file1 in textformat - UTF-8 - filename vLookup1.csv - with the following format .:
"Col1";"Col2";"Col3";"Col4"
"00061";"7391";"Item 1";"Info 1!"
"456-32";12345;"Item 5";""
"61791";"64117";"Item 3";"Info 2!"
"62227";"4740";"Item 2";""
"AB123";"065A";"Item 4";"Some info"
vLookup1.zip (273 Bytes)
2) Open the csv file with the following prerequisites in Calc
- Character set as .: UTF-8
- Separation Character .: Semicolon
- Format quoted field as text
- Select all fields and set them as “text” (to be sure)
The information is now in columns A-D
3) (not sure if this is necessary)
- Select DATA / Autofilter (first row as column header)
- Sort “Col1” ascending
4) Save the file as vLookup example v1.ods
Do the same with vLookup2.csv
"Tst1";"Tst2"
"0123";"64117"
"62227";"12345"
"";"7391"
Copy the contents of vLookup2 (columns A and B) to columns F and G in the file vLookup example v1.ods
Create the formulas and add some formatting for better overview
In my case, the result was the following:
vLookup example v1.ods (12.9 KB)
Summary
- If I had started right, maybe my desire would have been solved in 5 minutes.
- Still unsure if the sorting of the contents of the CSV files is important for the function.
- It would have been interesting to see a solution with Base and compare the pros and cons.