• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Formula to capture MTD,QTD and YTD (depending on the respective quarter)

melvin

Member
Hi all,

I have attached a file where I am trying to get formula for MTD, QTD, YTD once I use the week drop down

i.e. If I use week 4 of the year MTD will be first 4 weeks of the year and so will QTD

However if I choose week 48,
MTD will be from week 45
QTD will be from week week 40

Appreciate any assistance. This will get gold if I can automate this.
 

Attachments

  • QTD YTD formula.xlsm
    18.4 KB · Views: 7
Hi melvin,

The text strings of "Week x" are hard to work with for numerical comparison, so I created some helper cells with just numbers, but I got the formulas working I believe.
 

Attachments

  • QTD YTD formula LM.xlsm
    19.5 KB · Views: 16
thanks Luke, works perfect. Really good way of doing it. happy to buy you a drink mate if you are around Melbourne :)

Narayan,
Liked your login as well, however the MTD and YTD and QTD have to be restricted to the store i.e "C". i tried to do it by self but came as too many arguments. Appreciate your assistance

Thanks boys
Melv
 

Attachments

  • QTD MTD formula not resolved.xlsm
    19.3 KB · Views: 3
Luke

If I had to count all the store with C's with the given period, would you be able to assist wit that. As I am trying to get avg item price this would be beneficial.

Appreciate it mate.

I have added the query in G2 to G26
 

Attachments

  • QTD MTD formula solved1.xlsm
    19.6 KB · Views: 3
Thanks Narayan, works perfect. If you get sometime would you be able to assist with the Count formula that I have asked Luke for.

Appreciate a ton guys. Once I get the count my report will be fantastic. Thanks to you guys

Melv.
 
Hi ,

I am not able to understand your requirement ; what are the cells where you want a formula , and what values should the formula return ? Can you manually input these values in the appropriate cells , and then upload the workbook ?

Alternatively , post the cell addresses and their values in this thread.

Narayan
 
Hi Narayan,
I have highlighted the required section in Green.

If I want to count Store C for YTD for week 15, It will add up week 5 & 6 from week 1 to week 15 , "where it is tagged to the week and the store"

As the week changes and store changes the result changes.
upload_2016-6-2_17-1-49.png
 

Attachments

  • QTD MTD formula not resolved (2).xlsm
    19.5 KB · Views: 1
Luke

If I had to count all the store with C's with the given period, would you be able to assist wit that. As I am trying to get avg item price this would be beneficial.

Appreciate it mate.

I have added the query in G2 to G26


Luke the formula I had for the cells G23 to G26 should have been a COUNT and not a SUM. i am looking to count the numbers when you choose MTD/QTD/YTD.

I just realised I asked for the wrong info after reading Narayan's response.

Thanks.
 
that's exactly what I wanted. Thanks mate.

Apologies if I did not relay the information properly. Cheers Narayan
 
Back
Top