Adding time and distance from one worksheet to another if the cities and states match.

Lopez106

New Member
Joined
Mar 22, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hi i am trying to find a way so that when ever a city and state match it pulls the information from another worksheet that has the distance and location and puts that in the notes of my first worksheet.
So for example State K and City L match on the Ref Tab i would like the notes Q to pull the Miles C time D Location E and county F.
Thanks in advance for any help you can give on this one
 

Attachments

  • Ref Page.PNG
    Ref Page.PNG
    27.4 KB · Views: 22
  • log notes.PNG
    log notes.PNG
    37.8 KB · Views: 25

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi, see the linked file for a possible solution...

The formulas used in the table:
=A2&"#"&B2
=LET(x,IFERROR(MATCH(B2&"#"&C2,RefPage!G:G,0),0),IF(x=0,"",INDEX(RefPage!E:E,x)))
=LET(x,IFERROR(MATCH(B2&"#"&C2,RefPage!G:G,0),0),IF(x=0,"",INDEX(RefPage!F:F,x)))

StatesCities.xlsx

RefPage.png


LogNotes.png
 
Upvote 0
Solution
Unfortunately, Google Drive doesn't recognize (e.g. FILTER) or mishandles (e.g. LET) some of the new functions. So far, the tables have always worked well after downloading. This is the first time that Google Drive breaks a table, it works wrongly after downloading. That's why I now uploaded the StatesCities.xlsx table packed. Fortunately, after downloading the ZIP file, the unpacked StatesCities.xlsx table will work correct with your Office 365.

StatesCities.zip
 
Upvote 0
Unfortunately, Google Drive doesn't recognize (e.g. FILTER) or mishandles (e.g. LET) some of the new functions. So far, the tables have always worked well after downloading. This is the first time that Google Drive breaks a table, it works wrongly after downloading. That's why I now uploaded the StatesCities.xlsx table packed. Fortunately, after downloading the ZIP file, the unpacked StatesCities.xlsx table will work correct with your Office 365.

StatesCities.zip
This worked great Thank you very much.
 
Upvote 0
Hi, I am very glad that the formulas work.
If I have enough knowledge, I am happy to help at any time.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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