Hajimasabi
New Member
- Joined
- May 3, 2011
- Messages
- 3
I have a sheet with data similar to the following. (Sheet1)
........Col1 .................Col2
1 25145 Allure........ =VLOOKUP(A1,Sheet2!$A$1:$B$5,2)
2 25146 Allure
3 25147 Oak
4 25147 Pine
5 25147 Ash
The first column of the second sheet (Sheet2) contains the street address (common field) and other data I would like to merge over to the first using the Vlookup formula on the first page in column 3.
.........Col1 ...........Col2
1 25145 Allure ....POBox459
2 25146 Allure ....POBox125
3 25147 Oak ......POBox156
4 25147 Pine ......POBox784
5 25147 Ash ......POBox365
The formula works fine except where there are values that are partial duplicates such as 25147 Oak and 25147 Ash in which case the Vlookup returns the last (bottom) value for all of the rows like this:
........Col1 ..........Col2
1 25145 Allure ..... POBox 459
2 25146 Allure...... POBox 125
3 25147 Oak ........ POBox 365
4 25147 Pine ....... POBox365
5 25147 Ash .........POBox 365
Rows are formatted as text and are sorted A-Z and the common fields between sheets appear to be identical (no spaces or other weirdness). Can anybody help me figure out how to correct this issue? It appears that the formula is only looking at the first numerical part of each entry.
Many Thanks
........Col1 .................Col2
1 25145 Allure........ =VLOOKUP(A1,Sheet2!$A$1:$B$5,2)
2 25146 Allure
3 25147 Oak
4 25147 Pine
5 25147 Ash
The first column of the second sheet (Sheet2) contains the street address (common field) and other data I would like to merge over to the first using the Vlookup formula on the first page in column 3.
.........Col1 ...........Col2
1 25145 Allure ....POBox459
2 25146 Allure ....POBox125
3 25147 Oak ......POBox156
4 25147 Pine ......POBox784
5 25147 Ash ......POBox365
The formula works fine except where there are values that are partial duplicates such as 25147 Oak and 25147 Ash in which case the Vlookup returns the last (bottom) value for all of the rows like this:
........Col1 ..........Col2
1 25145 Allure ..... POBox 459
2 25146 Allure...... POBox 125
3 25147 Oak ........ POBox 365
4 25147 Pine ....... POBox365
5 25147 Ash .........POBox 365
Rows are formatted as text and are sorted A-Z and the common fields between sheets appear to be identical (no spaces or other weirdness). Can anybody help me figure out how to correct this issue? It appears that the formula is only looking at the first numerical part of each entry.
Many Thanks