Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Cheryl B.
 
Posts: n/a
Default Nesting IF Statements Based on Same Cell Value

Working on a 'dashboard' ... more like a traffic light, though, I think.

Based on the same cell value {F21) , these statements work fine when written
separately:
=IF(F21<0.02,"G",0)
=IF(AND(F210.02,F21<0.06),"Y",0)
=IF(F21=0.06,"R",0)

How can I 'hook' them together as one string with one result?

  #2   Report Post  
Bob Umlas
 
Posts: n/a
Default

=IF(F21<.02,"G",IF(F21<.06,"Y","R"))
assuming you really meant your 2nd equation to be ...F21=.02, not just .

Bob Umlas
Excel MVP

"Cheryl B." wrote in message
...
Working on a 'dashboard' ... more like a traffic light, though, I think.

Based on the same cell value {F21) , these statements work fine when

written
separately:
=IF(F21<0.02,"G",0)
=IF(AND(F210.02,F21<0.06),"Y",0)
=IF(F21=0.06,"R",0)

How can I 'hook' them together as one string with one result?



  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

Bob Umlas wrote...
=IF(F21<.02,"G",IF(F21<.06,"Y","R"))
assuming you really meant your 2nd equation to be ...F21=.02, not just .

....

Or make it a lookup.

=LOOKUP(F21,{-1E307;0.02;0.06},{"G";"Y";"R"})

  #4   Report Post  
Barb R.
 
Posts: n/a
Default

You may even want to use a conditional format for this. Access conditional
formatting for a cell by selecting the cell and selecting FORMAT -
CONDITIONAL FORMATTING.

"Cheryl B." wrote:

Working on a 'dashboard' ... more like a traffic light, though, I think.

Based on the same cell value {F21) , these statements work fine when written
separately:
=IF(F21<0.02,"G",0)
=IF(AND(F210.02,F21<0.06),"Y",0)
=IF(F21=0.06,"R",0)

How can I 'hook' them together as one string with one result?

  #5   Report Post  
Cheryl B.
 
Posts: n/a
Default

EXcellent ...Thanks, Bob!

"Bob Umlas" wrote:

=IF(F21<.02,"G",IF(F21<.06,"Y","R"))
assuming you really meant your 2nd equation to be ...F21=.02, not just .

Bob Umlas
Excel MVP

"Cheryl B." wrote in message
...
Working on a 'dashboard' ... more like a traffic light, though, I think.

Based on the same cell value {F21) , these statements work fine when

written
separately:
=IF(F21<0.02,"G",0)
=IF(AND(F210.02,F21<0.06),"Y",0)
=IF(F21=0.06,"R",0)

How can I 'hook' them together as one string with one result?




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
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
formula to return the value of a cell based on a looked up true reference sarah Excel Worksheet Functions 2 February 2nd 05 08:15 PM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM
make a cell empty based on condition mpierre Charts and Charting in Excel 2 December 29th 04 01:01 PM
Returning a Value to a Cell Based on a Range of Uncertain Size amc422 Excel Worksheet Functions 7 November 14th 04 03:03 PM


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