Trouble interpreting date range. Excel2007

sdandolini

New Member
Joined
Jan 11, 2011
Messages
4
I am trying to build an Equipment Replacement Schedule for computer hardware.

I have a column that reads the warranty start date and adds the number of years that has been determined as the replacement cycle. That looks like this:

=IF(ISBLANK(H6),"",DATE(YEAR(H6)+Summary!$C$18,MONTH(H6),DAY(H6)))

That returns a series of dates. If the warranty start date is 1/1/2005 and the cycle is 4 years, the date would be 1/1/2009.

We purchase our computers in 4 quarterly purchases. July 15th, November 15th, February 15th, and May 15th.

What I am trying to do is create a column that looks at that date and assigns the closest quarterly purchase.

I am hoping someone has some ideas for me.

Thank You !
 
Hello Fowmy,

If you don't subtract 1 then any date that is exactly on one of the purchase dates will be "bumped" to the next purchase date, e.g. if A3 is 15th Nov 2010 then without the -1 you'd get the answer as 15th Feb 2011

In the previous version I got round that by using 16 and 15 but for the shorter version to work all the dates are 15th

Thanks Barry, I got it.
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Am glad you got some useful knowhow ... I still learn things on here :)
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top