Is there any macro or function that can calculate which weeks belongs to a month range?
Please see the attached file for the details.
Thanks in advance!
Is there any macro or function that can calculate which weeks belongs to a month range?
Please see the attached file for the details.
Thanks in advance!
One way:
C10: =SUMPRODUCT(--(LEFT($C$2:$I$2,3)=C$9),--($C$3:$I$3)) and drag across
Note that your example is wrong as you only have one column with June dates.
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Gee Thanks!
That was what i'm looking for.
Sorry for the example, I haven't change the month name for june.
Thumbs up!
You're welcome. Thanks for the rep.
Just wanted to point it out in case you thought the formula didn't work properly in some cases.
@TMS
is it possible that the array for the weekly cells is from other worksheet?
Like:
=SUMPRODUCT(--(LEFT('Other Sheet'!$C$2:$I$2,3)='This Sheet'!C$9),--('Other Sheet'!$C$3:$I$3))
maybe?
Regards, TMS
@TMS
Yes it is working.
I've also try it on a simple way and it's ok.
It's just that i use many variables(for the ranges) that's why it makes me dizzy a while ago but now is ok.
Thanks,
thisisgerald
You're welcome.
@TMS
Sir, another question. How about if there will be their own calendar for the computation? How can i compute the output base on their monthly calendar?
Please see the attached file for the details.
Thanks in advance!
I think it's time for a new thread. New question, new thread ... link back to this thread to provide background information if you feel it is appropriate.
A new thread will get more input, particularly as this thread is already marked solved.
Regards, TMS
Ok. Thanks! :D
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks