Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Countif if counted results are based on formula

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?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Countif if counted results are based on formula

Hi,

Try

=COUNTIF(1*M:M,"<=10")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"tmax" wrote in message
...
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?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Countif if counted results are based on formula



Sorry, neither one works. Any other suggestions?
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Countif if counted results are based on formula

Hi,

Sorry about my previous past - that will not work. Try this array formula
(Ctrl+Shoft+Enter)

=COUNT(IF((1*M10:M13<10),M10:M13*1))

You may also try this non-array formula

=SUMPRODUCT(1*(1*(M10:M13)<10))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"tmax" wrote in message
...
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?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Countif if counted results are based on formula

The first one did not work, the second one kind of worked, but did also count
the empty cells, which I forgot to mention where there.

So here is how i adjusted it and it works, thank you ver much!!! For your
help!!!


=SUMPRODUCT(1*(1*(P$10:P$1006)0.4),1*(1*(P$10:P$1 006)<10))

:-)
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Countif if counted results are based on formula

Hi,

Glad I could help

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"tmax" wrote in message
...
The first one did not work, the second one kind of worked, but did also
count
the empty cells, which I forgot to mention where there.

So here is how i adjusted it and it works, thank you ver much!!! For your
help!!!


=SUMPRODUCT(1*(1*(P$10:P$1006)0.4),1*(1*(P$10:P$1 006)<10))

:-)


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 function - results are the formula only Deborah R New Users to Excel 3 April 28th 07 05:20 PM
Average formula Counting zero's How do I get just the numers counted. [email protected] Excel Discussion (Misc queries) 1 March 2nd 07 02:56 PM
How do I COUNTIF from previously counted data? John Excel Worksheet Functions 1 September 13th 06 12:47 AM
Calculated Field in Pivot Table Based on Two Counted Fields cmlits Excel Discussion (Misc queries) 1 March 30th 06 05:44 AM
CountIf formula results in the formula itself being displayed. NewKid Excel Worksheet Functions 9 December 21st 05 11:10 PM


All times are GMT +1. The time now is 05:57 AM.

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

About Us

"It's about Microsoft Excel"