Auto populate months

keef2

Board Regular
Joined
Jun 30, 2022
Messages
185
Office Version
  1. 365
Platform
  1. Windows
Hi there,

So I already auto populate months based on my choose formula in Row 2, but I was hoping someone maybe able to help me out with a different approach. Looking to show split months if that makes sense. So if a week falls within 2 months. Out put would be Nov/Dec, Jan/Feb. Otherwise if all dates are within a month would just revert to the current month if that makes sense. Any help is always appreciated, thanks in advance!

SRI Schedule Prototype.xlsx
ABCDEFIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJ
13224242416161616161624242424242432323232 32323232 404040404040404040404040404048404040404040484840
2ContractSubmittalsLabor Req.NovDecDecDecDecJanJanJanJanFeb
3Job #Job NameRoof SystemPMSuptStart DateContractor282930125678912131415161920212223262728293023456910111213161718192023242526273031123
Schedule
Cell Formulas
RangeFormula
M1:BJ1M1=IF(SUM(M4:M32)=0,"",SUM(M4:M32))
M2,R2,W2,AB2,AG2,AL2,AQ2,AV2,BA2,BF2M2=CHOOSE(MONTH(O3),"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
M3M3=WORKDAY.INTL(C35+1,-1,"0111111")
N3:BJ3N3=WORKDAY(M3,1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
M3:ADL32,M37:ADL42Expression=COUNTIFS(Holidays!$F$3:$F$68,M$3)textNO
I1,I4:I32,I35:I1048576Expression=AND(NOT(ISBLANK($A1)),$I1="N")textNO
I1,I4:I32,I35:I1048576Expression=AND(NOT(ISBLANK($A1)),$I1="Y")textNO
J1,J35:J1048576,J4:J32Expression=AND(NOT(ISBLANK($A1)),$J1="S")textNO
J1,J35:J1048576,J4:J32Expression=AND(NOT(ISBLANK($A1)),$J1="NS")textNO
J1,J35:J1048576,J4:J32Expression=AND(NOT(ISBLANK($A1)),$J1="A")textNO
I2Expression=AND(NOT(ISBLANK($A3)),$I2="N")textNO
I2Expression=AND(NOT(ISBLANK($A3)),$I2="Y")textNO
J2Expression=AND(NOT(ISBLANK($A3)),$J2="S")textNO
J2Expression=AND(NOT(ISBLANK($A3)),$J2="NS")textNO
J2Expression=AND(NOT(ISBLANK($A3)),$J2="A")textNO
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Please try this formula in M2
=IF(MONTH(M3)<>MONTH(Q3),TEXT(M3,"mmm")&"/"&TEXT(Q3,"mmm"),TEXT(M3,"mmm"))
 
Upvote 0
Solution
Please try this formula in M2
=IF(MONTH(M3)<>MONTH(Q3),TEXT(M3,"mmm")&"/"&TEXT(Q3,"mmm"),TEXT(M3,"mmm"))
works like a charm! thank you much! never would have thought to do that.

SRI Schedule Prototype.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJ
1Duration2424242416161616161632241624242424323232 32323232 404040404040404040404040404048484040404040484840
2ContractSubmittalsLabor Req.Nov / DecDecDecDecDecJanJanJanJanJan / Feb
3Job #Job NameRoof SystemPMSuptStart DateEnd DateContractor282930125678912131415161920212223262728293023456910111213161718192023242526273031123
4Javier Rodriguez                                                  
Roofing Schedule
Cell Formulas
RangeFormula
M1:BJ1M1=IF(SUM(M4:M32)=0,"",SUM(M4:M32))
M2,R2,W2,AB2,AG2,AL2,AQ2,AV2,BA2,BF2M2=IF(MONTH(M3)<>MONTH(Q3),TEXT(M3,"mmm")&" / "&TEXT(Q3,"mmm"),TEXT(M3,"mmm"))
N2:Q2,S2:V2,X2:AA2,AC2:AF2,AH2:AK2,AM2:AP2,AR2:AU2,AW2:AZ2,BB2:BE2,BG2:BJ2N2=IF(MONTH(U3)<>MONTH(Y3),TEXT(U3,"mmm")&"/"&TEXT(Y3,"mmm"),TEXT(U3,"mmm"))
M3M3=WORKDAY.INTL(C35+1,-1,"0111111")
N3:BJ3N3=WORKDAY(M3,1)
M4:BJ4M4=IF($G4="","",IF(AND(M$3>=$F4,NOT(COUNTIFS(Holidays!$F$3:$F$51,M$3)),M$3<=$G4),8,""))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H4:H32,H35:H63Expression=AND(NOT(ISBLANK($F4)),ISBLANK($H4))textNO
M4:ADL32,M37:ADL42Expression=M$3=TODAY()textNO
M3:ADL32,M37:ADL42Expression=COUNTIFS(Holidays!$F$3:$F$68,M$3)textNO
A33:D34,L33:XFD34,F33:H34,37:62,4:32Expression=AND(NOT(ISBLANK($B4)),ISBLANK($A4))textNO
I1,I4:I32,I35:I1048576Expression=AND(NOT(ISBLANK($A1)),$I1="N")textNO
I1,I4:I32,I35:I1048576Expression=AND(NOT(ISBLANK($A1)),$I1="Y")textNO
J1,J4:J32,J35:J1048576Expression=AND(NOT(ISBLANK($A1)),$J1="S")textNO
J1,J4:J32,J35:J1048576Expression=AND(NOT(ISBLANK($A1)),$J1="NS")textNO
J1,J4:J32,J35:J1048576Expression=AND(NOT(ISBLANK($A1)),$J1="A")textNO
I2Expression=AND(NOT(ISBLANK($A3)),$I2="N")textNO
I2Expression=AND(NOT(ISBLANK($A3)),$I2="Y")textNO
J2Expression=AND(NOT(ISBLANK($A3)),$J2="S")textNO
J2Expression=AND(NOT(ISBLANK($A3)),$J2="NS")textNO
J2Expression=AND(NOT(ISBLANK($A3)),$J2="A")textNO
Cells with Data Validation
CellAllowCriteria
I4:I32List=Holidays!$I$2:$I$3
J4:J32List=Holidays!$J$2:$J$4
 
Upvote 0

Forum statistics

Threads
1,223,098
Messages
6,170,103
Members
452,302
Latest member
TaMere

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