Date calculation formula

K

Kayden

I have cells with dates in them and I need to create a
function that will allow me to type in a number (-30 for
days prior) and tell me what the date was X amount of days
prior to the date in that cell. So far I have "=(date
(year,month,day)-30" which will give me the correct
answer, however I need to have something along the lines
of "(date(B12)-30)" and get the same result. Any ideas?
 
F

Frank Kabel

Hi
if you have your date in B12 use
=B12-30
and format this resulting cell as date
 

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