Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
luvthavodka
 
Posts: n/a
Default COUNTIF, dates and blank cell criteria

I'm looking to count the number of blank cells in column G (only upto the
bottom of the data table I'm using - the length of which is unknown until the
end of the month, but only if the corresponding cell in column A (a date) is
greater than 28 days old. What formula should I use?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default COUNTIF, dates and blank cell criteria

=SUM(IF((TODAY()A1:INDEX(A:A,MAX(IF(ISBLANK(G1:G6 5535),0,ROW(G1:G65535))))+
28)*
(G1:INDEX(G:G,MAX(IF(ISBLANK(G1:G65535),0,ROW(G1:G 65535))))=""),1))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with googlemail if mailing direct)

"luvthavodka" wrote in message
...
I'm looking to count the number of blank cells in column G (only upto the
bottom of the data table I'm using - the length of which is unknown until

the
end of the month, but only if the corresponding cell in column A (a date)

is
greater than 28 days old. What formula should I use?



  #3   Report Post  
Posted to microsoft.public.excel.misc
luvthavodka
 
Posts: n/a
Default COUNTIF, dates and blank cell criteria

Thanks Bob, but i'm getting a #VALUE return with this. Have committed with
Ctrl-Shift-Enter...is there anything else I could have done wrong?

Regards

Jenny

"Bob Phillips" wrote:

=SUM(IF((TODAY()A1:INDEX(A:A,MAX(IF(ISBLANK(G1:G6 5535),0,ROW(G1:G65535))))+
28)*
(G1:INDEX(G:G,MAX(IF(ISBLANK(G1:G65535),0,ROW(G1:G 65535))))=""),1))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with googlemail if mailing direct)

"luvthavodka" wrote in message
...
I'm looking to count the number of blank cells in column G (only upto the
bottom of the data table I'm using - the length of which is unknown until

the
end of the month, but only if the corresponding cell in column A (a date)

is
greater than 28 days old. What formula should I use?




  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default COUNTIF, dates and blank cell criteria

It might be the NG wrap-around. Try this version

=SUM(IF((TODAY()A1:INDEX(A:A,MAX(IF(ISBLANK(G1:G6 5535),0,ROW(G1:G65535))))
+28)*(G1:INDEX(G:G,MAX(IF(ISBLANK(G1:G65535),0,ROW (G1:G65535))))=""),1))

still array entered

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"luvthavodka" wrote in message
...
Thanks Bob, but i'm getting a #VALUE return with this. Have committed with
Ctrl-Shift-Enter...is there anything else I could have done wrong?

Regards

Jenny

"Bob Phillips" wrote:


=SUM(IF((TODAY()A1:INDEX(A:A,MAX(IF(ISBLANK(G1:G6 5535),0,ROW(G1:G65535))))+
28)*
(G1:INDEX(G:G,MAX(IF(ISBLANK(G1:G65535),0,ROW(G1:G 65535))))=""),1))

which is an array formula, it should be committed with Ctrl-Shift-Enter,

not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with googlemail if mailing direct)

"luvthavodka" wrote in message
...
I'm looking to count the number of blank cells in column G (only upto

the
bottom of the data table I'm using - the length of which is unknown

until
the
end of the month, but only if the corresponding cell in column A (a

date)
is
greater than 28 days old. What formula should I use?






  #5   Report Post  
Posted to microsoft.public.excel.misc
luvthavodka
 
Posts: n/a
Default COUNTIF, dates and blank cell criteria

Still suffering the #VALUE??!!! Thanks for your help anyway Bob....I shall
spend a few more hours trying to figure this one out...grrrrr...

"Bob Phillips" wrote:

It might be the NG wrap-around. Try this version

=SUM(IF((TODAY()A1:INDEX(A:A,MAX(IF(ISBLANK(G1:G6 5535),0,ROW(G1:G65535))))
+28)*(G1:INDEX(G:G,MAX(IF(ISBLANK(G1:G65535),0,ROW (G1:G65535))))=""),1))

still array entered

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"luvthavodka" wrote in message
...
Thanks Bob, but i'm getting a #VALUE return with this. Have committed with
Ctrl-Shift-Enter...is there anything else I could have done wrong?

Regards

Jenny

