Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ju1eshart
 
Posts: n/a
Default Excel Logical Formula

I have the following formula
=IF(AND(J5<316226),"Green",IF(AND(J5=3162277),"Re d",IF(AND(J5=316228),"Amber",IF(AND(J5<=3162276), "Amber"))))
I'd like to include the comment "NO DATA" if the ref cell is not populated
with a value. I thought " " ment empty cell but I can't get it to work.
Thanks in advance for your help
  #2   Report Post  
Posted to microsoft.public.excel.misc
Stefi
 
Posts: n/a
Default Excel Logical Formula

Try "" (without space between quotation marks) or function ISBLANK(A1)!

Regards,
Stefi



€˛ju1eshart€¯ ezt Ć*rta:

I have the following formula
=IF(AND(J5<316226),"Green",IF(AND(J5=3162277),"Re d",IF(AND(J5=316228),"Amber",IF(AND(J5<=3162276), "Amber"))))
I'd like to include the comment "NO DATA" if the ref cell is not populated
with a value. I thought " " ment empty cell but I can't get it to work.
Thanks in advance for your help

  #3   Report Post  
Posted to microsoft.public.excel.misc
Franz Verga
 
Posts: n/a
Default Excel Logical Formula

Nel post
*ju1eshart* ha scritto:

I have the following formula
=IF(AND(J5<316226),"Green",IF(AND(J5=3162277),"Re d",IF(AND(J5=316228),"Amber",IF(AND(J5<=3162276), "Amber"))))
I'd like to include the comment "NO DATA" if the ref cell is not
populated with a value. I thought " " ment empty cell but I can't get
it to work. Thanks in advance for your help



Try this way:

=IF(J5="","",IF(J5<316226,"Green",IF(J5=3162277," Red",IF(J5=316228,"Amber",IF(J5<=3162276,"Amber") ))))

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #4   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph
 
Posts: n/a
Default Excel Logical Formula

"ju1eshart" wrote in message
...
I have the following formula
=IF(AND(J5<316226),"Green",IF(AND(J5=3162277),"Re d",IF(AND(J5=316228),"Amber",IF(AND(J5<=3162276), "Amber"))))
I'd like to include the comment "NO DATA" if the ref cell is not populated
with a value. I thought " " ment empty cell but I can't get it to work.
Thanks in advance for your help


If the cell is empty, try "", not " ".
What are your AND functions trying to do, as in each case there seems to be
only one argument?
--
David Biddulph


  #5   Report Post  
Posted to microsoft.public.excel.misc
Dav
 
Posts: n/a
Default Excel Logical Formula


=IF(AND(J5<316226),"Green",IF(AND(J5=3162277),"Re
d",IF(AND(J5=316228),"Amber",IF(AND(J5<=316227 6), "Amber"))))
I'd like to include the comment "NO DATA" if the ref cell is not
populated
with a value. I thought " " ment empty cell but I can't get it to
work.
Thanks in advance for your help

You do not need the AND statements in your original expression

IF(J5<316226,"Green",IF(J5=3162277,"Red",IF(J5=3 16228,"Amber",IF(J5<=3162276,
"Amber",if(isblank(j5),"NO DATA"," ")))))

or even
IF(J5<316226,"Green",IF(J5=3162277,"Red",IF(J5=3 16228,"Amber",IF(J5<=3162276,
"Amber","NO DATA"," "))))

If it is just the only situation left
Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=555519



  #7   Report Post  
Posted to microsoft.public.excel.misc
ju1eshart
 
Posts: n/a
Default Excel Logical Formula

Thanks Franz. Your suggestion worked the best. Your help is much appreciated.
Jules - Scotland

"Franz Verga" wrote:

Nel post
*ju1eshart* ha scritto:

I have the following formula
=IF(AND(J5<316226),"Green",IF(AND(J5=3162277),"Re d",IF(AND(J5=316228),"Amber",IF(AND(J5<=3162276), "Amber"))))
I'd like to include the comment "NO DATA" if the ref cell is not
populated with a value. I thought " " ment empty cell but I can't get
it to work. Thanks in advance for your help



Try this way:

=IF(J5="","",IF(J5<316226,"Green",IF(J5=3162277," Red",IF(J5=316228,"Amber",IF(J5<=3162276,"Amber") ))))

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy



  #8   Report Post  
Posted to microsoft.public.excel.misc
robert111
 
Posts: n/a
Default Excel Logical Formula


=IF(K1="","no data",IF(K1<5,"green",IF(AND(K14,K1<9),"amber","r ed")))


this gives you no data if cell k1 is empty, and either red or amber or
green according to the value of k1................


--
robert111
------------------------------------------------------------------------
robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996
View this thread: http://www.excelforum.com/showthread...hreadid=555519

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
Excel displaying formulae as constant and not calculating formula gpbell Excel Worksheet Functions 2 February 16th 06 08:26 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
How can i get an If formula in excel to edit another cell? Jimmy Hoffa Excel Worksheet Functions 2 August 16th 05 05:53 PM
converting formula from lotus.123 to excel zaharah Excel Worksheet Functions 2 July 27th 05 03:04 PM


All times are GMT +1. The time now is 06:07 AM.

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"