Hi Kindly Advise me a solution.
I am able to get the Months count between 2 dates using "=Datedif(Startdate,Enddate,"m")
but I also need the names of the months & year in between 2 dates, like below pic, yellow highlighted is my requirement.
Hi Kindly Advise me a solution.
I am able to get the Months count between 2 dates using "=Datedif(Startdate,Enddate,"m")
but I also need the names of the months & year in between 2 dates, like below pic, yellow highlighted is my requirement.
Do you want a VBA solution?
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.
This may help....non-VBA.
https://www.mrexcel.com/forum/excel-...two-dates.html
Yes I Need VBA solution pls
Try to work on this code. Edit some part so you can customized it to your project.Please Login or Register to view this content.
UDF
Use in cell like
=IFERROR(Months(A$1,A$2,ROW(A1)-1),"")
format the cell "mmm-yy" and copy down
Where;
A$1 = Starting date cell
A$2 = Ending Date cell
ROW(A1)-1 should not be touched.
Please Login or Register to view this content.
Wow Both Tricks worked fantastic , Thank you jindon & oluapseyer
You are welcome.
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
you're welcome...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks