Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default 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!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default 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,""),"")
  #4   Report Post  
Junior Member
 
Posts: 2
Default

Thank you, this one worked!


Quote:
Originally Posted by Ron Rosenfeld[_2_] View Post
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,""),"")
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default 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.


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 524
Default 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...
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
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? SteveM Excel Programming 1 January 3rd 08 03:45 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Excel - User Defined Function Error: This function takes no argume BruceInCalgary Excel Programming 3 August 23rd 06 08:53 PM
A correct IF function doesn't show the function's result in cell Michael Excel Discussion (Misc queries) 1 April 10th 06 09:10 AM
Adding a custom function to the default excel function list DonutDel Excel Programming 3 November 21st 03 03:41 PM


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