View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default Counting Question!

Hi,

I see one more contingency you may need to address - what if the number of
days is above 99. Then

=SUM(--(IF(ISNUMBER(VALUE(SUBSTITUTE(SUBSTITUTE(LEFT(G1:G 12,3),"-",""),"D",""))),VALUE(SUBSTITUTE(SUBSTITUTE(LEFT(G 1:G12,3),"-",""),"D","")),"")<=10))

Again Array entered.
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Danny Boy" wrote:

Thaks for the help Shane!

The only problem is that I want the count to occur ONLY if the values are
betwewen "1-Day(s) Till Birthday-Send Letter", and "10-Day(s) Till
Birthday-Send Letter". If the value is greater than 10-Day(s), NO counting
should occur. The formuula suggestion you graciously offered, counts for ALL
values greater than 0, as opposed to those restricted to "1-Day(s) through
10-Day(s).

Hope that offers clarification as to what I'm looking for?
Best,

Dan

"Shane Devenshire" wrote:

Hi,

This might work:

=COUNTIF(G4:G3500,"<")
or more likely
=SUMPRODUCT(--(LEN(G4:G3500)0))

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Danny Boy" wrote:

This is somewhat related to my Countdown Birthday Flag question, however a
bit different, so I chose to generate a "New" question for this...

I have a flag in Column G which identifies a "countdown" to someone's
Birthday:

10-Day(s) Till Birthday-Send Letter
9-Day(s) Till Birthday-Send Letter

The above flag appears between Days 10-1 (not on the actual Birthday
however). In cell G3, I merely want to "count" how many times the flag
appears in Column G, but I'm having difficulty doing this. I tried t hat
which you see below to no avail. In addition, the formula below needs to be
more refined so that the count only takes in the parameters of 10-1 Day(s)
Till Birthday-Send Letter:

=COUNTIF(G4:G3500<=",10-Day(s) Till Birthday-Send Letter")

Any ideas?

Thanks,

Dan