Festive Dingbats 2024 C/D 6Th Jan
Quizzes & Puzzles1 min ago
Hi,
I'm struggling to enter the correct function, can somebody please help.
I want to search on a specified value contained in the 1st spreadsheet for the same value in a second spreadsheet. Once found I want the relevant row in the 1st spreadsheet to autofill with data from the 2nd spreadsheet.
Spreadsheet 1:
Code ] Address 1
123 ] to be filled from 2nd spreadsheet
Spreadsheet 2:
Code ] Address 1
123 ] 20 the road, somewhere
I know this is possible but can't seem to find the function - it will be something similar to Vlookup but I can't figure it out.
I hope I have explained it well enough and would really appreciate your suggestions
No best answer has yet been selected by matthay. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.It is VLOOKUP you will need to use. Firstly, your 'source' address list should be sorted in numerical order of your 'code' column.
Then, in your lookup cell, use the following formula:
=VLOOKUP(A1,sheet2!A1:B20,2)
where:
A1 is the value you want to search for
sheet2!A1:B20 is the range of addresses with 'code' in the first column and the address in the second column
2 is the column number to retrieve info from (in this case column 2).
Hope that helps!