Sales - Count Weeks on Offer (Retail)

graemestown

New Member
Joined
May 10, 2019
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi

This is a retail problem.

I'm getting stuck on this one, would appreciate some help.
I need a formula that counts forward the number of weeks a style has been selling for. It must obviously only start counting from the first week a sale was recorded.
Example below.
Generally the prior weeks are recorded as blank.
Style 1 started selling for the first time in week 4, the formula then counts forward by dragging across how many weeks thereafter it sells for
Style 2 had its first week in week 8
Ideally the formula can be copied up down and sideways and will always start counting from the correct launch date

Thanks!

Week1234567891011121314151617
Style 1Sales1432335835271105926715595
Style 1Count1234567etc
Style 2Sales4771,1191,176368309238198
Style 2Count1234567etc
Style 3Sales23956058818415411999
Style 3Count1234567etc
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Try this:

Book1
ABCDEFGHIJKLMNOPQRS
1Week1234567891011121314151617
2Style 1Sales1432335835271105926715595
3Style 1Count   1234567       
4
5Style 2Sales4771,1191,176368309238198
6Style 2Count       1234567   
7
8Style 3Sales23956058818415411999
9Style 3Count1234567          
10
11
Sheet2
Cell Formulas
RangeFormula
C3:S3C3=IF(C$2="","",SUM(--ISNUMBER($C$2:C$2)))
C6:S6C6=IF(C$5="","",SUM(--ISNUMBER($C$5:C$5)))
C9:S9C9=IF(C$8="","",SUM(--ISNUMBER($C$8:C$8)))
 
Upvote 0

Forum statistics

Threads
1,217,428
Messages
6,136,569
Members
450,021
Latest member
Jlopez0320

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