Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 102
Default How would I edit this formula to do what I want?

I'd like to modify this formula so that the NO Flag appears if a date is
missing in BOTH X4 and Y4. The current formula generates the NO flag, if a
date is missing in either X4 or Y4. Any suggestions?

=IF(COUNT(X4,Y4)=2,IF(TODAY()Y4,"Yes",""),"No")
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default How would I edit this formula to do what I want?

As far as I can see, the formula you posted appears to already do what you
are asking for. Perhaps if you describe what you want for each possible X4,
Y4 combination, that might helps us to be able to answer your question.

--
Rick (MVP - Excel)


"Danny Boy" wrote in message
...
I'd like to modify this formula so that the NO Flag appears if a date is
missing in BOTH X4 and Y4. The current formula generates the NO flag, if a
date is missing in either X4 or Y4. Any suggestions?

=IF(COUNT(X4,Y4)=2,IF(TODAY()Y4,"Yes",""),"No")


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 788
Default How would I edit this formula to do what I want?

Try this:

=IF(OR(ISBLANK(X4),ISBLANK(Y4)),"",IF(COUNT(X4,Y4) =2,IF(TODAY()Y4,"Yes",""),"No") )

"Danny Boy" wrote:

I'd like to modify this formula so that the NO Flag appears if a date is
missing in BOTH X4 and Y4. The current formula generates the NO flag, if a
date is missing in either X4 or Y4. Any suggestions?

=IF(COUNT(X4,Y4)=2,IF(TODAY()Y4,"Yes",""),"No")

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 102
Default How would I edit this formula to do what I want?

That didn't seem to work Chris. The YES flag triggered per the formula below,
but not the NO flag (even if X4 and Y4 were blank).

What I am trying to do, is to have a formula that will trigger a "YES" flag
(in cell AA4) if today's date is greater than the date posted in cell Y4 (the
ending date of an identified class). Cells X4 is the start date of a class,
and cell Y4 is the end date.

If a student no shows for that class, I would remove both the start date
(X4) and the end date (Y4). Once BOTH the start and end dates are removed,
than the flag in AA4 should say "No" (signifying that a student did not
complete class).

If dates are present in cells X4 and Y4, but the date in cell Y4 has not yet
passed (the scheduled class has either not yet begun, or is in process), than
cell AA4 should remain blank.

Thanks for any help. Rick I hope that clarifies what I'm looking to do.

Dan

"Chris" wrote:

Try this:

=IF(OR(ISBLANK(X4),ISBLANK(Y4)),"",IF(COUNT(X4,Y4) =2,IF(TODAY()Y4,"Yes",""),"No") )

"Danny Boy" wrote:

I'd like to modify this formula so that the NO Flag appears if a date is
missing in BOTH X4 and Y4. The current formula generates the NO flag, if a
date is missing in either X4 or Y4. Any suggestions?

=IF(COUNT(X4,Y4)=2,IF(TODAY()Y4,"Yes",""),"No")

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default How would I edit this formula to do what I want?

Sorry, but I am still confused... the formula you posted in your original
message seems to do exactly what you are describing here.

--
Rick (MVP - Excel)


"Danny Boy" wrote in message
...
That didn't seem to work Chris. The YES flag triggered per the formula
below,
but not the NO flag (even if X4 and Y4 were blank).

What I am trying to do, is to have a formula that will trigger a "YES"
flag
(in cell AA4) if today's date is greater than the date posted in cell Y4
(the
ending date of an identified class). Cells X4 is the start date of a
class,
and cell Y4 is the end date.

If a student no shows for that class, I would remove both the start date
(X4) and the end date (Y4). Once BOTH the start and end dates are removed,
than the flag in AA4 should say "No" (signifying that a student did not
complete class).

If dates are present in cells X4 and Y4, but the date in cell Y4 has not
yet
passed (the scheduled class has either not yet begun, or is in process),
than
cell AA4 should remain blank.

Thanks for any help. Rick I hope that clarifies what I'm looking to do.

Dan

"Chris" wrote:

Try this:

=IF(OR(ISBLANK(X4),ISBLANK(Y4)),"",IF(COUNT(X4,Y4) =2,IF(TODAY()Y4,"Yes",""),"No")
)

"Danny Boy" wrote:

I'd like to modify this formula so that the NO Flag appears if a date
is
missing in BOTH X4 and Y4. The current formula generates the NO flag,
if a
date is missing in either X4 or Y4. Any suggestions?

=IF(COUNT(X4,Y4)=2,IF(TODAY()Y4,"Yes",""),"No")




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 102
Default How would I edit this formula to do what I want?

Actually, if I remove only one of the two dates (from my current formula)
from X4 or Y4, the "No" flag appears. I only want the "No" flag to appear
when BOTH dates X4 (start date) and Y4 (end date) are removed leaving these
cells blank.

"Rick Rothstein" wrote:

Sorry, but I am still confused... the formula you posted in your original
message seems to do exactly what you are describing here.

--
Rick (MVP - Excel)


"Danny Boy" wrote in message
...
That didn't seem to work Chris. The YES flag triggered per the formula
below,
but not the NO flag (even if X4 and Y4 were blank).

What I am trying to do, is to have a formula that will trigger a "YES"
flag
(in cell AA4) if today's date is greater than the date posted in cell Y4
(the
ending date of an identified class). Cells X4 is the start date of a
class,
and cell Y4 is the end date.

If a student no shows for that class, I would remove both the start date
(X4) and the end date (Y4). Once BOTH the start and end dates are removed,
than the flag in AA4 should say "No" (signifying that a student did not
complete class).

