Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Multiple Conditionals in MS Excel 2007

I have been trying to work out how to go about calculating multiple
conditionals using the Wizard. In MS 2003 you can use the Add button.......in
2007 it seems to have disappeared???
I was hoping to be able to calculate the following for a Risk spreadsheet.
For each RED, AMBER, GREEN (RAG) cell (manually filled with appropriate
colour), I want to automatically work out the RAG status and fill with colour
(or use traffic ligts) based on the following.

Example:
the RAG cell is B8 (I wish to calculate this automatically)
I have a Severity cell I8 and Probability Cell J8
There are 3 levels, H (HIGH), M (MEDIUM), L (LOW). I manually populate these
values.

The conditions a
If I8 is equal to H and J8 is equal to H then B8 should have a fill of RED
If I8 is equal to H and J8 is equal to M then B8 should have a fill of RED
If I8 is equal to M and J8 is equal to H then B8 should have a fill of RED

If I8 is equal to M and J8 is equal to M then B8 should have a fill of AMBER
If I8 is equal to M and J8 is equal to L then B8 should have a fill of AMBER
If I8 is equal to L and J8 is equal to M then B8 should have a fill of GREEN

If I8 is equal to L and J8 is equal to L then B8 should have a fill of GREEN
If I8 is equal to L and J8 is equal to M then B8 should have a fill of GREEN
If I8 is equal to M and J8 is equal to L then B8 should have a fill of GREEN

Is there a simple way to do this? Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Multiple Conditionals in MS Excel 2007

It depends on your definition of simple. In 2007, additional conditions are
created with the New Rule... menu item, and use Use a Formula.... For Red
you will want:
=or(and(i8="H",j8="H"),and(i8="H",j8="M"),and(i8=" M",j8="H"))

Add a new rule for each of your other colors.

Regards,
Fred

"IanH" wrote in message
...
I have been trying to work out how to go about calculating multiple
conditionals using the Wizard. In MS 2003 you can use the Add
button.......in
2007 it seems to have disappeared???
I was hoping to be able to calculate the following for a Risk spreadsheet.
For each RED, AMBER, GREEN (RAG) cell (manually filled with appropriate
colour), I want to automatically work out the RAG status and fill with
colour
(or use traffic ligts) based on the following.

Example:
the RAG cell is B8 (I wish to calculate this automatically)
I have a Severity cell I8 and Probability Cell J8
There are 3 levels, H (HIGH), M (MEDIUM), L (LOW). I manually populate
these
values.

The conditions a
If I8 is equal to H and J8 is equal to H then B8 should have a fill of RED
If I8 is equal to H and J8 is equal to M then B8 should have a fill of RED
If I8 is equal to M and J8 is equal to H then B8 should have a fill of RED

If I8 is equal to M and J8 is equal to M then B8 should have a fill of
AMBER
If I8 is equal to M and J8 is equal to L then B8 should have a fill of
AMBER
If I8 is equal to L and J8 is equal to M then B8 should have a fill of
GREEN

If I8 is equal to L and J8 is equal to L then B8 should have a fill of
GREEN
If I8 is equal to L and J8 is equal to M then B8 should have a fill of
GREEN
If I8 is equal to M and J8 is equal to L then B8 should have a fill of
GREEN

Is there a simple way to do this? Thanks in advance


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Multiple Conditionals in MS Excel 2007

Fred,

That worked a treat, thank you very much.

As part of the spreadsheet calculation I am also experiencing errors in the
following calculation:

