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.

Partial Phone Number Match

Featured Replies

I have 2 databases that have a relationship on phone numbers

On database 1 I want a field that will look at database 2 to see if that phone number is there.

But I am not looking for exact match. I am looking for area code - prefix match.

Example database one has 222-333-4000

I want to do partial match on just first 7 characters.

So if database 2 has 222-333-4125 & 222-333-4287

then it would show there is a match

I tried a calculation field

If(Left(Phone;7) = Left(TBN_ADM_IC_231::Phone;7);"XX";"")

also tried

PatternCount (Left(TBN_ADM_IC_231::Phone;7) ; Left(Phone;7))

But they only returned exact matches.

there's an obvious solution that should work - and that is to have a calculation (in both) that says:

Phone_first7:(left(phone;7)) - or whatever you want to do to strip out any non numberic characters - and then either use this as the match field or at least compare these two.

Try this. Assuming Contacts2 is the number you want to check against contacts.

I read this wrong, sorry.

Phone__Find_Script.jpg

Edited by Guest

  • Author

I must be missing something.

Database 1 calculation field Phone7=LEFT(Phone;7)

Database 2 calculation field Phone7=LEFT(Phone;7)

They both display 222-333

Yet when I create a comapre field

ComparePhone=If(Database2::Phone7=Phone7;"DJM";"")

still not working right.

I think that you are trying to use a relationship correct?

If you are matching on DB1::Phone7 to DB2::Phone7, then all you have to do is Case ( IsValid ( DB2::Phone7); "DJM") or you can also use Case ( not IsEmpty ( DB2::Phone7); "DJM").

  • Author

Tried this & I can still only get it to work if exact match? Any suggestions. If you were going to do this please walk me through each step you would take. Thanks

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.