Highest value since

mejh1984

New Member
Joined
Jul 28, 2023
Messages
4
Office Version
  1. 365
I have weekly sales data in one row, with the weekending date in the row above. When I look at last week's sales for example, I want to know how many weeks it's been since the sales were higher than last week (and preferably what week this was). Is there a formula that can tell me this?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Without sample data and expected results it is a bit hard to know exactly where you are measuring your dates/weeks from, but see if any of this might get you started.

For the future, I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

23 12 04.xlsm
ABCDEFGHIJKLMN
2WeekWeek 1Week 2Week 3Week 4Week 5Week 6Week 7Week 8Week 9Week 10Week 11Week 12Week 13
3Week Ending1/09/20238/09/202315/09/202322/09/202329/09/20236/10/202313/10/202320/10/202327/10/20233/11/202310/11/202317/11/202324/11/2023
4Sales6623372175927
5Weeks since sales higher than last weekNever234Never22Never2Never2
6Which week was the last with sales higher than last week?N/A8/09/20238/09/20238/09/2023N/A6/10/202313/10/2023N/A27/10/2023N/A10/11/2023
Sales
Cell Formulas
RangeFormula
D5:N5D5=IFERROR((D3-AGGREGATE(14,6,$B3:B3/($B4:B4>C4),1))/7,"Never")
D6:N6D6=IF(ISNUMBER(D5),D3-7*D5,"N/A")
 
Upvote 0

Forum statistics

Threads
1,215,128
Messages
6,123,206
Members
449,090
Latest member
bes000

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