Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Excel Formula Converting dates to quater ?

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion
Register FAQ Community Calendar

Excel Formula Converting dates to quater ?
Reply
 
Thread Tools
Old 15-09-2014, 10:10   #1
Mike
cf.mega poster
 
Join Date: Jan 2004
Age: 61
Posts: 2,242
Mike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful one
Excel Formula Converting dates to quater ?

Hi all

Hope someone can help on this please

I have a large list of projects with various start and finish dates.

I have to insert a column which shows the yearly quarter works will be delivered. Could be in a single quarter or across quarters.

Any idea on a formula to do this

Example
Start Finish Delivered
1/4/2014 - 30 May 2014 = Q1
1/4/2014 - 15 July 2014 = Q1-Q2
1/05/2014 - 2 Feb 2015 = Q1-Q4

Quarter are

Quarter 1 = 01/04/2014 - 30/06/2014
Quarter 2 = 01/07/2014 - 30/09/2014
Quarter 3 = 01/10/2014 - 31/12/2014
Quarter 4= 01/01/2015 - 31/03/2015

Many thanks for you time and help

Regards

Mike
Mike is offline   Reply With Quote
Advertisement
Old 15-09-2014, 10:20   #2
Pauls9
Inactive
 
Join Date: Jul 2009
Location: Guildford, Surrey
Services: VM TVM HD, BBL, phone; BT phone; Freeview.
Posts: 982
Pauls9 has reached the bronze age
Pauls9 has reached the bronze agePauls9 has reached the bronze agePauls9 has reached the bronze agePauls9 has reached the bronze agePauls9 has reached the bronze agePauls9 has reached the bronze age
Re: Excel Formula Converting dates to quater ?

Try https://www.google.co.uk/search?num=...es+to+quarters
Pauls9 is offline   Reply With Quote
Old 16-09-2014, 13:05   #3
Tali
cf.addict
 
Join Date: Sep 2007
Location: West Mids
Posts: 286
Tali has a spectacular aura about themTali has a spectacular aura about themTali has a spectacular aura about themTali has a spectacular aura about them
Re: Excel Formula Converting dates to quater ?

Try

=(SUBSTITUTE(ROUNDUP(MONTH(A1)/3,0)-1,0,4))*1

where A1 is the cell that contains the date.

ROUNDUP(MONTH(A1)/3,0) - finds the quarter, based on 1 Jan being Q1.

ROUNDUP(MONTH(A1)/3,0)-1 - finds the quarter and reduces by 1 to adjust for 1 April being your Q1

The substitute statement looks for 0 and replaces it with 4, so that 1 Jan is Q4.

The substitute command returns a string, so *1 forces Excel to treat the result as a number.

Hope that makes sense.
Tali is offline   Reply With Quote
Old 17-09-2014, 08:26   #4
Mike
cf.mega poster
 
Join Date: Jan 2004
Age: 61
Posts: 2,242
Mike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful oneMike is the helpful one
Re: Excel Formula Converting dates to quater ?

Quote:
Originally Posted by Tali View Post
Try

=(SUBSTITUTE(ROUNDUP(MONTH(A1)/3,0)-1,0,4))*1

where A1 is the cell that contains the date.

ROUNDUP(MONTH(A1)/3,0) - finds the quarter, based on 1 Jan being Q1.

ROUNDUP(MONTH(A1)/3,0)-1 - finds the quarter and reduces by 1 to adjust for 1 April being your Q1

The substitute statement looks for 0 and replaces it with 4, so that 1 Jan is Q4.

The substitute command returns a string, so *1 forces Excel to treat the result as a number.

Hope that makes sense.
Many thanks for help........

It works so that is great.....

Really appreciate the help

Regards

Mike
Mike is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:23.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.