Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default What is wrong with this nested function?

I have entered the following nested function, but it says the formula
contains an error.

=IF(SUM(E55:E67)=3, "Red"), (SUM(D55:D67)=2, "Amber"), "Green"

Basically, I want the word, "Pink" to appear if SUM(E55:E67)=3; the word,
"Yellow" to appear if SUM(D55:D67)=2; and the word "Blue" to appear
otherwise.

Anyone know how I can do this? Any help would be much appreciated.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default What is wrong with this nested function?

Basically, I want the word, "Pink" to appear if SUM(E55:E67)=3; the word,
"Yellow" to appear if SUM(D55:D67)=2; and the word "Blue" to appear
otherwise.


On the face of it, try this:
=IF(SUM(E55:E67)=3,"Pink",IF(SUM(D55:D67)=2,"Yel low","Blue"))

The IF evaluates from left to right. Since you are testing 2 different
ranges, the sequence of the test becomes important. If the 1st IF test is
TRUE, you'd get "Pink" irrespective of the result from the 2nd IF test (which
will never get evaluated).
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default What is wrong with this nested function?

Perfect!! Thank you.

"Max" wrote:

Basically, I want the word, "Pink" to appear if SUM(E55:E67)=3; the word,
"Yellow" to appear if SUM(D55:D67)=2; and the word "Blue" to appear
otherwise.


On the face of it, try this:
=IF(SUM(E55:E67)=3,"Pink",IF(SUM(D55:D67)=2,"Yel low","Blue"))

The IF evaluates from left to right. Since you are testing 2 different
ranges, the sequence of the test becomes important. If the 1st IF test is
TRUE, you'd get "Pink" irrespective of the result from the 2nd IF test (which
will never get evaluated).
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---

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
Nested IF's with Logical Arguments - Doing something wrong here ConfusedNHouston Excel Discussion (Misc queries) 1 December 1st 06 03:04 AM
Nested IF's with Logical Arguments - Doing something wrong here PapaDos Excel Discussion (Misc queries) 0 November 30th 06 05:13 PM
Nested IF's with Logical Arguments - Doing something wrong her Dave F Excel Discussion (Misc queries) 0 November 30th 06 04:44 PM
Nested IF's with Logical Arguments - Doing something wrong her ConfusedNHouston Excel Discussion (Misc queries) 0 November 30th 06 04:36 PM
Nested subtotal figures in wrong order Nested subtotal figures in wrong order Excel Discussion (Misc queries) 7 May 19th 06 03:56 AM


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