Pull rates from another sheet in work book

ITSDISP

New Member
Joined
Oct 8, 2010
Messages
16
I am sure my title is not correct on what I need to do.

OK, I have a spreadsheet (work book) that has 2 sheets in it. Points has city and miles.
PointsMiles
MEMPHIS TN13
GERMANTOWN TN18
BARTLETT TN22
CORDOVA TN24
COLLIERVILLE TN27
MILLINGTON TN29
EADS TN32
BARRETVILLE TN34
BOLTON TN37
MUNFORD TN37
DRUMMONDS TN39
GALLAWAY TN39
OAKLAND TN39
BRIGHTON TN42
MOSCOW TN42
MASON TN49
COVINGTON TN52
LA GRANGE TN52
GRAND JUNCTION TN59
HENNING TN59
ROSSVILLE TN61
RIPLEY TN66
BROWNSVILLE TN68
STANTON TN74
TIPTON TN75
FORT PILLOW TN76
BOLIVAR TN77
HALLS TN78
BELLS TN79
MIDDLETON TN79
WYNNBURG TN80
SOMERVILLE TN83
SAULSBURY TN84
HORNSBY TN86
MAURY CITY TN86

<tbody>
</tbody>

<tbody>
</tbody>


Rates has
<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;}tr {mso-height-source:auto;}col {mso-width-source:auto;}br {mso-data-placement:same-cell;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}.xl65 {color:black; font-size:10.0pt; font-weight:700; font-family:Arial, sans-serif; mso-font-charset:0; border:.5pt solid #4472C4 ;}.xl66 {color:black; font-size:11.0pt; border:.5pt solid #4472C4 ;}.xl67 {color:black; font-size:11.0pt; mso-number-format:"\0022$\0022\#\,\#\#0_\)\;\[Red\]\\\(\0022$\0022\#\,\#\#0\\\)"; border:.5pt solid #4472C4 ;}.xl68 {font-size:11.0pt; border:.5pt solid #4472C4 ; background:#D9E1F2; mso-pattern:black none;}.xl69 {font-size:11.0pt; mso-number-format:"\0022$\0022\#\,\#\#0_\)\;\[Red\]\\\(\0022$\0022\#\,\#\#0\\\)"; border:.5pt solid #4472C4 ; background:#D9E1F2; mso-pattern:black none;}--></style>
MilesMemphis, TN
0-15$200
16-20$210
21-25$222
26-30$233
31-35$243
36-40$255
41-45$266
46-50$277
51-55$288
56-60$299
61-65$310
66-70$321
71-75$332
76-80$344
81-85$355
86-90$366
91-95$378
96-100$389
101-105$401
106-110$412
111-115$423
116-120$435
121-125$447
126-130$457
131-135$469
136-140$481
141-145$492
146-150$503
151-155$515
156-160$526
161-165$538
166-170$549
171-175$560
176-180$572

<tbody>
</tbody>

I need a formula that will go to the rate sheet and pull the rate over to the points sheet. Attached is a link to the spreadsheet on drop box. It should open. My 1st problem is the rates are grouped together. Any help would greatly be appreciated. I am doing this by hand now using a filter and I have thousands of these points.



https://www.dropbox.com/s/zfdejeoey36oyiz/HELP%20TEST.xlsx?dl=0
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi,

If I understand correctly, does this do what you need?


Book1
ABC
2MEMPHIS TN13200
3GERMANTOWN TN18210
4BARTLETT TN22222
5CORDOVA TN24222
6COLLIERVILLE TN27233
7MILLINGTON TN29233
8EADS TN32243
9BARRETVILLE TN34243
10BOLTON TN37255
11MUNFORD TN37255
12DRUMMONDS TN39255
13GALLAWAY TN39255
14OAKLAND TN39255
15BRIGHTON TN42266
16MOSCOW TN42266
17MASON TN49277
18COVINGTON TN52288
19LA GRANGE TN52288
20GRAND JUNCTION TN59299
21HENNING TN59299
22ROSSVILLE TN61310
23RIPLEY TN66321
24BROWNSVILLE TN68321
25STANTON TN74332
26TIPTON TN75332
27FORT PILLOW TN76344
28BOLIVAR TN77344
29HALLS TN78344
30BELLS TN79344
31MIDDLETON TN79344
32WYNNBURG TN80344
33SOMERVILLE TN83355
34SAULSBURY TN84355
35HORNSBY TN86366
36MAURY CITY TN86366
37GADSDEN TN87366
38DYERSBURG TN88366
POINTS
Cell Formulas
RangeFormula
C2=LOOKUP(B2,LEFT(RATES!A$3:A$80,FIND("-",RATES!A$3:A$80)-1)+0,RATES!B$3:B$80)


Formula copied down.
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,332
Members
449,155
Latest member
ravioli44

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top