cityzips(
CITY
,
STATE
)

The cityzips( function returns a list of zip codes associated with a city.


Parameters

This function has two parameters:

city – city to look up.

state – state the city is in, expressed as a case-insensitive two-letter code.


Description

This function returns a list of zip codes associated with a city. The list is returned as a comma-delimited list of zip codes.

cityzips("Solvang","CA") ☞ 93463,93464
cityzips("Fairbanks","ak") ☞ 99701,99706,99707,99708,99709,99710,99711,99712,99775,99790
cityzips("North Pole","AK") ☞ 99705

If the city doesn’t exist or an invalid state code is entered, an empty list is returned.

cityzips("South Pole","AK") ☞ 
cityzips("Fairbanks","Alaska") ☞ 

Note: The cityzips( function is much slower than the city( function, in fact, it is thousands of times slower. So you may want to avoid using it in repetitive situations like with the formulafill or select statements.


See Also


History

VersionStatusNotes
10.0NewNew in this version.