C cyliyu Member Oct 9, 2020 #1 I will need some help on what should be the formula to use. I want column D to auto-increment when the date in column C filled. 19 represent 2019 and 20 represent 2020. The running number will start from 0001 when the year changed. Thanks. Attachments Book1.xlsx 10.6 KB · Views: 8 Last edited: Oct 9, 2020
I will need some help on what should be the formula to use. I want column D to auto-increment when the date in column C filled. 19 represent 2019 and 20 represent 2020. The running number will start from 0001 when the year changed. Thanks.
B bosco_yip Excel Ninja Oct 9, 2020 #2 Try, In D6, formula copied down : =TEXT(C6,"ABC/RS/CAR/""""yy/")&TEXT(SUMPRODUCT(0+(YEAR(C$6:C6)=YEAR(C6))),"0000") Regards
Try, In D6, formula copied down : =TEXT(C6,"ABC/RS/CAR/""""yy/")&TEXT(SUMPRODUCT(0+(YEAR(C$6:C6)=YEAR(C6))),"0000") Regards
C cyliyu Member Oct 9, 2020 #3 The result shows A62C/R0/CAR/19/0001 A62C for year 19 and A63C for 20, RS become R0 trying to understand how your formula works. Attachments 1602241385185.png 2.1 KB · Views: 11
The result shows A62C/R0/CAR/19/0001 A62C for year 19 and A63C for 20, RS become R0 trying to understand how your formula works.
deciog Active Member Oct 9, 2020 #4 cyliyu Helping Using Bosco's solution changes this way = "ABC/RS/CAR/"&TEXT(C6,"yy /")&TEXT(SUMPRODUCT(0+(YEAR(C$6:C6)=YEAR(C6))),"0000") Decio Last edited: Oct 9, 2020
cyliyu Helping Using Bosco's solution changes this way = "ABC/RS/CAR/"&TEXT(C6,"yy /")&TEXT(SUMPRODUCT(0+(YEAR(C$6:C6)=YEAR(C6))),"0000") Decio
B bosco_yip Excel Ninja Oct 9, 2020 #6 QUOTE="cyliyu, post: 269144, member: 24854"] .......Revision : "A62C >> year 19 , A63C >> 20 and RS become R0"...... [/QUOTE] In D6, formula copied down : =TEXT(RIGHT(YEAR(C6),2)+43,"A00C\/R\0\/CAR\/")&TEXT(C6,"yy/")&TEXT(SUMPRODUCT(0+(YEAR(C$6:C6)=YEAR(C6))),"0000")
QUOTE="cyliyu, post: 269144, member: 24854"] .......Revision : "A62C >> year 19 , A63C >> 20 and RS become R0"...... [/QUOTE] In D6, formula copied down : =TEXT(RIGHT(YEAR(C6),2)+43,"A00C\/R\0\/CAR\/")&TEXT(C6,"yy/")&TEXT(SUMPRODUCT(0+(YEAR(C$6:C6)=YEAR(C6))),"0000")