Import the weekly file

  1. Download the FY2027 weekly CSV. In Excel, choose Data, then From Text/CSV where available, and select the file.
  2. Confirm the delimiter is a comma and that week_start, week_end, prior_week_start and prior_week_end load as dates. Use ISNUMBER on an imported date to confirm Excel stored it as a numeric date serial.
  3. Load the data as an Excel table and name it Weeks. Preserve the original fiscal year, week, period and quarter columns.

Microsoft’s instructions for CSV imports · Microsoft’s guide to Excel table references.

Find a transaction’s fiscal week

Put a real Excel date in A2 and enter the formula below in another cell. INT keeps the date if the cell also contains a time. In XLOOKUP, match mode -1 selects the nearest earlier week start for a Monday-through-Saturday transaction. The range check prevents a date after the last Saturday from matching week 52. Microsoft’s XLOOKUP reference.

=LET(saleDate,INT(A2),IF(OR(saleDate<MIN(Weeks[week_start]),saleDate>MAX(Weeks[week_end])),"Outside FY2027",XLOOKUP(saleDate,Weeks[week_start],Weeks[week],"Outside FY2027",-1)))

For November 26, 2027, the reading is week 43 because its Sunday start was November 21. Substitute Weeks[period] for Weeks[week] to return 10. January 30, 2028 returns Outside FY2027.

Total sales for each week

Name a second Excel table Sales with a date column sale_date and numeric column net_sales. Add this formula in a new column of the Weeks table. It includes the final Saturday even for imported Excel dates with a time attached. Microsoft’s SUMIFS reference.

=SUMIFS(Sales[net_sales],Sales[sale_date],">="&[@week_start],Sales[sale_date],"<"&([@week_end]+1))

For a small test, enter $100 on November 26, $50 on November 27 and $80 on November 28. The formula gives $150 for week 43 and $80 for week 44. Switch the report to prior_week_start and prior_week_end when totaling the comparison week, and treat blank prior dates as unmatched. See how to select the comparison basis.