+ Reply to Thread
Results 1 to 3 of 3

time decomposition formula

  1. #1
    Registered User
    Join Date
    01-09-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    53

    time decomposition formula

    Hi,

    I would like to produce a formula which would return a TEXT in attached file highlighted in yellow. There are other supportive columns you will see, green highlighted is changing depending on the number of the week.

    The final value (yellow highlighted) would be dependent on the position day (column A). While I know how to deal with DAY and WEEK, I am struggling to cluster months in to QUARTER and YEAR.

    Please if anyone could advise.

    Thank you
    Tim
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,116

    Re: time decomposition formula

    I do not understand what you are trying to do. What is the raw data? What formulae (if any) are meant to be presnet in the other columns?


    You day you have days and weeks fixed. How? Where are the formulae that did that for you?

    Without some explanation, I can see neither what YOU have done nor what you WANT to get done.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: time decomposition formula

    See if the following formula works for you:

    =IF(LEFT(E2)="D","DAY",IF(LEFT(E2)="W","WEEK",IF(LEFT(E2)="M",IF(YEAR(A2)<>YEAR(F2),"YEAR",IF(CEILING(MONTH(A2),3)<>CEILING(MONTH(F2),3),"QUARTER","MONTH")),"")))

+ 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. Regression Decomposition
    By JamesWM in forum Excel General
    Replies: 7
    Last Post: 05-27-2015, 02:00 AM
  2. Best way to handle decomposition in VBA?
    By EmmaO91 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-14-2014, 06:43 AM
  3. Decomposition in Prime Factors
    By philippe1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-31-2012, 11:32 AM
  4. Cell Decomposition problem
    By mehdoush in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2009, 05:29 AM
  5. Generalised version of LINEST using QR Decomposition
    By Will in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  6. [SOLVED] Generalised version of LINEST using QR Decomposition
    By Harlan Grove in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 08:05 AM
  7. Generalised version of LINEST using QR Decomposition
    By Will in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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