Amend formula

Geo Jul

Board Regular
Joined
Nov 19, 2022
Messages
125
Office Version
  1. 2016
Platform
  1. Windows
Dear All
How do I amend the formula when I copy down to show only February?
=IF(ROWS(A$6:A6)>DAY(EOMONTH($C$5,0)),"",WORKDAY.INTL(C5,1,"0000110"))
Thank you in advance for your help
 

Attachments

  • Screenshot (909).png
    Screenshot (909).png
    8.2 KB · Views: 10

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
What range have you shown in your image?
What is in C5, C6, C7 etc?

BTW, I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with. We could then also see rows, columns, formulas etc.
 
Upvote 0
What range have you shown in your image?
What is in C5, C6, C7 etc?

BTW, I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with. We could then also see rows, columns, formulas etc.
Thank you; it has been resolved.
 
Upvote 0
Thank you; it has been resolved.
Do you really only want dates for February? What if C5 was 1 March?
What about this for any month, and no need to copy down.

23 11 09.xlsm
C
51/02/2023
62/02/2023
75/02/2023
86/02/2023
97/02/2023
108/02/2023
119/02/2023
1212/02/2023
1313/02/2023
1414/02/2023
1515/02/2023
1616/02/2023
1719/02/2023
1820/02/2023
1921/02/2023
2022/02/2023
2123/02/2023
2226/02/2023
2327/02/2023
2428/02/2023
25
Workdays
Cell Formulas
RangeFormula
C6:C24C6=LET(d,WORKDAY.INTL(C5,SEQUENCE(30),7),FILTER(d,MONTH(d)=MONTH(C5)))
Dynamic array formulas.
 
Upvote 0
Do you really only want dates for February? What if C5 was 1 March?
What about this for any month, and no need to copy down.

23 11 09.xlsm
C
51/02/2023
62/02/2023
75/02/2023
86/02/2023
97/02/2023
108/02/2023
119/02/2023
1212/02/2023
1313/02/2023
1414/02/2023
1515/02/2023
1616/02/2023
1719/02/2023
1820/02/2023
1921/02/2023
2022/02/2023
2123/02/2023
2226/02/2023
2327/02/2023
2428/02/2023
25
Workdays
Cell Formulas
RangeFormula
C6:C24C6=LET(d,WORKDAY.INTL(C5,SEQUENCE(30),7),FILTER(d,MONTH(d)=MONTH(C5)))
Dynamic array formulas.
First thank you very much respones and your great formula yes this is what i need
but I am using 365 Excel, but in our office, some are still using 2016. Is it possible? to modify your formula to be used in excel 2016
 
Upvote 0
Is it possible? to modify your formula to be used in excel 2016
It would need to be one that is copied down, but this should work for any month.

Cell Formulas
RangeFormula
C6:C28C6=IF(C5="","",IF(MONTH(WORKDAY.INTL(C5,1,7))<>MONTH(C$5),"",WORKDAY.INTL(C5,1,7)))
 
Upvote 0
Solution
It would need to be one that is copied down, but this should work for any month.

Cell Formulas
RangeFormula
C6:C28C6=IF(C5="","",IF(MONTH(WORKDAY.INTL(C5,1,7))<>MONTH(C$5),"",WORKDAY.INTL(C5,1,7)))
again, many thanks Your formula is very helpful.
regards
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,459
Messages
6,124,945
Members
449,198
Latest member
MhammadishaqKhan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top