Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Data range import, splitting

Featured Replies

  • Newbies

UPS furnishes a text file with ZipCode ranges associated with a service code (URC.txt). I need to split out the range into a service code DB with each individual ZipCode associated with a singular value for lookup-printing on a label. How can we automate this process as manually, its quite cumbersome and time-consuming and the file is updated periodically.

file resembles

"US","01051","01053"," MA 011 9-05"

"US","01054","01054"," MA 011 9-03"

"US","01056","01059"," MA 011 9-02"

"US","01060","01063"," MA 011 9-01"

Is there a convenient calculation to split out these ranges into a file with fields:

Country Zip Service Code

US 01051 MA 011 9-05

US 01052 MA 011 9-05

US 01053 MA 011 9-05

US 01054 MA 011 9-03

US 01056 MA 011 9-02

US 01057 MA 011 9-02

US 01058 MA 011 9-02

US 01059 MA 011 9-02

US 01060 MA 011 9-01

etc

Thanks in advance...Stephen

I need to split out the range into a service code DB with each individual ZipCode associated with a singular value for lookup-printing on a label.

Can you clarify your purpose? I am not sure what "lookup-printing on a label" means.

  • Author
  • Newbies

Sorry if I wasn't plain enough. I need to populate a FMP-DB with those three fields (Country, Zip, Service Code) so that I can use a lookup based on a ship-to zipcode in an address and from that lookup, populate a field on a UPS-approved shipping label. If its not necessary to split the range, but rather allow a lookup to use the range to find the Service code resultant - fine....Stephen

I think you can solve this very simply. Just add a calculation field (result is Text) to the same table where the imported data is =


Let ( [

v = SerialIncrement ( Extend ( StartZip ) ; Get ( CalculationRepetitionNumber ) - 1 )

]; 

Case ( v ≤ Extend ( EndZip ) ; v )

)

Set the number of repetitions to the highest expected range span. Then use this field as the matchfield for the lookup.

I'm wondering if the repeater method (which is cool, by the way) is more efficient

It used to be - I am not sure it still is. The truth is that you are absolutely right - I got side-tracked by the original question. I may not do things without reason, but that doesn't mean it's always the right reason. :

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.