"Bob Phillips" wrote:


=SUM(IF((TODAY()A1:INDEX(A:A,MAX(IF(ISBLANK(G1:G6 5535),0,ROW(G1:G65535))))+
28)*
(G1:INDEX(G:G,MAX(IF(ISBLANK(G1:G65535),0,ROW(G1:G 65535))))=""),1))

which is an array formula, it should be committed with Ctrl-Shift-Enter,

not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with googlemail if mailing direct)

"luvthavodka" wrote in message
...
I'm looking to count the number of blank cells in column G (only upto

the
bottom of the data table I'm using - the length of which is unknown

until
the
end of the month, but only if the corresponding cell in column A (a

date)
is
greater than 28 days old. What formula should I use?








  #6   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default COUNTIF, dates and blank cell criteria

Maybe, a couple of possibilities...

1) If you have Excel 2003 or later, convert the data into a list...

Data List Create List

Then, assuming that A2:A100 contains the date, and G2:G100 contains the
corresponding data, try...

=SUMPRODUCT(--(A2:A100<""),--(A2:A100<TODAY()-28),--(G2:G100=""))

The range will automatically adjust as you add/remove data.

2) Define the following named ranges...

Insert Name Define

Name: RangeX

Refers to:

=Sheet1!$A$2:INDEX(Sheet1!$A$2:$A$65536,MATCH(9.99 999999999999E+307,Sheet
1!$A$2:$A$65536))

Click Add

Name: RangeY

Refers to:

=Sheet1!$G$2:INDEX(Sheet1!$G$2:$G$65536,MATCH(9.99 999999999999E+307,Sheet
1!$A$2:$A$65536))

Click Ok

Change the sheet reference accordingly. Then, try the following
formula...

=SUMPRODUCT(--(RangeX<""),--(RangeX<TODAY()-28),--(RangeY=""))

Hope this helps!

In article ,
luvthavodka wrote:

I'm looking to count the number of blank cells in column G (only upto the
bottom of the data table I'm using - the length of which is unknown until the
end of the month, but only if the corresponding cell in column A (a date) is
greater than 28 days old. What formula should I use?

  #7   Report Post  
Posted to microsoft.public.excel.misc
luvthavodka
 
Posts: n/a
Default COUNTIF, dates and blank cell criteria

Thats option Domenic - option 2 worked a treat!

"Domenic" wrote:

Maybe, a couple of possibilities...

1) If you have Excel 2003 or later, convert the data into a list...

Data List Create List

Then, assuming that A2:A100 contains the date, and G2:G100 contains the
corresponding data, try...

=SUMPRODUCT(--(A2:A100<""),--(A2:A100<TODAY()-28),--(G2:G100=""))

The range will automatically adjust as you add/remove data.

2) Define the following named ranges...

Insert Name Define

Name: RangeX

Refers to:

=Sheet1!$A$2:INDEX(Sheet1!$A$2:$A$65536,MATCH(9.99 999999999999E+307,Sheet
1!$A$2:$A$65536))

Click Add

Name: RangeY

Refers to:

=Sheet1!$G$2:INDEX(Sheet1!$G$2:$G$65536,MATCH(9.99 999999999999E+307,Sheet
1!$A$2:$A$65536))

Click Ok

Change the sheet reference accordingly. Then, try the following
formula...

=SUMPRODUCT(--(RangeX<""),--(RangeX<TODAY()-28),--(RangeY=""))

Hope this helps!

In article ,
luvthavodka wrote:

I'm looking to count the number of blank cells in column G (only upto the
bottom of the data table I'm using - the length of which is unknown until the
end of the month, but only if the corresponding cell in column A (a date) is
greater than 28 days old. What formula should I use?


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 non blank cells + dates overdue mcmillad Excel Worksheet Functions 1 April 19th 06 01:47 PM
=IF cell needs to show blank if blank Boethius1 Excel Discussion (Misc queries) 5 March 1st 06 05:36 PM
what means 'blank cell'?? Ted Excel Worksheet Functions 5 November 21st 05 02:10 AM
Search Range for Criteria in given cell and produce results RFreeman12 Excel Discussion (Misc queries) 3 June 27th 05 09:23 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM


All times are GMT +1. The time now is 05:05 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"