#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Date Formula

I have a column of dates in Column A that generate with a formula like so:
A1 "=O18" (This is currently a date that is inputted by the user.
a2 "=b1+1"

Column b is like:
b1 "=a1+13"
b2 "=a2+13"

(Quotes are used here to indicate the formula I am using in the cells)
These formulas go down about 57 cells. I would like to automate this so
that when the last cell is equal to (Or greater than) today, cell A1 will
automatically change to the date in the last cell. Any help in how to do this
would be greatly appreciated!

Thanks,
Tim
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 119
Default Date Formula

Hi Tim,

I don't think formulas will solve this - you'd just end up with a circular
reference (if I've understood this correctly).

Ultimately, your best solution will be to use some VBA (macro language) to
automate this. Unfortunately, I'm pants at VBA so my best suggestion is that
you bung your message to the "Excel - Programming" board and you'll probably
find people more qualified to help there.

Alternatively, if I've missed the point then apologies!

"TimJames" wrote:

I have a column of dates in Column A that generate with a formula like so:
A1 "=O18" (This is currently a date that is inputted by the user.
a2 "=b1+1"

Column b is like:
b1 "=a1+13"
b2 "=a2+13"

(Quotes are used here to indicate the formula I am using in the cells)
These formulas go down about 57 cells. I would like to automate this so
that when the last cell is equal to (Or greater than) today, cell A1 will
automatically change to the date in the last cell. Any help in how to do this
would be greatly appreciated!

Thanks,
Tim

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Date Formula

Thanks "mr tom",
I was hoping that there would be a formula solution to this, but it looks
like there isn't so since I'm "pants" at VBA I'll take my chances at not
understanding the answer I may get from the programming board!

Thanks for the reply, it was mychly appreciated.

-Tim

"mr tom" wrote:

Hi Tim,

I don't think formulas will solve this - you'd just end up with a circular
reference (if I've understood this correctly).

Ultimately, your best solution will be to use some VBA (macro language) to
automate this. Unfortunately, I'm pants at VBA so my best suggestion is that
you bung your message to the "Excel - Programming" board and you'll probably
find people more qualified to help there.

Alternatively, if I've missed the point then apologies!

"TimJames" wrote:

I have a column of dates in Column A that generate with a formula like so:
A1 "=O18" (This is currently a date that is inputted by the user.
a2 "=b1+1"

Column b is like:
b1 "=a1+13"
b2 "=a2+13"

(Quotes are used here to indicate the formula I am using in the cells)
These formulas go down about 57 cells. I would like to automate this so
that when the last cell is equal to (Or greater than) today, cell A1 will
automatically change to the date in the last cell. Any help in how to do this
would be greatly appreciated!

Thanks,
Tim

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 119
Default Date Formula

They're generally pretty good on the programming board. They'll write some
code for you (a complete subroutine).

All you'll need to do is open the code window (Alt-F11), select your
worksheet and paste in the code.

The name of the subroutine (or macro) is then visible whenever you go to the
"run macro" screen.

Unless you call the macro Autoexec, then you'll need to run it manually.

HTH

"TimJames" wrote:

Thanks "mr tom",
I was hoping that there would be a formula solution to this, but it looks
like there isn't so since I'm "pants" at VBA I'll take my chances at not
understanding the answer I may get from the programming board!

Thanks for the reply, it was mychly appreciated.

-Tim

"mr tom" wrote:

Hi Tim,

I don't think formulas will solve this - you'd just end up with a circular
reference (if I've understood this correctly).

Ultimately, your best solution will be to use some VBA (macro language) to
automate this. Unfortunately, I'm pants at VBA so my best suggestion is that
you bung your message to the "Excel - Programming" board and you'll probably
find people more qualified to help there.

Alternatively, if I've missed the point then apologies!

"TimJames" wrote:

I have a column of dates in Column A that generate with a formula like so:
A1 "=O18" (This is currently a date that is inputted by the user.
a2 "=b1+1"

Column b is like:
b1 "=a1+13"
b2 "=a2+13"

(Quotes are used here to indicate the formula I am using in the cells)
These formulas go down about 57 cells. I would like to automate this so
that when the last cell is equal to (Or greater than) today, cell A1 will
automatically change to the date in the last cell. Any help in how to do this
would be greatly appreciated!

Thanks,
Tim

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
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 03:03 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM
Date formula: return Quarter and Fiscal Year of a date Rob Excel Discussion (Misc queries) 7 May 11th 05 08:48 PM


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