ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help with a Date formula please? (https://www.excelbanter.com/excel-discussion-misc-queries/199279-help-date-formula-please.html)

Dan the Man[_2_]

Help with a Date formula please?
 
I know that if I place the following formula: =IF(A1="","",EDATE(A1,1)) in
cell B1 I will be able to obtain a date 1 month beyond the date I input in A1
(e.g. if A1= Sept 1, 2007, than the formula will result in the date Oct 1,
2008).

What I'd like to know is how I can alter the formula to make the date
outcome in B1 generate different than month out intervals (e.g. A1,2 would
provide me with a two month out date, etc). An example of what I'd like to be
able to generate is a date six weeks out, 3 weeks out, or at various other
intervals. There are times when I'd even like to place to date to generate as
"days out". Unfortunately I only seem to be able to create posting dates in
one month intervals. Any help would be appreciated.

Dan


smartin

Help with a Date formula please?
 
Dan the Man wrote:
I know that if I place the following formula: =IF(A1="","",EDATE(A1,1)) in
cell B1 I will be able to obtain a date 1 month beyond the date I input in A1
(e.g. if A1= Sept 1, 2007, than the formula will result in the date Oct 1,
2008).

What I'd like to know is how I can alter the formula to make the date
outcome in B1 generate different than month out intervals (e.g. A1,2 would
provide me with a two month out date, etc). An example of what I'd like to be
able to generate is a date six weeks out, 3 weeks out, or at various other
intervals. There are times when I'd even like to place to date to generate as
"days out". Unfortunately I only seem to be able to create posting dates in
one month intervals. Any help would be appreciated.

Dan


Hi Dan,

Why not just add intervals of 7 to A1?

= Today() + (6*7) yields 29-Sep-2008, which is correct on my calendar.

FSt1

Help with a Date formula please?
 
hi
try a different formula.
with a date in g5...
=DATE(YEAR(G5),MONTH(G5),DAY(G5)+14)
this will add 14 days(2 weeks) to the date in g5.
alter cell reference and days out as needed.

Regards
FSt1

"Dan the Man" wrote:

I know that if I place the following formula: =IF(A1="","",EDATE(A1,1)) in
cell B1 I will be able to obtain a date 1 month beyond the date I input in A1
(e.g. if A1= Sept 1, 2007, than the formula will result in the date Oct 1,
2008).

What I'd like to know is how I can alter the formula to make the date
outcome in B1 generate different than month out intervals (e.g. A1,2 would
provide me with a two month out date, etc). An example of what I'd like to be
able to generate is a date six weeks out, 3 weeks out, or at various other
intervals. There are times when I'd even like to place to date to generate as
"days out". Unfortunately I only seem to be able to create posting dates in
one month intervals. Any help would be appreciated.

Dan


Dan the Man[_2_]

Help with a Date formula please?
 
Thanks very much for the help. That did the trick. I love this
group...................Dan

"FSt1" wrote:

hi
try a different formula.
with a date in g5...
=DATE(YEAR(G5),MONTH(G5),DAY(G5)+14)
this will add 14 days(2 weeks) to the date in g5.
alter cell reference and days out as needed.

Regards
FSt1

"Dan the Man" wrote:

I know that if I place the following formula: =IF(A1="","",EDATE(A1,1)) in
cell B1 I will be able to obtain a date 1 month beyond the date I input in A1
(e.g. if A1= Sept 1, 2007, than the formula will result in the date Oct 1,
2008).

What I'd like to know is how I can alter the formula to make the date
outcome in B1 generate different than month out intervals (e.g. A1,2 would
provide me with a two month out date, etc). An example of what I'd like to be
able to generate is a date six weeks out, 3 weeks out, or at various other
intervals. There are times when I'd even like to place to date to generate as
"days out". Unfortunately I only seem to be able to create posting dates in
one month intervals. Any help would be appreciated.

Dan


David Biddulph[_2_]

Help with a Date formula please?
 
For a number of days, =G5+14 is easier. :-)
[Of course, for months or years, your method makes sense.]
--
David Biddulph

"FSt1" wrote in message
...
hi
try a different formula.
with a date in g5...
=DATE(YEAR(G5),MONTH(G5),DAY(G5)+14)
this will add 14 days(2 weeks) to the date in g5.
alter cell reference and days out as needed.

Regards
FSt1

"Dan the Man" wrote:

I know that if I place the following formula: =IF(A1="","",EDATE(A1,1))
in
cell B1 I will be able to obtain a date 1 month beyond the date I input
in A1
(e.g. if A1= Sept 1, 2007, than the formula will result in the date Oct
1,
2008).

What I'd like to know is how I can alter the formula to make the date
outcome in B1 generate different than month out intervals (e.g. A1,2
would
provide me with a two month out date, etc). An example of what I'd like
to be
able to generate is a date six weeks out, 3 weeks out, or at various
other
intervals. There are times when I'd even like to place to date to
generate as
"days out". Unfortunately I only seem to be able to create posting dates
in
one month intervals. Any help would be appreciated.

Dan





All times are GMT +1. The time now is 11:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com