Formulas for

Validate Phone Numbers

Data Validation10 credits/cellSheets · Excel
=VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "detectedCountry")

Checks each phone number in a column for a given country, tells you whether it's valid and whether it's a mobile, landline or VoIP line, and hands back a clean, consistent format — E.164 (+18165551017), international or national. The fastest way to tidy a contact list that was typed in ten different styles.

It's one of 250+ live sources you reach with a single =VERVE() function — served from APIVerve's production data engine, billed at 10 credits per resolved cell, and refreshed on whatever cadence you set. No API keys to wrangle, no scripts, no exports.

A real example — the input you type, and the values you can pull from it. Click any cell to see the formula behind it.

phonenumbervalidator.xlsxsample data
C2fx=VERVE("phonenumbervalidator", A2, B2, "field", "detectedCountry")
A
B
C
D
E
1
Number
Country
Detected Country
Country Name
Countrycode
2
816-555-1017
us
US
United States
1
3
4
click any cell to see its formula10 credits / cell

Clean a contact list

Reformat every number in a CRM export to E.164 so imports into dialers, SMS tools and CRMs stop rejecting rows.

SMS-ready lists

Filter a list to valid mobile numbers before a text campaign, so the budget goes to numbers that can receive it.

Catch bad form entries

Flag invalid numbers in form submissions so someone follows up while the lead is fresh.

The same function works in both apps — install once, sign in with your key, and type it into any cell.

Google SheetsAdd-on

Install from the Workspace Marketplace, then drop the formula into a cell. Autocomplete suggests the source and its fields.

=VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "detectedCountry")
Microsoft ExcelAdd-in

Same source, same arguments, same key — in Excel on desktop, the web, or mobile. Excel namespaces it as VERVE.CALL. Drag to fill a whole column.

=VERVE.CALL("phonenumbervalidator", "816-555-1017", "us", "field", "detectedCountry")

Add a field name as the last argument to land just that value in the cell.

  • Detected Country
    =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "detectedCountry")
  • Country Name
    =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "countryName")
  • Countrycode
    =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "countrycode")
  • Number National
    =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "numberNational")
  • Is Valid
    =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "isValid")
  • Is Mobile
    =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "isMobile")
  • Is Voip
    =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "isVoip")
  • Is Disposable
    =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "isDisposable")
  • Type
    =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "type")
  • Formatted
    =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "formatted")
  • Formatted › International
    =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "formatted.international")
  • Formatted › National
    =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "formatted.national")

Validate Phone Numbers, answered

Everything you need to wire it into a sheet.

How do I validate phone numbers in Google Sheets?
Put the number in A2 and its country code (like us or gb) in B2, then use =VERVE("phonenumbervalidator", A2, B2, "field", "isValid"). Each row reads TRUE or FALSE. In Excel it's =VERVE.CALL("phonenumbervalidator", A2, B2, "field", "isValid").
How do I format phone numbers consistently?
Ask for a formatted field: "formatted.e164" gives +18165551017 (what SMS and calling tools want), "formatted.international" gives +1 816-555-1017 and "formatted.national" gives (816) 555-1017. Every row comes back in the same shape whatever way it was typed.
Can I tell mobiles from landlines?
Yes — "isMobile" is TRUE for mobile numbers and "type" names the line type. Useful before an SMS campaign, so you're not paying to text landlines.
How much does it cost?
10 credits per number. For a list that won't change, validate once and paste the results as values so a refresh doesn't re-check it.
How do I pull Validate Phone Numbers into Google Sheets?
Install the VerveSheets add-on, sign in once with your key, and type =VERVE("phonenumbervalidator", "816-555-1017", "us", "field", "detectedCountry") into any cell. The "field" argument names the value you want back, so the cell resolves to a single number or string you can chart, sort, or feed into another formula.
What data can I pull from Validate Phone Numbers?
Validate Phone Numbers returns detectedCountry, countryName, countrycode, numberNational and isValid, plus 7 more — name any one of them as the "field" argument and that value lands in the cell. Leave the field out and the whole record spills into a two-column table instead.
Can I fill a whole column of Validate Phone Numbers at once?
Yes. Put your number values down a column and point the formula at the range — A2:A50 instead of A2 — and one call returns a value for every row. Dragging the formula down works too, but the range form is a single billed call per column rather than one per cell.
How many credits does each Validate Phone Numbers cell cost?
Each resolved cell costs 10 credits. A cell only re-bills when it actually refreshes, so a sheet you aren't touching doesn't keep charging.
Does Validate Phone Numbers work in Excel as well as Google Sheets?
Yes — same arguments, same key, same fields. Excel namespaces custom functions, so the call is =VERVE.CALL() there and =VERVE() in Google Sheets; nothing else about it changes.

Put Validate Phone Numbers in your next spreadsheet. Add the extension, paste the formula, and the cell keeps itself current.

Scaling up?

Volume pricing, custom SLAs, and dedicated support for high-traffic teams.

Contact sales