#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Change to formula

Hi I am using this formula to return a date when spreadsheet is altered, I
require the date to ne one day less than the present day. Ie is the actual
date is 6/6/08 need it to return the 5/6/08
=IF(AND(B6="",B4<""),NOW(),IF(AND(B4<"",B6<""), B6,""))
any help would be greatly appreaciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Change to formula

Since the non-time portions are day offsets from some starting time, just
subtract 1 from the date and you will have the day before's date...

=IF(AND(B6="",B4<""),NOW()-1,IF(AND(B4<"",B6<""),B6,""))

By the way, if you only need the date, without the time portion, you can use
the TODAY() function in place of the NOW() function.

Rick


"bbc1" wrote in message
...
Hi I am using this formula to return a date when spreadsheet is altered, I
require the date to ne one day less than the present day. Ie is the actual
date is 6/6/08 need it to return the 5/6/08
=IF(AND(B6="",B4<""),NOW(),IF(AND(B4<"",B6<""), B6,""))
any help would be greatly appreaciated.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Change to formula

Have you tried replacing NOW() by TODAY() - 1 ?
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"bbc1" wrote in message
...
Hi I am using this formula to return a date when spreadsheet is altered, I
require the date to ne one day less than the present day. Ie is the actual
date is 6/6/08 need it to return the 5/6/08
=IF(AND(B6="",B4<""),NOW(),IF(AND(B4<"",B6<""), B6,""))
any help would be greatly appreaciated.



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
change color of all cells with formula or are part of a formula [email protected] Excel Discussion (Misc queries) 19 January 28th 08 01:21 AM
% Change Formula without #DIV/0! dj479794 Excel Discussion (Misc queries) 7 September 11th 07 06:18 PM
copy formula down a column and have cell references change within formula brad New Users to Excel 5 May 13th 07 04:38 PM
want to copy formula, only change one number in formula cac1966 Excel Worksheet Functions 3 March 12th 07 10:39 PM
How does Data Validation change with a formula change? MayClarkOriginals Excel Worksheet Functions 3 July 5th 06 04:50 AM


All times are GMT +1. The time now is 03:50 PM.

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"