View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefi Stefi is offline
external usenet poster
 
Posts: 2,646
Default Countif if counted results are based on formula

Try this way:
=COUNTIF(M:M,"<="&10)

Regards,
Stefi

€˛tmax€¯ ezt Ć*rta:

I have the birthdays of all employees in column L.
I have the number of days remaining until the birthday is coming up in
Column M

the formula is
=IF(TEXT(L12,"mmdd")=TEXT(TODAY(),"mmdd"),"",((TEX T(L12,"d-mmm-")&(YEAR(NOW())+(TEXT(L12,"mmdd")<TEXT(NOW(),"mmdd "))))-TODAY())&IF(((TEXT(L12,"d-mmm-")&(YEAR(NOW())+(TEXT(L12,"mmdd")<TEXT(NOW(),"mmdd "))))-TODAY())<=10,"",""))

now I want to count all the birthdays that are coming up within the next 10
days, but if I use the countif formula it simply ignores the formula based
results.

=COUNTIF(M:M,"<=10") if I "type" the same numbers it does count those.

L M
04/01/82 7
04/03/82 9
03/26/82 1
03/28/85 3

Does anyone have a suggestion?