Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
DFWlly
Aug 6, 2004

by Fistgrrl
Ok...

I have a spreadsheet with an install date in column A. I have another date in column C (which represents the date of a service call). The dates in C are always after the date in A.

If an install date is 4/10/2006, then I need all dates in column C that are up to 7/10/2006 to be Quarter 1, from 7/11/2006 to 10/11/2006 to be Quarter 2, and so on.

Basically a quarterly calender year, but instead of Jan 1st being the start of a quarter, the install date in column A is representing the start of the year.

Edit: And to complicate things, is there a way to simply go Q1-Q20 instead of resetting to Q1 after the fourth quarter?

Eg.

Column A Column C Column D (this is the column I need represented!)
4/10/2006 4/11/2006 Qtr 1
4/10/2006 4/15/2006 Qtr 1
4/10/2006 8/20/2007 Qtr 7

EDIT: NEVERMIND!

=CEILING((DATEDIF(A1,C1,"m")+3)/3,1)

:smug: (ok another forum got it for me but still i'm feeling pretty drat good at 230am)

DFWlly fucked around with this message at 07:24 on Jun 12, 2009

Adbot
ADBOT LOVES YOU

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply