ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Need help with an IF Function (https://www.excelbanter.com/excel-discussion-misc-queries/449452-need-help-if-function.html)

JFELLOW

Need help with an IF Function
 
I need help with an IF function. Essentially, I have a very simple calculation
=IF(L21, D2-L2, ""). Both the D and L columns are MM/DD/YYYY and the D2-L2 calculation is determining the # of days we are within or outside a deadline. However, in some cases a due date (column D) was not given and therefore in place of the MM/DD/YYYY is "N/A". I can't seem to figure out the proper imbedded multiple IF function that will keep the cell blank or return even a text value. I would be happy with a blank cell or "N/A" just don't want to see "#VALUE!"... any help would be greatly appreciated!

Claus Busch

Need help with an IF Function
 
Hi,

Am Mon, 4 Nov 2013 17:23:44 +0000 schrieb JFELLOW:

=IF(L21, D2-L2, ""). Both the D and L columns are MM/DD/YYYY and the
D2-L2 calculation is determining the # of days we are within or outside
a deadline. However, in some cases a due date (column D) was not given
and therefore in place of the MM/DD/YYYY is "N/A".


try:
=IF(L2*D2<0,D2-L2,"")


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

Ron Rosenfeld[_2_]

Need help with an IF Function
 
On Mon, 4 Nov 2013 17:23:44 +0000, JFELLOW wrote:


I need help with an IF function. Essentially, I have a very simple
calculation
=IF(L21, D2-L2, ""). Both the D and L columns are MM/DD/YYYY and the
D2-L2 calculation is determining the # of days we are within or outside
a deadline. However, in some cases a due date (column D) was not given
and therefore in place of the MM/DD/YYYY is "N/A". I can't seem to
figure out the proper imbedded multiple IF function that will keep the
cell blank or return even a text value. I would be happy with a blank
cell or "N/A" just don't want to see "#VALUE!"... any help would be
greatly appreciated!


Perhaps:

=IFERROR(IF(L21, D2-L2,""),"")

Stan Brown

Need help with an IF Function
 
On Mon, 4 Nov 2013 17:23:44 +0000, JFELLOW wrote:

I need help with an IF function. Essentially, I have a very simple
calculation
=IF(L21, D2-L2, ""). Both the D and L columns are MM/DD/YYYY and the
D2-L2 calculation is determining the # of days we are within or outside
a deadline. However, in some cases a due date (column D) was not given
and therefore in place of the MM/DD/YYYY is "N/A". I can't seem to
figure out the proper imbedded multiple IF function that will keep the
cell blank or return even a text value. I would be happy with a blank
cell or "N/A" just don't want to see "#VALUE!"... any help would be
greatly appreciated!


=IF( ISNA(D2), "", IF(L21, D2-L2, "") )

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
Shikata ga nai...

JFELLOW

Thank you, this one worked!


Quote:

Originally Posted by Ron Rosenfeld[_2_] (Post 1614791)
On Mon, 4 Nov 2013 17:23:44 +0000, JFELLOW wrote:


I need help with an IF function. Essentially, I have a very simple
calculation
=IF(L21, D2-L2, ""). Both the D and L columns are MM/DD/YYYY and the
D2-L2 calculation is determining the # of days we are within or outside
a deadline. However, in some cases a due date (column D) was not given
and therefore in place of the MM/DD/YYYY is "N/A". I can't seem to
figure out the proper imbedded multiple IF function that will keep the
cell blank or return even a text value. I would be happy with a blank
cell or "N/A" just don't want to see "#VALUE!"... any help would be
greatly appreciated!


Perhaps:

=IFERROR(IF(L21, D2-L2,""),"")


Ron Rosenfeld[_2_]

Need help with an IF Function
 
On Wed, 6 Nov 2013 17:25:43 +0000, JFELLOW wrote:

Thank you, this one worked!


Glad to help. Thanks for the feedback.


All times are GMT +1. The time now is 04:35 AM.

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