Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default IF and Date Functions

I want to have a "date due" to be 7 days after the "date out" unless the
student option=true, then I want the "date due" to be 1 day after the "date
out." This is what i have so far:

=IF(G3=True,D3+1,D3+7)

This function works EXCEPT that until a date is entered in the "date out"
cell, the "date due" reads 1/7/1900. I want the "date due" to be blank until
a date is entered into the "date out" cell. HELP!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default IF and Date Functions

=IF(G3=True,D3+1,D3+7)

Just add a front IF check so that the orig. formula evaluates only if both
D3 and G3 contain something, viz.:
=IF(OR(D3="",G3=""),"",IF(G3=TRUE,D3+1,D3+7))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Christ4" wrote:
I want to have a "date due" to be 7 days after the "date out" unless the
student option=true, then I want the "date due" to be 1 day after the "date
out." This is what i have so far:

=IF(G3=True,D3+1,D3+7)

This function works EXCEPT that until a date is entered in the "date out"
cell, the "date due" reads 1/7/1900. I want the "date due" to be blank until
a date is entered into the "date out" cell. HELP!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default IF and Date Functions

THANK YOU - FRUSTRATION OVER!!!!!!!!!!!!!!!! Worked great.

G

"Max" wrote:

=IF(G3=True,D3+1,D3+7)


Just add a front IF check so that the orig. formula evaluates only if both
D3 and G3 contain something, viz.:
=IF(OR(D3="",G3=""),"",IF(G3=TRUE,D3+1,D3+7))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Christ4" wrote:
I want to have a "date due" to be 7 days after the "date out" unless the
student option=true, then I want the "date due" to be 1 day after the "date
out." This is what i have so far:

=IF(G3=True,D3+1,D3+7)

This function works EXCEPT that until a date is entered in the "date out"
cell, the "date due" reads 1/7/1900. I want the "date due" to be blank until
a date is entered into the "date out" cell. HELP!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default IF and Date Functions

Glad that de-stressor worked <g !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Christ4" wrote:
THANK YOU - FRUSTRATION OVER!!!!!!!!!!!!!!!! Worked great.

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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Date Functions Bonniem Excel Discussion (Misc queries) 5 December 2nd 05 04:50 PM
Help with Date Functions Sharon19 Excel Worksheet Functions 4 November 8th 05 07:13 PM
date functions VDan Excel Discussion (Misc queries) 1 August 31st 05 06:24 PM
Date functions for dates pre-1900 Stephen Larivee Excel Discussion (Misc queries) 2 July 20th 05 08:23 PM


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