ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel Logical Formula (https://www.excelbanter.com/excel-discussion-misc-queries/96005-excel-logical-formula.html)

ju1eshart

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

Stefi

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


Franz Verga

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



David Biddulph

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



Dav

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


Don Guillett

Excel Logical Formula
 
I am also confused about what you are doing but try this idea
=if(and(j5=316226,,j5<3162276),"amber",next if)

Don Guillett
SalesAid Software

"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




ju1eshart

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




robert111

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



All times are GMT +1. The time now is 09:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com