A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I have a large spreadsheet. One of the columns (C) contains ID numbers. Another column (G) has dates (mm/dd/yyyy and time portion). I am trying to find unique ID numbers from Column G falling above or below a specific date (10/01/2010). Here is the formula I am using:
=SUM(--(FREQUENCY(IF(G1130:G1181>"10/01/2010",MATCH(C1130:C1181,C1130:C1181,0)),ROW(INDIRECT("1:"&ROWS(C1130:C1181))))>0))
I am not getting any results. Is it the formula or perhaps the time should be incorporated into the date requested in the formula or even a wildcard character to account for the time portion?
Thank you in advance.
Your date is beng evaluated as the literal TEXT string 10/01/2010.
It will work like this:
=SUM(--(FREQUENCY(IF(G1130:G1181>--"10/01/2010",MATCH(C1130:C1181,C1130:C1181,0)),ROW(INDIRECT("1:"&ROWS(C1130:C1181))))>0))
However, I think you'd be better off using a cell to hold the date:
A1 = 10/1/2010
Then:
=SUM(--(FREQUENCY(IF(G1130:G1181>A1,MATCH(C1130:C1181,C1130:C1181,0)),ROW(INDIRECT("1:"&ROWS(C1130:C1181))))>0))
However (!), I'd suggest using this version:
=SUM(IF(FREQUENCY(IF(G1130:G1181>A1,MATCH(C1130:C1181,C1130:C1181,0)),ROW(C1130:C1181)-ROW(C1130)+1),1))
Overall, it's more efficient and it doesn't use the volatile INDIRECT function.
All formulas need to be array entered.
--
Biff
Microsoft Excel MVP