Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default AND & COUNTIF in same formula

I have this formula previously stated on the forum which indicates when a
person is 1 year out of date

=AND(G3<,DATE(YEAR(G3)+1,MONTH(G3),DAY(G3)) <=TODAY())

Can I add a COUNTIF like that below to the equation so that the No cells add
up into cell G50?

=COUNTIF(G3:G48,"N")
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default AND & COUNTIF in same formula

The function you posted contained only the first argument, I suspect the
second is the Count function... If so, try this:
=IF(AND(G3<"",DATE(YEAR(G3)+1,MONTH(G3),DAY(G3))< =TODAY()),COUNTIF(G3:G48,"N"),"")

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Manxy" wrote:

I have this formula previously stated on the forum which indicates when a
person is 1 year out of date

=AND(G3<,DATE(YEAR(G3)+1,MONTH(G3),DAY(G3)) <=TODAY())

Can I add a COUNTIF like that below to the equation so that the No cells add
up into cell G50?

=COUNTIF(G3:G48,"N")

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default AND & COUNTIF in same formula

If this is a conditional formatting criteria; add COUNTIF() as the 3rd
criteria within AND()

=AND(G3<,DATE(YEAR(G3)+1,MONTH(G3),DAY(G3)) <=TODAY(),COUNTIF(G3:G48,"N")=G50)

If this post helps click Yes
---------------
Jacob Skaria


"Manxy" wrote:

I have this formula previously stated on the forum which indicates when a
person is 1 year out of date

=AND(G3<,DATE(YEAR(G3)+1,MONTH(G3),DAY(G3)) <=TODAY())

Can I add a COUNTIF like that below to the equation so that the No cells add
up into cell G50?

=COUNTIF(G3:G48,"N")

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default AND & COUNTIF in same formula

I can't seem to get this to work and would appreciate your patience by going
through this with me please.
My original Cond. Form was placed into cell G3 as below
=AND(G3<,DATE(YEAR(G3)+1,MONTH(G3),DAY(G3)) <=TODAY())

I replaced that arguement with this conditional formatting, although I was
not sure what you meant by the third criteria
=AND(G3<,DATE(YEAR(G3)+1,MONTH(G3),DAY(G3)) <=TODAY(),COUNTIF(G3:G48,"N")=G50)

i have also tried this as well in cell G3 using the Cond. Form. function
=IF(AND(G3<"",DATE(YEAR(G3)+1,MONTH(G3),DAY(G3))< =TODAY()),COUNTIF(G3:G48,"N"),"")

Am I putting either formula in the right place?
If not, where?
=========================================
"ryguy7272" wrote:

The function you posted contained only the first argument, I suspect the
second is the Count function... If so, try this:
=IF(AND(G3<"",DATE(YEAR(G3)+1,MONTH(G3),DAY(G3))< =TODAY()),COUNTIF(G3:G48,"N"),"")

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Manxy" wrote:

I have this formula previously stated on the forum which indicates when a
person is 1 year out of date

=AND(G3<,DATE(YEAR(G3)+1,MONTH(G3),DAY(G3)) <=TODAY())

Can I add a COUNTIF like that below to the equation so that the No cells add
up into cell G50?

=COUNTIF(G3:G48,"N")

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 FORMULA ISSUES - NEED FORMULA CORRECTED Debbi Excel Worksheet Functions 2 November 18th 09 04:47 AM
Formula Help (countif, I think....) RUSH2CROCHET Excel Discussion (Misc queries) 2 June 6th 08 10:14 PM
COUNTIF Formula Sheena Excel Programming 1 May 1st 07 12:28 AM
Formula Countif TRM Excel Discussion (Misc queries) 2 September 11th 06 08:25 PM
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 11:17 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"