Add 2 days before and after birthdate

S

Sunflower

I have column of birthdates and need to have a date range showing 2
days before and after the Month and day (in current year) of
birthdate.

For example

Birthdate:
01/31/1968

Result:
01/29/2009 - 02/02/2009

Is this possible?

Any and all help greatly appreciated
 
D

Dave Peterson

In a single cell?

=text(a1-2,"mm/dd/yyyy") & " - " & text(a1+2,"mm/dd/yyyy")

Where A1 contains the date.
 
S

Sunflower

In a single cell?

=text(a1-2,"mm/dd/yyyy") & " - " & text(a1+2,"mm/dd/yyyy")

Where A1 contains the date.









--

Dave Peterson- Hide quoted text -

- Show quoted text -

I do want the result in a single cell and what you sent works...
However, when I put your formula in the B1 cell
I am getting it to show...
01/29/1968 - 02/02/1968

What I need is the year to be current ...
01/29/2009 - 02/02/2009

Any and all help greatly appreciated
 
D

Dave Peterson

Sorry, I missed that:

=text(date(year(today()),month(a1),day(a1)-2),"mm/dd/yyyy") & " - " &
text(date(year(today()),month(a1),day(a1)+2),"mm/dd/yyyy")
 
S

Sunflower

Sorry, I missed that:

=text(date(year(today()),month(a1),day(a1)-2),"mm/dd/yyyy") & " - " &
 text(date(year(today()),month(a1),day(a1)+2),"mm/dd/yyyy")









--

Dave Peterson- Hide quoted text -

- Show quoted text -

BEAUTIFUL!!! Works like a charm!! Thank you so much
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top