Hello all,
In A1 I have Today() In A2 I wish to count the number of days in the year to date less the days in the current month
I can get the days using =A1-DATE(YEAR(A1),1,0) but I am stuck with the days??
Thanks
Kevin
Hello all,
In A1 I have Today() In A2 I wish to count the number of days in the year to date less the days in the current month
I can get the days using =A1-DATE(YEAR(A1),1,0) but I am stuck with the days??
Thanks
Kevin
just substract the days in today
Please Login or Register to view this content.
---
Hans
"IT" Always crosses your path!
May the (vba) code be with you... if it isn't; start debugging!
If you like my answer, Click the * below to say thank-you
=today()-day(today())-date(year(today()),1,1)+1
Surely this is all you need?
=MONTH(A1)&" months "&DAY(A1)&" days"
EDIT: Sorry - I misread the requirement!
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Try this:
=A1-EOMONTH(A1,-MONTH(A1))+1-DAY(A1)
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
Thanks to everyone, of the 4 solutions they all worked ish 2 where spot on 2 where a day out
Thanks
Kevin
For completeness, please tell us which two you consider a day out and why - it will help people reading this thread in future.
Sorry i should have done that
Keebellah returned 212
davsth 212
AliGW 213
Josephten 211
Thanks again
Kevin
Just change mine to this, in that case:
=A1-EOMONTH(A1,-MONTH(A1))-DAY(A1)
=sumproduct(--(b38-date(year(b38),1,1)))
AliGW Thank you
shivya your solution returns 233, not the answer i was looking for, but thanks for looking
josephteh, thank you
My formula (corrected
Please Login or Register to view this content.
Returns 209
I think your first solution returned the correct result
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks