Matching location info by fid# to campaign name

rhartman

New Member
Joined
Aug 27, 2014
Messages
1
Need a formula or macro to match up the fid# in Column B in Sheet1 (and its corresponding location data in the row) to the number within the Campaign name in column A in sheet2. Numbers that need to match are highlighted in red. Below data is only a small sample of the full list.


SHEET 1:

fidlocation_nameaddress_1address_2suitecityregionpost_codecountrypost_code_pluslocal_phoneurl
101 Arcadia815 West Naomi AvenueUnit #C&DArcadiaCA91007US7560(626) 445-9747http://locations.jennycraig.com/ca/arcadia/weight-loss-center-101.html
102Brea2500 E. Imperial Highway#124-4BreaCA92821US6122(714) 671-0995http://locations.jennycraig.com/ca/brea/weight-loss-center-102.html
103Downey8310 Firestone BoulevardDowneyCA90241US3842(562) 622-9230http://locations.jennycraig.com/ca/downey/weight-loss-center-103.html
104Glendale314-316 N. Glendale AveGlendaleCA91206US3758(818) 240-7800http://locations.jennycraig.com/ca/glendale/weight-loss-center-104.html
105Lakewood4048 Hardwick StreetLakewoodCA90712US(562) 630-6704http://locations.jennycraig.com/ca/lakewood/weight-loss-center-105.html
106Irvine14415 Culver DriveIrvineCA92604US305(949) 857-8171http://locations.jennycraig.com/ca/irvine/weight-loss-center-106.html
110Studio City12930 Ventura BoulevardSte. 226BStudio CityCA91604US2200(818) 990-6212http://locations.jennycraig.com/ca/studiocity/weight-loss-center-110.html
111 Torrance21203 Hawthorne BlvdUnit 107-39 BTorranceCA90503US5501(310) 316-3047http://locations.jennycraig.com/ca/torrance/weight-loss-center-111.html
114Northridge18007 Chatsworth StreetGranada HillsCA91344US5608(818) 832-4955http://locations.jennycraig.com/ca/granadahills/weight-loss-center-114.html
115Huntington Beach7251 Warner Ave.Suite CHuntington BeachCA92647US5487(714) 841-1463http://locations.jennycraig.com/ca/huntingtonbeach/weight-loss-center-115.html
116 Culver City10814 Jefferson BoulevardSte. FCulver CityCA90230US4988(310) 253-5393http://locations.jennycraig.com/ca/culvercity/weight-loss-center-116.html
117 Montclair8801 Central Ave.Suite EMontclairCA91763US1657(909) 624-0058http://locations.jennycraig.com/ca/montclair/weight-loss-center-117.html
118Riverside10560 Magnolia AvenueSuite FRiversideCA92505US1889(951) 359-2060http://locations.jennycraig.com/ca/riverside/weight-loss-center-118.html
119 Whittier15030 Whittier BoulevardSte. 1WhittierCA90603US2070(562) 693-3761http://locations.jennycraig.com/ca/whittier/weight-loss-center-119.html
121Ventura4255 E. Main StreetSuite 14VenturaCA93003US5283(805) 644-9902http://locations.jennycraig.com/ca/ventura/weight-loss-center-121.html
122Thousand Oaks728-732 N. Moorpark RoadThousand OaksCA91360US3705(805) 494-4425http://locations.jennycraig.com/ca/thousandoaks/weight-loss-center-122.html
123West Hollywood100 North La Cienega Blvd.Suite A-105Los AngelesCA90048US1938(310) 358-0436http://locations.jennycraig.com/ca/losangeles/weight-loss-center-123.html

<tbody>
</tbody>






SHEET 2:


CampaignCompany NameAddressCityStatePostal CodeCountryPhone Number
Local: Springfield Centre: 2210Jenny Craig®
Local: Avondale Centre: 3209Jenny Craig®
Local: Tustin Centre: 167Jenny Craig®
Local: Green Tree Centre: 1253Jenny Craig®
Local: Countryside: 1704Jenny Craig®
Local: London Centre: 1901Jenny Craig®
Local: Edison Centre: 2030Jenny Craig®
Local: Herndon Centre: 4409Jenny Craig®
Local: Champions Centre: 3052Jenny Craig®
Local: Annapolis Centre: 3303Jenny Craig®
Local: Staten Island Centre: 2035Jenny Craig®
Local: Huntington Station Centre: 2045Jenny Craig®
Local: St. Catharines Centre: 1819Jenny Craig®
Local: Alexandria Centre: 4403Jenny Craig®
Local: Langley Centre: 1059Jenny Craig®
Local: Braintree Centre: 658Jenny Craig®
Local: Clackamas Centre: 454Jenny Craig®
Local: Hyde Park Centre: 1205Jenny Craig®
Local: Akers Mill Centre: 552Jenny Craig®
Local: Southshore Centre: 1971Jenny Craig®
Local: Glendale Centre: 3201Jenny Craig®
Local: Coral Springs Centre: 954Jenny Craig®
Local: West Chester Centre: 2213Jenny Craig®
Local: McLean Centre: 4411Jenny Craig®
Local: Fresno Centre: 3091Jenny Craig®
Local: Wayne Centre: 2027Jenny Craig®
Local: Palmdale Centre: 130Jenny Craig®
Local: Oviedo Centre: 1002Jenny Craig®
Local: Puyallup Centre: 417Jenny Craig®
Local: Columbia Centre: 3306Jenny Craig®
Local: Springfield Centre: 2025Jenny Craig®
Local: Westminster Centre: 3451Jenny Craig®
Local: Manchester Centre: 663Jenny Craig®

<tbody>
</tbody>
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Welcome to MrExcel.

Something like this perhaps:

B2: {=MATCH(" " &A2,RIGHT(E$2:E$5,1+LEN(A2)),0)} array-entered
C2: =INDEX(E$2:F$5,B2,2)

Or in one go, C2: {=INDEX(E$2:F$5,MATCH(" " &A2,RIGHT(E$2:E$5,1+LEN(A2)),0),2)}

Excel 2010
ABCDEF
1FIDFindRowFindValueTable on another sheet
21302QSomewhere 555P
333064SPalmdale: 130Q
4Somewhere else 306R
5Columbia Centre 3306S

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,709
Members
449,093
Latest member
Mnur

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