=SUMPRODUCT(--(MONTH('Risk Log'!$L$8:$L$13)=MONTH('Risk Performance
Metrics'!F$2)),--(YEAR('Risk Log'!$L$8:$L$13)=YEAR('Risk Performance
Metrics'!F$2))+('Risk Log'!Q8:Q13="OPEN")+('Risk Log'!$I$8:$J$8="H"))

I am trying to retrieve the number of RISKS that are OPEN during the same
DATE cell as F2 (i.e. Mar-2010) that have a CELL value of H (HIGH) in both
Severity Column (values run from I8 to I13 cells) and Probability Column
(values run from J8 to J13 cells) but I am getting the #VALUE! error message??

Im laymans terms, I am trying to process the logic as:
-- List all OPEN Risks for Mar-2010 (or whatever month I list in F2) where
the Risk has an OPEN status AND a Severity and Probability value of H.

Can you steer me down the right track? Thanks

"IanH" wrote:

I have been trying to work out how to go about calculating multiple
conditionals using the Wizard. In MS 2003 you can use the Add button.......in
2007 it seems to have disappeared???
I was hoping to be able to calculate the following for a Risk spreadsheet.
For each RED, AMBER, GREEN (RAG) cell (manually filled with appropriate
colour), I want to automatically work out the RAG status and fill with colour
(or use traffic ligts) based on the following.

Example:
the RAG cell is B8 (I wish to calculate this automatically)
I have a Severity cell I8 and Probability Cell J8
There are 3 levels, H (HIGH), M (MEDIUM), L (LOW). I manually populate these
values.

The conditions a
If I8 is equal to H and J8 is equal to H then B8 should have a fill of RED
If I8 is equal to H and J8 is equal to M then B8 should have a fill of RED
If I8 is equal to M and J8 is equal to H then B8 should have a fill of RED

If I8 is equal to M and J8 is equal to M then B8 should have a fill of AMBER
If I8 is equal to M and J8 is equal to L then B8 should have a fill of AMBER
If I8 is equal to L and J8 is equal to M then B8 should have a fill of GREEN

If I8 is equal to L and J8 is equal to L then B8 should have a fill of GREEN
If I8 is equal to L and J8 is equal to M then B8 should have a fill of GREEN
If I8 is equal to M and J8 is equal to L then B8 should have a fill of GREEN

Is there a simple way to do this? Thanks in advance

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default Multiple Conditionals in MS Excel 2007

Adapt this idea to suit

=SUMPRODUCT(--(TEXT($F$2:$F$12,"yyyymm")="201003")*G2:$G$12)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"IanH" wrote in message
...
Fred,

That worked a treat, thank you very much.

As part of the spreadsheet calculation I am also experiencing errors in
the
following calculation:

=SUMPRODUCT(--(MONTH('Risk Log'!$L$8:$L$13)=MONTH('Risk Performance
Metrics'!F$2)),--(YEAR('Risk Log'!$L$8:$L$13)=YEAR('Risk Performance
Metrics'!F$2))+('Risk Log'!Q8:Q13="OPEN")+('Risk Log'!$I$8:$J$8="H"))

I am trying to retrieve the number of RISKS that are OPEN during the same
DATE cell as F2 (i.e. Mar-2010) that have a CELL value of H (HIGH) in both
Severity Column (values run from I8 to I13 cells) and Probability Column
(values run from J8 to J13 cells) but I am getting the #VALUE! error
message??

Im laymans terms, I am trying to process the logic as:
-- List all OPEN Risks for Mar-2010 (or whatever month I list in F2)
where
the Risk has an OPEN status AND a Severity and Probability value of H.

Can you steer me down the right track? Thanks

"IanH" wrote:

I have been trying to work out how to go about calculating multiple
conditionals using the Wizard. In MS 2003 you can use the Add
button.......in
2007 it seems to have disappeared???
I was hoping to be able to calculate the following for a Risk
spreadsheet.
For each RED, AMBER, GREEN (RAG) cell (manually filled with appropriate
colour), I want to automatically work out the RAG status and fill with
colour
(or use traffic ligts) based on the following.

Example:
the RAG cell is B8 (I wish to calculate this automatically)
I have a Severity cell I8 and Probability Cell J8
There are 3 levels, H (HIGH), M (MEDIUM), L (LOW). I manually populate
these
values.

The conditions a
If I8 is equal to H and J8 is equal to H then B8 should have a fill of
RED
If I8 is equal to H and J8 is equal to M then B8 should have a fill of
RED
If I8 is equal to M and J8 is equal to H then B8 should have a fill of
RED

If I8 is equal to M and J8 is equal to M then B8 should have a fill of
AMBER
If I8 is equal to M and J8 is equal to L then B8 should have a fill of
AMBER
If I8 is equal to L and J8 is equal to M then B8 should have a fill of
GREEN

If I8 is equal to L and J8 is equal to L then B8 should have a fill of
GREEN
If I8 is equal to L and J8 is equal to M then B8 should have a fill of
GREEN
If I8 is equal to M and J8 is equal to L then B8 should have a fill of
GREEN

Is there a simple way to do this? Thanks in advance


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Multiple Conditionals in MS Excel 2007

Your addition should be multiplication. But for consistency, I would use:
=SUMPRODUCT(--(MONTH('Risk Log'!$L$8:$L$13)=MONTH('Risk Performance
Metrics'!F$2)),--(YEAR('Risk Log'!$L$8:$L$13)=YEAR('Risk Performance
Metrics'!F$2)),--('Risk Log'!Q8:Q13="OPEN"),--('Risk Log'!$I$8:$J$8="H"))

You can also simplify the date check as Don has shown.

Regards,
Fred

"IanH" wrote in message
...
Fred,

That worked a treat, thank you very much.

As part of the spreadsheet calculation I am also experiencing errors in
the
following calculation:

=SUMPRODUCT(--(MONTH('Risk Log'!$L$8:$L$13)=MONTH('Risk Performance
Metrics'!F$2)),--(YEAR('Risk Log'!$L$8:$L$13)=YEAR('Risk Performance
Metrics'!F$2))+('Risk Log'!Q8:Q13="OPEN")+('Risk Log'!$I$8:$J$8="H"))

I am trying to retrieve the number of RISKS that are OPEN during the same
DATE cell as F2 (i.e. Mar-2010) that have a CELL value of H (HIGH) in both
Severity Column (values run from I8 to I13 cells) and Probability Column
(values run from J8 to J13 cells) but I am getting the #VALUE! error
message??

Im laymans terms, I am trying to process the logic as:
-- List all OPEN Risks for Mar-2010 (or whatever month I list in F2)
where
the Risk has an OPEN status AND a Severity and Probability value of H.

Can you steer me down the right track? Thanks

"IanH" wrote:

I have been trying to work out how to go about calculating multiple
conditionals using the Wizard. In MS 2003 you can use the Add
button.......in
2007 it seems to have disappeared???
I was hoping to be able to calculate the following for a Risk
spreadsheet.
For each RED, AMBER, GREEN (RAG) cell (manually filled with appropriate
colour), I want to automatically work out the RAG status and fill with
colour
(or use traffic ligts) based on the following.

Example:
the RAG cell is B8 (I wish to calculate this automatically)
I have a Severity cell I8 and Probability Cell J8
There are 3 levels, H (HIGH), M (MEDIUM), L (LOW). I manually populate
these
values.

The conditions a
If I8 is equal to H and J8 is equal to H then B8 should have a fill of
RED
If I8 is equal to H and J8 is equal to M then B8 should have a fill of
RED
If I8 is equal to M and J8 is equal to H then B8 should have a fill of
RED

If I8 is equal to M and J8 is equal to M then B8 should have a fill of
AMBER
If I8 is equal to M and J8 is equal to L then B8 should have a fill of
AMBER
If I8 is equal to L and J8 is equal to M then B8 should have a fill of
GREEN

If I8 is equal to L and J8 is equal to L then B8 should have a fill of
GREEN
If I8 is equal to L and J8 is equal to M then B8 should have a fill of
GREEN
If I8 is equal to M and J8 is equal to L then B8 should have a fill of
GREEN

Is there a simple way to do this? Thanks in advance




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Multiple Conditionals in MS Excel 2007

Hi Fred,

I have used the multiplication rather than addition but I am still
experiencing the #VALUE! error msg. I assume that the data look up is failing
somewhere and displaying the error message, rather than a formula error.

I am not actually sure that this formula will return the value that I am
looking for?

In this calculation I am hoping to display a numeric value of the number of
all OPEN Risks that are counted for the month (the value displayed in Cell F2
i.e. Mar-2010) where their corresponding Severity & Probability is equal to H
meaning High.

My formula is now using ,--('Risk Log'!Q8:Q13="OPEN"),--('Risk
Log'!$I$8:$J$8="H")) values.

I cannot see where the COUNT is executed and it looks like the Cells I8 to
J8 must ALL have a value of H to be TRUE and therefore counted where the
requirement is for each ROW that has an OPEN status (and opened in the month
specified by Cell F2) and has its ROW corresponding Probability & Reliability
Cells to have a H value in them both - to be counted.

Can you assist further with this? Thanks in advance


"Fred Smith" wrote:

Your addition should be multiplication. But for consistency, I would use:
=SUMPRODUCT(--(MONTH('Risk Log'!$L$8:$L$13)=MONTH('Risk Performance
Metrics'!F$2)),--(YEAR('Risk Log'!$L$8:$L$13)=YEAR('Risk Performance
Metrics'!F$2)),--('Risk Log'!Q8:Q13="OPEN"),--('Risk Log'!$I$8:$J$8="H"))

You can also simplify the date check as Don has shown.

Regards,
Fred

"IanH" wrote in message
...
Fred,

That worked a treat, thank you very much.

As part of the spreadsheet calculation I am also experiencing errors in
the
following calculation:

=SUMPRODUCT(--(MONTH('Risk Log'!$L$8:$L$13)=MONTH('Risk Performance
Metrics'!F$2)),--(YEAR('Risk Log'!$L$8:$L$13)=YEAR('Risk Performance
Metrics'!F$2))+('Risk Log'!Q8:Q13="OPEN")+('Risk Log'!$I$8:$J$8="H"))

I am trying to retrieve the number of RISKS that are OPEN during the same
DATE cell as F2 (i.e. Mar-2010) that have a CELL value of H (HIGH) in both
Severity Column (values run from I8 to I13 cells) and Probability Column
(values run from J8 to J13 cells) but I am getting the #VALUE! error
message??

Im laymans terms, I am trying to process the logic as:
-- List all OPEN Risks for Mar-2010 (or whatever month I list in F2)
where
the Risk has an OPEN status AND a Severity and Probability value of H.

Can you steer me down the right track? Thanks

"IanH" wrote:

I have been trying to work out how to go about calculating multiple
conditionals using the Wizard. In MS 2003 you can use the Add
button.......in
2007 it seems to have disappeared???
I was hoping to be able to calculate the following for a Risk
spreadsheet.
For each RED, AMBER, GREEN (RAG) cell (manually filled with appropriate
colour), I want to automatically work out the RAG status and fill with
colour
(or use traffic ligts) based on the following.

Example:
the RAG cell is B8 (I wish to calculate this automatically)
I have a Severity cell I8 and Probability Cell J8
There are 3 levels, H (HIGH), M (MEDIUM), L (LOW). I manually populate
these
values.

The conditions a
If I8 is equal to H and J8 is equal to H then B8 should have a fill of
RED
If I8 is equal to H and J8 is equal to M then B8 should have a fill of
RED
If I8 is equal to M and J8 is equal to H then B8 should have a fill of
RED

If I8 is equal to M and J8 is equal to M then B8 should have a fill of
AMBER
If I8 is equal to M and J8 is equal to L then B8 should have a fill of
AMBER
If I8 is equal to L and J8 is equal to M then B8 should have a fill of
GREEN

If I8 is equal to L and J8 is equal to L then B8 should have a fill of
GREEN
If I8 is equal to L and J8 is equal to M then B8 should have a fill of
GREEN
If I8 is equal to M and J8 is equal to L then B8 should have a fill of
GREEN

Is there a simple way to do this? Thanks in advance


.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Multiple Conditionals in MS Excel 2007

A #Value error in Sumproduct is caused by having ranges that aren't the same
size. In your formula, the problem is the range i8:j8. It contains only 2
cells, your other ranges are 6 sells. Once you have consistent ranges, that
should get rid of the #Value error.

Regards,
Fred

"IanH" wrote in message
...
Hi Fred,

I have used the multiplication rather than addition but I am still
experiencing the #VALUE! error msg. I assume that the data look up is
failing
somewhere and displaying the error message, rather than a formula error.

I am not actually sure that this formula will return the value that I am
looking for?

In this calculation I am hoping to display a numeric value of the number
of
all OPEN Risks that are counted for the month (the value displayed in Cell
F2
i.e. Mar-2010) where their corresponding Severity & Probability is equal
to H
meaning High.

My formula is now using ,--('Risk Log'!Q8:Q13="OPEN"),--('Risk
Log'!$I$8:$J$8="H")) values.

I cannot see where the COUNT is executed and it looks like the Cells I8 to
J8 must ALL have a value of H to be TRUE and therefore counted where the
requirement is for each ROW that has an OPEN status (and opened in the
month
specified by Cell F2) and has its ROW corresponding Probability &
Reliability
Cells to have a H value in them both - to be counted.

Can you assist further with this? Thanks in advance


"Fred Smith" wrote:

Your addition should be multiplication. But for consistency, I would use:
=SUMPRODUCT(--(MONTH('Risk Log'!$L$8:$L$13)=MONTH('Risk Performance
Metrics'!F$2)),--(YEAR('Risk Log'!$L$8:$L$13)=YEAR('Risk Performance
Metrics'!F$2)),--('Risk Log'!Q8:Q13="OPEN"),--('Risk Log'!$I$8:$J$8="H"))

You can also simplify the date check as Don has shown.

Regards,
Fred

"IanH" wrote in message
...
Fred,

That worked a treat, thank you very much.

As part of the spreadsheet calculation I am also experiencing errors in
the
following calculation:

=SUMPRODUCT(--(MONTH('Risk Log'!$L$8:$L$13)=MONTH('Risk Performance
Metrics'!F$2)),--(YEAR('Risk Log'!$L$8:$L$13)=YEAR('Risk Performance
Metrics'!F$2))+('Risk Log'!Q8:Q13="OPEN")+('Risk Log'!$I$8:$J$8="H"))

I am trying to retrieve the number of RISKS that are OPEN during the
same
DATE cell as F2 (i.e. Mar-2010) that have a CELL value of H (HIGH) in
both
Severity Column (values run from I8 to I13 cells) and Probability
Column
(values run from J8 to J13 cells) but I am getting the #VALUE! error
message??

Im laymans terms, I am trying to process the logic as:
-- List all OPEN Risks for Mar-2010 (or whatever month I list in F2)
where
the Risk has an OPEN status AND a Severity and Probability value of H.

Can you steer me down the right track? Thanks

"IanH" wrote:

I have been trying to work out how to go about calculating multiple
conditionals using the Wizard. In MS 2003 you can use the Add
button.......in
2007 it seems to have disappeared???
I was hoping to be able to calculate the following for a Risk
spreadsheet.
For each RED, AMBER, GREEN (RAG) cell (manually filled with
appropriate
colour), I want to automatically work out the RAG status and fill with
colour
(or use traffic ligts) based on the following.

Example:
the RAG cell is B8 (I wish to calculate this automatically)
I have a Severity cell I8 and Probability Cell J8
There are 3 levels, H (HIGH), M (MEDIUM), L (LOW). I manually populate
these
values.

The conditions a
If I8 is equal to H and J8 is equal to H then B8 should have a fill of
RED
If I8 is equal to H and J8 is equal to M then B8 should have a fill of
RED
If I8 is equal to M and J8 is equal to H then B8 should have a fill of
RED

If I8 is equal to M and J8 is equal to M then B8 should have a fill of
AMBER
If I8 is equal to M and J8 is equal to L then B8 should have a fill of
AMBER
If I8 is equal to L and J8 is equal to M then B8 should have a fill of
GREEN

If I8 is equal to L and J8 is equal to L then B8 should have a fill of
GREEN
If I8 is equal to L and J8 is equal to M then B8 should have a fill of
GREEN
If I8 is equal to M and J8 is equal to L then B8 should have a fill of
GREEN

Is there a simple way to do this? Thanks in advance


.


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
conditionals statements out0015 Excel Worksheet Functions 10 July 7th 09 09:54 PM
conditionals formulas out0015 Excel Worksheet Functions 2 July 6th 09 05:46 PM
Hep with Conditionals actions please. Mark Excel Worksheet Functions 2 February 8th 09 04:02 PM
Conditionals containing variables ChevyChem Excel Discussion (Misc queries) 8 October 18th 08 02:34 AM
Conditionals Salvador EnrĂ­quez M Excel Worksheet Functions 1 April 18th 06 10:15 PM


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