+ Reply to Thread
Results 1 to 2 of 2

Date + #of days to Correct Quarter and Year

  1. #1
    Registered User
    Join Date
    02-24-2016
    Location
    France
    MS-Off Ver
    2003
    Posts
    1

    Date + #of days to Correct Quarter and Year

    Hi all,

    Thanks in advance for any help you can provide.

    The problem: Currently I have a date in Cell "A1" and would like to add a certain number of days to it and return a value in the following format "Q1-17"

    Note: Dates are in French format.

    Example: Cell A1 contains 01/12/16 (so: 1st of December 2016)
    I need this date plus 6 weeks or 42 days (equals 12/1/17 or the 12th of Jan. 2017)
    Cell B1 should read Q1-17

    I currently have a formula shown below:
    =IF([@METIER]="MF";"Q"&INT((MONTH([@ORDER]+42)-1)/3)+1&"-"&RIGHT(YEAR([@ORDER]);2);"-")

    However this will only work for if the date in cell A1 + X amount of days is a date before the 1st of December for the same year.

    Any suggestions?

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Date + #of days to Correct Quarter and Year

    As far I can judge this works:

    ="Q"&INT((MONTH(A1+42)-1)/3)+1&"-"& RIGHT(YEAR(A1+42),2)

    and is identical to your formula (?)

    1st of December for the same year.
    What is "same Year" ? Give example of date(s) not working.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Using SumProduct for dates inclusive of Year to Date, Month to date, Quarter to Date
    By cartica in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2014, 04:22 PM
  2. Return Correct Quarter based on Date Value.
    By Roco in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2013, 10:11 AM
  3. [SOLVED] Formula Error for converting date to quarter and year
    By jayc2111 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2013, 01:26 PM
  4. Fiscal Quarter/Year into a date format
    By bluerog in forum Excel General
    Replies: 2
    Last Post: 12-14-2009, 02:36 PM
  5. Date Format - Quarter and Fiscal Year
    By bluerog in forum Excel General
    Replies: 1
    Last Post: 11-04-2009, 12:04 PM
  6. [SOLVED] Change date to quarter of a year
    By rita in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-13-2005, 08:06 AM
  7. Replies: 7
    Last Post: 05-11-2005, 04:06 PM
  8. Converting a date in Excel 2002 to a Year/Quarter format
    By Jim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2005, 04:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1