working with 2 workbooks "CLient-order dbase" workbook A & "ups sheet" spreadsheet workbook B
in workbook A "CLient-order dbase", woksheet A "TBC DBASE" column K contains zip+4 zip code ie. 11741-5921
ZIP CODE
06811-5171
06070-2220
76710-4601
11501-3194
11576-2127
55313
11530-5738
60712-3014
33140-3278
02446-2201
02748-2022
11530-5725
95682-8440
02446
01550-2564
02467-2182
12078-2135
in workbook A "CLient-order dbase", woksheet A "TBC DBASE" column AF contains UPS Zone ie. 2
UPS ZONE
2
2
7
2
2
6
2
5
6
2
2
2
8
2
2
2
2
I now need to retrieve the SCF # for each of these records
SCF means 1st 3 digits of the zip
Since I have the Zip code, I can get the scf-
In column fy I enter the formula =LEFT(K1,3)
results are now:
068
060
767
115
115
553
115
607
331
024
027
115
956
024
015
024
120
Now in workbook B "UPS Sheet", I have a woksheet called UPS Zone
there are 3 collumns:
A= SCF min
B= SCf max
C= UPS zone
It looks like this:
Dest. ZIP ZONE
TO FROM
004 005 2
006 007 45
008 [1]
009 45
010 013 2
014 3
015 018 2
019 3
020 024 2
025 026 3
027 029 2
030 033 3
034 2
035 043 3
044 4
045 3
046 049 4
050 051 3
052 053 2
054 3
055 2
056 059 3
060 089 2
090 099 -
100 127 2
128 136 3
137 139 2
140 142 3
143 4
144 149 3
150 154 4
155 3
156 4
157 159 3
I am trying to figure out a lookup that will pull column C "UPS ZONE"
If SCF either = scf in Column A "SCF MIN"
or
is greater than & equal to column A "SCF MIN" & less than or equal to the Collumn B "SCF MAX"
Now I know if I delete the Max & Min and just list every possible scf straight down in Column A & in Column b just have the zone - I can use a basic vlookup statement. But since I have to find either a match in A or B or between column a or b, I am having trouble.
Thanks again in advance for your help.
Alan
in workbook A "CLient-order dbase", woksheet A "TBC DBASE" column K contains zip+4 zip code ie. 11741-5921
ZIP CODE
06811-5171
06070-2220
76710-4601
11501-3194
11576-2127
55313
11530-5738
60712-3014
33140-3278
02446-2201
02748-2022
11530-5725
95682-8440
02446
01550-2564
02467-2182
12078-2135
in workbook A "CLient-order dbase", woksheet A "TBC DBASE" column AF contains UPS Zone ie. 2
UPS ZONE
2
2
7
2
2
6
2
5
6
2
2
2
8
2
2
2
2
I now need to retrieve the SCF # for each of these records
SCF means 1st 3 digits of the zip
Since I have the Zip code, I can get the scf-
In column fy I enter the formula =LEFT(K1,3)
results are now:
068
060
767
115
115
553
115
607
331
024
027
115
956
024
015
024
120
Now in workbook B "UPS Sheet", I have a woksheet called UPS Zone
there are 3 collumns:
A= SCF min
B= SCf max
C= UPS zone
It looks like this:
Dest. ZIP ZONE
TO FROM
004 005 2
006 007 45
008 [1]
009 45
010 013 2
014 3
015 018 2
019 3
020 024 2
025 026 3
027 029 2
030 033 3
034 2
035 043 3
044 4
045 3
046 049 4
050 051 3
052 053 2
054 3
055 2
056 059 3
060 089 2
090 099 -
100 127 2
128 136 3
137 139 2
140 142 3
143 4
144 149 3
150 154 4
155 3
156 4
157 159 3
I am trying to figure out a lookup that will pull column C "UPS ZONE"
If SCF either = scf in Column A "SCF MIN"
or
is greater than & equal to column A "SCF MIN" & less than or equal to the Collumn B "SCF MAX"
Now I know if I delete the Max & Min and just list every possible scf straight down in Column A & in Column b just have the zone - I can use a basic vlookup statement. But since I have to find either a match in A or B or between column a or b, I am having trouble.
Thanks again in advance for your help.
Alan