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.
[TABLE="width: 271"]
<tbody>[TR]
[TD][TABLE="width: 271"]
<tbody>[TR]
[TD]Points[/TD]
[TD]Miles[/TD]
[/TR]
[TR]
[TD]MEMPHIS TN[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]GERMANTOWN TN[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]BARTLETT TN[/TD]
[TD="align: right"]22[/TD]
[/TR]
[TR]
[TD]CORDOVA TN[/TD]
[TD="align: right"]24[/TD]
[/TR]
[TR]
[TD]COLLIERVILLE TN[/TD]
[TD="align: right"]27[/TD]
[/TR]
[TR]
[TD]MILLINGTON TN[/TD]
[TD="align: right"]29[/TD]
[/TR]
[TR]
[TD]EADS TN[/TD]
[TD="align: right"]32[/TD]
[/TR]
[TR]
[TD]BARRETVILLE TN[/TD]
[TD="align: right"]34[/TD]
[/TR]
[TR]
[TD]BOLTON TN[/TD]
[TD="align: right"]37[/TD]
[/TR]
[TR]
[TD]MUNFORD TN[/TD]
[TD="align: right"]37[/TD]
[/TR]
[TR]
[TD]DRUMMONDS TN[/TD]
[TD="align: right"]39[/TD]
[/TR]
[TR]
[TD]GALLAWAY TN[/TD]
[TD="align: right"]39[/TD]
[/TR]
[TR]
[TD]OAKLAND TN[/TD]
[TD="align: right"]39[/TD]
[/TR]
[TR]
[TD]BRIGHTON TN[/TD]
[TD="align: right"]42[/TD]
[/TR]
[TR]
[TD]MOSCOW TN[/TD]
[TD="align: right"]42[/TD]
[/TR]
[TR]
[TD]MASON TN[/TD]
[TD="align: right"]49[/TD]
[/TR]
[TR]
[TD]COVINGTON TN[/TD]
[TD="align: right"]52[/TD]
[/TR]
[TR]
[TD]LA GRANGE TN[/TD]
[TD="align: right"]52[/TD]
[/TR]
[TR]
[TD]GRAND JUNCTION TN[/TD]
[TD="align: right"]59[/TD]
[/TR]
[TR]
[TD]HENNING TN[/TD]
[TD="align: right"]59[/TD]
[/TR]
[TR]
[TD]ROSSVILLE TN[/TD]
[TD="align: right"]61[/TD]
[/TR]
[TR]
[TD]RIPLEY TN[/TD]
[TD="align: right"]66[/TD]
[/TR]
[TR]
[TD]BROWNSVILLE TN[/TD]
[TD="align: right"]68[/TD]
[/TR]
[TR]
[TD]STANTON TN[/TD]
[TD="align: right"]74[/TD]
[/TR]
[TR]
[TD]TIPTON TN[/TD]
[TD="align: right"]75[/TD]
[/TR]
[TR]
[TD]FORT PILLOW TN[/TD]
[TD="align: right"]76[/TD]
[/TR]
[TR]
[TD]BOLIVAR TN[/TD]
[TD="align: right"]77[/TD]
[/TR]
[TR]
[TD]HALLS TN[/TD]
[TD="align: right"]78[/TD]
[/TR]
[TR]
[TD]BELLS TN[/TD]
[TD="align: right"]79[/TD]
[/TR]
[TR]
[TD]MIDDLETON TN[/TD]
[TD="align: right"]79[/TD]
[/TR]
[TR]
[TD]WYNNBURG TN[/TD]
[TD="align: right"]80[/TD]
[/TR]
[TR]
[TD]SOMERVILLE TN[/TD]
[TD="align: right"]83[/TD]
[/TR]
[TR]
[TD]SAULSBURY TN[/TD]
[TD="align: right"]84[/TD]
[/TR]
[TR]
[TD]HORNSBY TN[/TD]
[TD="align: right"]86[/TD]
[/TR]
[TR]
[TD]MAURY CITY TN[/TD]
[TD="align: right"]86[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]


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>[TABLE="width: 174"]
<tbody>[TR]
[TD="class: xl65, width: 87"]Miles[/TD]
[TD="class: xl65, width: 87"]Memphis, TN[/TD]
[/TR]
[TR]
[TD="class: xl68"]0-15[/TD]
[TD="class: xl69, align: right"]$200[/TD]
[/TR]
[TR]
[TD="class: xl66"]16-20[/TD]
[TD="class: xl67, align: right"]$210[/TD]
[/TR]
[TR]
[TD="class: xl68"]21-25[/TD]
[TD="class: xl69, align: right"]$222[/TD]
[/TR]
[TR]
[TD="class: xl66"]26-30[/TD]
[TD="class: xl67, align: right"]$233[/TD]
[/TR]
[TR]
[TD="class: xl68"]31-35[/TD]
[TD="class: xl69, align: right"]$243[/TD]
[/TR]
[TR]
[TD="class: xl66"]36-40[/TD]
[TD="class: xl67, align: right"]$255[/TD]
[/TR]
[TR]
[TD="class: xl68"]41-45[/TD]
[TD="class: xl69, align: right"]$266[/TD]
[/TR]
[TR]
[TD="class: xl66"]46-50[/TD]
[TD="class: xl67, align: right"]$277[/TD]
[/TR]
[TR]
[TD="class: xl68"]51-55[/TD]
[TD="class: xl69, align: right"]$288[/TD]
[/TR]
[TR]
[TD="class: xl66"]56-60[/TD]
[TD="class: xl67, align: right"]$299[/TD]
[/TR]
[TR]
[TD="class: xl68"]61-65[/TD]
[TD="class: xl69, align: right"]$310[/TD]
[/TR]
[TR]
[TD="class: xl66"]66-70[/TD]
[TD="class: xl67, align: right"]$321[/TD]
[/TR]
[TR]
[TD="class: xl68"]71-75[/TD]
[TD="class: xl69, align: right"]$332[/TD]
[/TR]
[TR]
[TD="class: xl66"]76-80[/TD]
[TD="class: xl67, align: right"]$344[/TD]
[/TR]
[TR]
[TD="class: xl68"]81-85[/TD]
[TD="class: xl69, align: right"]$355[/TD]
[/TR]
[TR]
[TD="class: xl66"]86-90[/TD]
[TD="class: xl67, align: right"]$366[/TD]
[/TR]
[TR]
[TD="class: xl68"]91-95[/TD]
[TD="class: xl69, align: right"]$378[/TD]
[/TR]
[TR]
[TD="class: xl66"]96-100[/TD]
[TD="class: xl67, align: right"]$389[/TD]
[/TR]
[TR]
[TD="class: xl68"]101-105[/TD]
[TD="class: xl69, align: right"]$401[/TD]
[/TR]
[TR]
[TD="class: xl66"]106-110[/TD]
[TD="class: xl67, align: right"]$412[/TD]
[/TR]
[TR]
[TD="class: xl68"]111-115[/TD]
[TD="class: xl69, align: right"]$423[/TD]
[/TR]
[TR]
[TD="class: xl66"]116-120[/TD]
[TD="class: xl67, align: right"]$435[/TD]
[/TR]
[TR]
[TD="class: xl68"]121-125[/TD]
[TD="class: xl69, align: right"]$447[/TD]
[/TR]
[TR]
[TD="class: xl66"]126-130[/TD]
[TD="class: xl67, align: right"]$457[/TD]
[/TR]
[TR]
[TD="class: xl68"]131-135[/TD]
[TD="class: xl69, align: right"]$469[/TD]
[/TR]
[TR]
[TD="class: xl66"]136-140[/TD]
[TD="class: xl67, align: right"]$481[/TD]
[/TR]
[TR]
[TD="class: xl68"]141-145[/TD]
[TD="class: xl69, align: right"]$492[/TD]
[/TR]
[TR]
[TD="class: xl66"]146-150[/TD]
[TD="class: xl67, align: right"]$503[/TD]
[/TR]
[TR]
[TD="class: xl68"]151-155[/TD]
[TD="class: xl69, align: right"]$515[/TD]
[/TR]
[TR]
[TD="class: xl66"]156-160[/TD]
[TD="class: xl67, align: right"]$526[/TD]
[/TR]
[TR]
[TD="class: xl68"]161-165[/TD]
[TD="class: xl69, align: right"]$538[/TD]
[/TR]
[TR]
[TD="class: xl66"]166-170[/TD]
[TD="class: xl67, align: right"]$549[/TD]
[/TR]
[TR]
[TD="class: xl68"]171-175[/TD]
[TD="class: xl69, align: right"]$560[/TD]
[/TR]
[TR]
[TD="class: xl66"]176-180[/TD]
[TD="class: xl67, align: right"]$572[/TD]
[/TR]
</tbody>[/TABLE]

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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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