If dates are present in cells X4 and Y4, but the date in cell Y4 has not
yet
passed (the scheduled class has either not yet begun, or is in process),
than
cell AA4 should remain blank.

Thanks for any help. Rick I hope that clarifies what I'm looking to do.

Dan

"Chris" wrote:

Try this:

=IF(OR(ISBLANK(X4),ISBLANK(Y4)),"",IF(COUNT(X4,Y4) =2,IF(TODAY()Y4,"Yes",""),"No")
)

"Danny Boy" wrote:

I'd like to modify this formula so that the NO Flag appears if a date
is
missing in BOTH X4 and Y4. The current formula generates the NO flag,
if a
date is missing in either X4 or Y4. Any suggestions?

=IF(COUNT(X4,Y4)=2,IF(TODAY()Y4,"Yes",""),"No")



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How would I edit this formula to do what I want?

=IF(COUNT(X4,Y4)=2,IF(TODAY()Y4,"Yes",""),"No" )

The COUNT function is testing to see if there are 2 dates entered in the
cells. If COUNT condition is TRUE then the formula processes this:

IF(TODAY()Y4,"Yes","")

If the COUNT condition is FALSE then the formula returns "No".

So, the formula *is* doing what you say you want in your explanation. You've
also mentioned that if either cell X4 or Y4 is empty the formula returns
"No" which apparently you don't want but you haven't said what result you do
want when that condition is present. If either X4 or Y4 does not contain a
date what result do you want?

Let's try this:

Assuming today's date is 8/1/2009...

................X...............Y
........1/1/2009.....1/20/2009
........1/1/2009.....9/1/2009
........1/1/2009....................
...........................9/1/2009
.........................................

The current formula returns these results:

Yes
<blank
No
No
No

What result do you want for each of those examples?

--
Biff
Microsoft Excel MVP


"Danny Boy" wrote in message
...
Actually, if I remove only one of the two dates (from my current formula)
from X4 or Y4, the "No" flag appears. I only want the "No" flag to appear
when BOTH dates X4 (start date) and Y4 (end date) are removed leaving
these
cells blank.

"Rick Rothstein" wrote:

Sorry, but I am still confused... the formula you posted in your original
message seems to do exactly what you are describing here.

--
Rick (MVP - Excel)


"Danny Boy" wrote in message
...
That didn't seem to work Chris. The YES flag triggered per the formula
below,
but not the NO flag (even if X4 and Y4 were blank).

What I am trying to do, is to have a formula that will trigger a "YES"
flag
(in cell AA4) if today's date is greater than the date posted in cell
Y4
(the
ending date of an identified class). Cells X4 is the start date of a
class,
and cell Y4 is the end date.

If a student no shows for that class, I would remove both the start
date
(X4) and the end date (Y4). Once BOTH the start and end dates are
removed,
than the flag in AA4 should say "No" (signifying that a student did not
complete class).

If dates are present in cells X4 and Y4, but the date in cell Y4 has
not
yet
passed (the scheduled class has either not yet begun, or is in
process),
than
cell AA4 should remain blank.

Thanks for any help. Rick I hope that clarifies what I'm looking to do.

Dan

"Chris" wrote:

Try this:

=IF(OR(ISBLANK(X4),ISBLANK(Y4)),"",IF(COUNT(X4,Y4) =2,IF(TODAY()Y4,"Yes",""),"No")
)

"Danny Boy" wrote:

I'd like to modify this formula so that the NO Flag appears if a
date
is
missing in BOTH X4 and Y4. The current formula generates the NO
flag,
if a
date is missing in either X4 or Y4. Any suggestions?

=IF(COUNT(X4,Y4)=2,IF(TODAY()Y4,"Yes",""),"No")





  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 788
Default How would I edit this formula to do what I want?

Try this


=IF(AND(ISBLANK(X4),ISBLANK(Y4)),"No",IF(AND(ISBLA NK(X4)=FALSE,ISBLANK(Y4)),"",IF(TODAY()Y4,"yes"," ")))


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default How would I edit this formula to do what I want?

ISBLANK will not work if the OP's dates and/or his "empty cells" are the
result of a formula. For example, on an empty worksheet, put this formula in
A1...

=IF(A2="","","A2 is not empty")

and put this formula in B1...

=ISBLANK(A1)

it displays FALSE because the cell is not blank... it has a formula in it.

--
Rick (MVP - Excel)


"Chris" wrote in message
...
Try this:

=IF(OR(ISBLANK(X4),ISBLANK(Y4)),"",IF(COUNT(X4,Y4) =2,IF(TODAY()Y4,"Yes",""),"No")
)

"Danny Boy" wrote:

I'd like to modify this formula so that the NO Flag appears if a date is
missing in BOTH X4 and Y4. The current formula generates the NO flag, if
a
date is missing in either X4 or Y4. Any suggestions?

=IF(COUNT(X4,Y4)=2,IF(TODAY()Y4,"Yes",""),"No")


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
Help to edit a formula Hell-fire[_3_] Excel Worksheet Functions 8 June 15th 07 06:29 AM
how to edit formula without changing formula of each cell sadat Excel Worksheet Functions 2 April 24th 07 02:02 PM
fx instead of "=" on formula edit bar Incoherent Excel Discussion (Misc queries) 4 September 10th 05 12:33 PM
i edit a formula (excel) then it displays formula not answer caiman Excel Discussion (Misc queries) 2 September 9th 05 02:09 AM
= (edit formula) ecox Excel Discussion (Misc queries) 2 March 21st 05 10:01 PM


All times are GMT +1. The time now is 12:52 PM.

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

About Us

"It's about Microsoft Excel"