Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default How to calculate the previous day?

Hi,

I have a date field dtMyDate. Can someone tell me how do I find the
value of the date that is 1 day before dtMyDate?

Also I am still looking for proper answers to the questions I have
posted on the 6th of May 2004.

Thanks in advance
Prasad Vanka
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to calculate the previous day?

Dates are stored as the number of days from a base date, so to get the day
before, just subtract 1

dtYesterday = dtMyDate - 1

--
Regards,
Tom Ogilvy


"Prasad Vanka" wrote in message
...
Hi,

I have a date field dtMyDate. Can someone tell me how do I find the
value of the date that is 1 day before dtMyDate?

Also I am still looking for proper answers to the questions I have
posted on the 6th of May 2004.

Thanks in advance
Prasad Vanka



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default How to calculate the previous day?

Hi,

Thanks for the answer. Just one more help. I have just started using
VBA on excel (had done AS400 programming for 7 years). But now totally
into Excel VBA. So programming is not a problem. Can you recommend any
book or any website that contains example codes. My job here is to
basically use/work on a master sheet in main workbook and populate
detail sheets either in the main workbook or a different workbook. I
want to start working on VBA properly and on the track.
regards,
Prasad Vanka



"Tom Ogilvy" wrote in message ...
Dates are stored as the number of days from a base date, so to get the day
before, just subtract 1

dtYesterday = dtMyDate - 1

--
Regards,
Tom Ogilvy


"Prasad Vanka" wrote in message
...
Hi,

I have a date field dtMyDate. Can someone tell me how do I find the
value of the date that is 1 day before dtMyDate?

Also I am still looking for proper answers to the questions I have
posted on the 6th of May 2004.

Thanks in advance
Prasad Vanka

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default How to calculate the previous day?

Go to this site and download the Google add-in
www.rondebruin.nl/Google.htm

It is better than a single site or book.

--
steveb
(Remove 'NOSPAM' from email address if replying direct)


"Prasad Vanka" wrote in message
om...
Hi,

Thanks for the answer. Just one more help. I have just started using
VBA on excel (had done AS400 programming for 7 years). But now totally
into Excel VBA. So programming is not a problem. Can you recommend any
book or any website that contains example codes. My job here is to
basically use/work on a master sheet in main workbook and populate
detail sheets either in the main workbook or a different workbook. I
want to start working on VBA properly and on the track.
regards,
Prasad Vanka



"Tom Ogilvy" wrote in message

...
Dates are stored as the number of days from a base date, so to get the

day
before, just subtract 1

dtYesterday = dtMyDate - 1

--
Regards,
Tom Ogilvy


"Prasad Vanka" wrote in message
...
Hi,

I have a date field dtMyDate. Can someone tell me how do I find the
value of the date that is 1 day before dtMyDate?

Also I am still looking for proper answers to the questions I have
posted on the 6th of May 2004.

Thanks in advance
Prasad Vanka



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
3-Color Scale Vlookup for Current Month/Previous/Pre-Previous NeoFax Excel Discussion (Misc queries) 2 January 8th 10 07:04 PM
Automatically calculate the previous days total 'sales' PVANS Excel Discussion (Misc queries) 6 July 17th 09 11:09 AM
Calculate date for one month previous? liirogue Excel Discussion (Misc queries) 3 May 8th 09 11:08 PM
Functions for "current" & "previous" month to calculate data Priss Excel Worksheet Functions 11 April 15th 08 06:24 PM
Calculate % variance on previous quarters. Quarter %, etc. pivot DaveC Excel Discussion (Misc queries) 1 August 8th 05 06:45 PM


All times are GMT +1. The time now is 06:57 AM.

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"