Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
COUNTIF across a number of worksheets | Excel Worksheet Functions | |||
countif formula to find the occurances of a number that is greater than one number but less than another | Excel Discussion (Misc queries) | |||
Countif using Wildcard * and number 1 | Excel Worksheet Functions | |||
excel data label format special number characters (part 2) | Excel Discussion (Misc queries) | |||
excel data label format special number characters | Excel Discussion (Misc queries) |