Hello:
Say Cell A1=2020
I need formula in cell A5 down to give dates of Evry FRIDAY
and 1st date of the month
In Attached file, i have shown the sequence
Please let me know if you have any questions.
Thanks.
Riz
Hello:
Say Cell A1=2020
I need formula in cell A5 down to give dates of Evry FRIDAY
and 1st date of the month
In Attached file, i have shown the sequence
Please let me know if you have any questions.
Thanks.
Riz
Please attach an .xlsx file, not .xlsb. Thanks.
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.
Hello:
Attached is .xlsx file
Please let me know if you have any questions.
Thanks.
Riz
Try this in A6 copied down:
=MIN(EOMONTH(A5,0)+1,WORKDAY.INTL(A5,1,"1111011"))
You could use this in A5:
=DATE(A1,1,1)
Last edited by AliGW; 06-27-2020 at 02:11 PM.
Deleted (can't post the solution)
Last edited by oeldere; 06-27-2020 at 02:54 PM.
Notice my main language is not English.
I appreciate it, if you reply on my solution.
If you are satisfied with the solution, please mark the question solved.
You can add reputation by clicking on the star * add reputation.
We have a rather aggressive filter for HTML injection, and it often rejects benign formulas that contain a < or > sign. There are a couple of workarounds.
- Include a space after the < sign. My post was accepted just as you see it here.
- Highlight the < sign and then use the color button to color it black. It will still look the same but the filter will see the color codes around it and accept it.
e5 = 01-01-2020
e6 =E5+5-(WEEKDAY(E5,2)) since 5 is Friday
e7 =IF(MONTH(E6) < MONTH(E6+7),EOMONTH(E6,0)+1,IF(EOMONTH(E5,0)+1=(E5+7),E5+14,IF(MONTH(E6)=MONTH(E5),E6+7,E5+7))) and drag down.
Where do you this kind of structor for?
Can you explain that to me.
Why three formulae when it can be done with just two (see my solution above)?
@AliGW,
1 formula is not always better, since it could be hard to read.
In this case your solution is a lot easier than mine.
Since I had made the formula, I feel the need to post.
Great job, Ali.
Last edited by oeldere; 06-28-2020 at 01:50 AM. Reason: alway changed in always
@Ali, Very clever formula
A small adjustment from Ali's formula to 1 formula at A5
=IF(A4,MIN(EOMONTH(A4,0)+1,WORKDAY.INTL(A4,1,"1111011")),DATE($A$1,1,1))
Some nice options there, chaps.
Wonder what Riz will go for?
@Bo_Ry,
I like Ali's solution as she wrote it instead. You know only one cell will meet the FALSE part of your IF statement, and you know which cell it is, so why burden every cell that follows it with the extra IF function call when they can only meet the TRUE part of that IF function call?
Last edited by Rick Rothstein; 06-27-2020 at 04:48 PM.
Hello All;
Great solution by Ali.
Superb...
Thanks to all.
Riz
Thanks, Riz, and glad to help.
Thanks for the rep.
Glad I could help.
Thanks for marking the question solved.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks