简体   繁体   中英

how can I set the first week of april for this excel formula? =WEEKNUM(A1)

How can I set the first day and week of April for this excel formula? =WEEKNUM(A1) Because =WEEKNUM(A1) only works for January 1 or the first week of January.

Because our company Financial/Fiscal Year starts on April 1st. I need to get the week number of each day in a year and it's corresponding WEEKNUMBER, but the First day should be April 1 and not January 1. I will use this on my Time Dimension worksheet that I will import through ETL(SSIS)

Thanks and Regards,

Beau

通过从中减去一月、二月和三月的天数来转换 A1 日期(这当然取决于闰年的年份):

=WEEKNUM(A1-(1 + DATE(YEAR(A1),3,31)-DATE(YEAR(A1),1,1)))

I hope this works for someone. I had the same issue.

=IF((WEEKNUM(D4,16)-13)<=0,(WEEKNUM(D4,16)-13)+53,WEEKNUM(D4,16)-13)

"D4" is the current date

"16" is the day your fiscal year starts

The "-13" is the amount of weeks from 1/1/year to the first week that your fiscal year starts

试试这个

=WEEKNUM(DATEDIF("4/1/2018",TODAY()-1,"D"))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM