ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   formula to subtract 60 days from a date (05/25/2010) 2003excel (https://www.excelbanter.com/excel-worksheet-functions/263581-formula-subtract-60-days-date-05-25-2010-2003excel.html)

HH

formula to subtract 60 days from a date (05/25/2010) 2003excel
 
Would appreciate some help!! I have to enter dates and return a date 60 days
before the entered date. I am formating the date entered column as
mm/dd/yyyy.
Everything I try doesn't work. How would you format the date entered column?
There's a formula on the Internet that says it's so easy:
=A1-60, doesn't work; =DATE(YEAR(A1),MONTH(A1), DAY(A1)-60) doesn't work.
They should, so I must have my column format wrong.
Help!

ozgrid.com

formula to subtract 60 days from a date (05/25/2010) 2003excel
 
=A1-60 works for me. What side are your "dates" aligning to? Left or Right,
should be right.


--
Regards
Dave Hawley
www.ozgrid.com
"HH" wrote in message
...
Would appreciate some help!! I have to enter dates and return a date 60
days
before the entered date. I am formating the date entered column as
mm/dd/yyyy.
Everything I try doesn't work. How would you format the date entered
column?
There's a formula on the Internet that says it's so easy:
=A1-60, doesn't work; =DATE(YEAR(A1),MONTH(A1), DAY(A1)-60) doesn't work.
They should, so I must have my column format wrong.
Help!



MS-Exl-Learner

formula to subtract 60 days from a date (05/25/2010) 2003excel
 
Check whether the A1 cell is having any leading spaces. If it is exported
from any software then sometimes the fields contains some spaces on it.

Try the below formula in B1 cell.
=VALUE(A1)-60
Or
=VALUE(TRIM(A1))-60

--
Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"HH" wrote:

Would appreciate some help!! I have to enter dates and return a date 60 days
before the entered date. I am formating the date entered column as
mm/dd/yyyy.
Everything I try doesn't work. How would you format the date entered column?
There's a formula on the Internet that says it's so easy:
=A1-60, doesn't work; =DATE(YEAR(A1),MONTH(A1), DAY(A1)-60) doesn't work.
They should, so I must have my column format wrong.
Help!


Fred Smith[_4_]

formula to subtract 60 days from a date (05/25/2010) 2003excel
 
If =a1-60 doesn't work, it means your date is text. You need to convert it
to a date. You can use Text-to-columns, copy/paste special, or
=datevalue(a1). Simply changing the format won't have any effect on a text
cell. You need to change its value.

Regards,
Fred

"HH" wrote in message
...
Would appreciate some help!! I have to enter dates and return a date 60
days
before the entered date. I am formating the date entered column as
mm/dd/yyyy.
Everything I try doesn't work. How would you format the date entered
column?
There's a formula on the Internet that says it's so easy:
=A1-60, doesn't work; =DATE(YEAR(A1),MONTH(A1), DAY(A1)-60) doesn't work.
They should, so I must have my column format wrong.
Help!




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

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