Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
KS KS is offline
external usenet poster
 
Posts: 33
Default If(Column = Today, Countif, NA()) Help

Hey All,

Hope you are doing well...

Getting right to the point...

=IF(LOOKUP(TODAY(),ManualData!I:I),COUNTIF(INDIREC T(ManualData!G:G"),"*"&A2),NA())

It is still counting the whole column even if it is not todays date, what am
I doing wrong?

If you need more information, just let me know.

Any help would be great!

Thanks in advanced!!!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default If(Column = Today, Countif, NA()) Help

=IF(LOOKUP(TODAY(),ManualData!I:I),COUNTIF(INDIRE CT(ManualData!G:G"),"*"&A2),NA())

If all the dates in I:I are less than or equal to TODAY then the LOOKUP
returns the *last* date from the range. The numeric value of that date
causes the IF logical test to evaluate as TRUE thereby executing the the
COUNTIF.

Why are you using INDIRECT? You're missing a quote.

Maybe this is what you're after:

=IF(COUNTIF(ManualData!I:I,TODAY()),COUNTIF(INDIRE CT("ManualData!G:G"),"*"&A2),NA())

--
Biff
Microsoft Excel MVP


"KS" wrote in message
...
Hey All,

Hope you are doing well...

Getting right to the point...

=IF(LOOKUP(TODAY(),ManualData!I:I),COUNTIF(INDIREC T(ManualData!G:G"),"*"&A2),NA())

It is still counting the whole column even if it is not todays date, what
am
I doing wrong?

If you need more information, just let me know.

Any help would be great!

Thanks in advanced!!!!!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 72
Default If(Column = Today, Countif, NA()) Help

Hi KS,

The Countif allows using "*"&A2, unfortunately the multi condition worksheet
functions are not as flexible.

The following formula checks to see if the date is the same as today and
that column G is equal to A2.

=SUMPRODUCT((ManualData!I:I=TODAY())*(INDIRECT("Ma nualData!G:G")=A2))

If you need to count based on whether a part of a cell's contents is equal
to another cell - then you will have to create a new column to test for that
condition.

H2=IF(ISERROR(FIND(A$2,G2,1))=FALSE,1,0)

=SUMPRODUCT((ManualData!I:I=TODAY())*(INDIRECT("Ma nualData!H:H")=1))

Hope this helps.

Peggy

"KS" wrote:

Hey All,

Hope you are doing well...

Getting right to the point...

=IF(LOOKUP(TODAY(),ManualData!I:I),COUNTIF(INDIREC T(ManualData!G:G"),"*"&A2),NA())

It is still counting the whole column even if it is not todays date, what am
I doing wrong?

If you need more information, just let me know.

Any help would be great!

Thanks in advanced!!!!!

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 for numbers of dates in column which are 30 days older than today [email protected] Excel Worksheet Functions 4 April 3rd 23 02:39 PM
Countif date before today Joe M. Excel Discussion (Misc queries) 1 May 15th 08 04:44 PM
excel today countif over expired date JonnieP Excel Worksheet Functions 2 November 30th 05 10:38 PM
countif a date is greater than today Keith Excel Worksheet Functions 3 January 12th 05 03:37 AM
countif(a1:a12,">TODAY()") How do I get this to work? Dan Bork Excel Worksheet Functions 1 November 11th 04 10:54 PM


All times are GMT +1. The time now is 11:14 PM.

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"