View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_] Ashish Mathur[_2_] is offline
external usenet poster
 
Posts: 1,766
Default Countif on zip codes that vary in format

Hi,

You can also use the following array formula (Ctrl+Shift+Enter)

COUNT(SEARCH(D1,A1:A2,1))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Don" wrote in message
...
A Zip Code list may contain: 12345 and 12345-6789 and 123456789

The reference cell "D1" on a seperate sheet = 12345

I want to know the number of occurances of the value in "D1" in the Zip
Code
List and I need to fill down 1800 rows (D1 to D1800) with the formula.

=COUNTIF('10 yrs'!I:I,D1) returns a count of 12345 within the list but
does
not capture the occurance of 12345 within the other longer strings. I
cannot
seem to add a wildcard to the "D1" value.

Any thought on how I can get there?