Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default COUNTIF SPECIAL NUMBER

I am trying to set a formula that will only count a cells in a column if the
cell is occupied w/ social security numbers.

Appreciate any assistance,
Aron
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default COUNTIF SPECIAL NUMBER

How are social security numbers distinguished from any other number?

"Aron" wrote:

I am trying to set a formula that will only count a cells in a column if the
cell is occupied w/ social security numbers.

Appreciate any assistance,
Aron

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 100
Default COUNTIF SPECIAL NUMBER

Assuming column A holds them like this: 123-45-6789

=SUMPRODUCT(--(LEN(A1:A100)=11),--(NOT(ISERROR(VALUE(LEFT(A1:A100,3))))),--(NOT(ISERROR(VALUE(MID(A1:A100,5,2))))),--(NOT(ISERROR(VALUE(RIGHT(A1:A100,4))))),--(MID(A1:A100,4,1)="-"),--(MID(A1:A100,7,1)="-"))

This will total all that pass the test that the entire entry is 11
characters, the first three characters are numbers, the two in the middle are
numbers, the four on the end are numbers, the fourth character is the dash
and the seventh character is the dash. It won't work if you try to count an
entire column at once, so edit the A1:A100 part to suit your needs, but don't
use A:A. If you've using a format other than 123-45-6789, post a sample, and
we can adjust from there.

"Aron" wrote:

I am trying to set a formula that will only count a cells in a column if the
cell is occupied w/ social security numbers.

Appreciate any assistance,
Aron

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIF across a number of worksheets Rup1776 Excel Worksheet Functions 1 September 13th 06 10:41 AM
countif formula to find the occurances of a number that is greater than one number but less than another steveo Excel Discussion (Misc queries) 3 July 8th 06 02:04 AM
Countif using Wildcard * and number 1 southdaytona Excel Worksheet Functions 4 November 3rd 05 05:41 PM
excel data label format special number characters (part 2) todd Excel Discussion (Misc queries) 1 May 4th 05 04:08 PM
excel data label format special number characters todd Excel Discussion (Misc queries) 0 May 4th 05 01:30 PM


All times are GMT +1. The time now is 07:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"