A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

2 IF Statements not mutually exclusive



 
 
Thread Tools Display Modes
  #1  
Old August 24th, 2006, 01:55 AM posted to microsoft.public.excel.misc
bev
external usenet poster
 
Posts: 182
Default 2 IF Statements not mutually exclusive

I am stuck on a particular problem. Because some users here are not familiar
with MS Project, we need to use Excel for reporting. So I am creating a
template for a simple (?) report for management to be created as an Excel
chart, and embedded in PowerPoint (think of it as a modified Gantt chart.
The Gantt chart add-ins that are out there do not create the kind of graphic
management is looking for.)

I am building the formulas to put into the chart now, and have a problem
with two columns returning some of the same results in some fields.

The basic data for the formulas is: comparison of START and FINISH, to
create three boxes or bubbles: Completed Tasks, Tasks in Process, and Next
Step Tasks.

The English language version of the logic for the three formulas for these
three boxes is, I think:

[finish] equals [date earlier than today], [start] equals [date earlier than
today], AND [finish] equals [date later than today], and [start] equals
[date later than today].

I have created three IF statements, but the problem is, for the second two
statements, I get an entry in the cell for both, which is not what I want. I
can see why that happens, if I look at my logic, but I cannot figure out how
to rephrase my formulas to prevent this. (See example below for what the
output is and yellow highlights for problem areas.)

Initiating & PlanningComplete
Monitoring, Control & ExecutionIn Process Next Step:Monitoring, Control
& Execution


Can anyone help? Obviously I need mutually exclusive selections for the
last two statements, but I am doing something wrong. Here are the IF
statements written:

E4 is FINISH
D4 is START
E36 is a cell set up to hold the formula =TODAY ()
=IF (E4$E$36, B4 & “Complete”, 0)

=IF (D4$E$36&E4$E$36, B4 & “In Process”, 0)

=IF (E4$E$36, “Next Step”& B4, 0)


Bev



  #2  
Old August 24th, 2006, 02:11 AM posted to microsoft.public.excel.misc
JE McGimpsey
external usenet poster
 
Posts: 2,468
Default 2 IF Statements not mutually exclusive

One way:

=IF(E4$E$36, B4 & "Complete", 0)
=IF(AND(D4$E$36,E4$E$36), B4 & "In Process", 0)
=IF(D4$E$36, "Next Step" & B4, 0)

Note that & is the concatenation operator, not a logical (e.g., AND)
operator.


In article ,
Bev wrote:

I am stuck on a particular problem. Because some users here are not familiar
with MS Project, we need to use Excel for reporting. So I am creating a
template for a simple (?) report for management to be created as an Excel
chart, and embedded in PowerPoint (think of it as a modified Gantt chart.
The Gantt chart add-ins that are out there do not create the kind of graphic
management is looking for.)

I am building the formulas to put into the chart now, and have a problem
with two columns returning some of the same results in some fields.

The basic data for the formulas is: comparison of START and FINISH, to
create three boxes or bubbles: Completed Tasks, Tasks in Process, and Next
Step Tasks.

The English language version of the logic for the three formulas for these
three boxes is, I think:

[finish] equals [date earlier than today], [start] equals [date earlier than
today], AND [finish] equals [date later than today], and [start] equals
[date later than today].

I have created three IF statements, but the problem is, for the second two
statements, I get an entry in the cell for both, which is not what I want. I
can see why that happens, if I look at my logic, but I cannot figure out how
to rephrase my formulas to prevent this. (See example below for what the
output is and yellow highlights for problem areas.)

Initiating & PlanningComplete
Monitoring, Control & ExecutionIn Process Next Step:Monitoring, Control
& Execution


Can anyone help? Obviously I need mutually exclusive selections for the
last two statements, but I am doing something wrong. Here are the IF
statements written:

E4 is FINISH
D4 is START
E36 is a cell set up to hold the formula =TODAY ()
=IF (E4$E$36, B4 & “Complete”, 0)

=IF (D4$E$36&E4$E$36, B4 & “In Process”, 0)

=IF (E4$E$36, “Next Step”& B4, 0)


Bev

  #3  
Old August 24th, 2006, 05:23 AM posted to microsoft.public.excel.misc
bev
external usenet poster
 
Posts: 182
Default 2 IF Statements not mutually exclusive

Thank you, JE!!!!!!! It worked.

"JE McGimpsey" wrote:

One way:

=IF(E4$E$36, B4 & "Complete", 0)
=IF(AND(D4$E$36,E4$E$36), B4 & "In Process", 0)
=IF(D4$E$36, "Next Step" & B4, 0)

Note that & is the concatenation operator, not a logical (e.g., AND)
operator.


In article ,
Bev wrote:

I am stuck on a particular problem. Because some users here are not familiar
with MS Project, we need to use Excel for reporting. So I am creating a
template for a simple (?) report for management to be created as an Excel
chart, and embedded in PowerPoint (think of it as a modified Gantt chart.
The Gantt chart add-ins that are out there do not create the kind of graphic
management is looking for.)

I am building the formulas to put into the chart now, and have a problem
with two columns returning some of the same results in some fields.

The basic data for the formulas is: comparison of START and FINISH, to
create three boxes or bubbles: Completed Tasks, Tasks in Process, and Next
Step Tasks.

The English language version of the logic for the three formulas for these
three boxes is, I think:

[finish] equals [date earlier than today], [start] equals [date earlier than
today], AND [finish] equals [date later than today], and [start] equals
[date later than today].

I have created three IF statements, but the problem is, for the second two
statements, I get an entry in the cell for both, which is not what I want. I
can see why that happens, if I look at my logic, but I cannot figure out how
to rephrase my formulas to prevent this. (See example below for what the
output is and yellow highlights for problem areas.)

Initiating & PlanningComplete
Monitoring, Control & ExecutionIn Process Next Step:Monitoring, Control
& Execution


Can anyone help? Obviously I need mutually exclusive selections for the
last two statements, but I am doing something wrong. Here are the IF
statements written:

E4 is FINISH
D4 is START
E36 is a cell set up to hold the formula =TODAY ()
=IF (E4$E$36, B4 & “Complete”, 0)

=IF (D4$E$36&E4$E$36, B4 & “In Process”, 0)

=IF (E4$E$36, “Next Step”& B4, 0)


Bev


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 OfficeFrustration.
The comments are property of their posters.