Recommended store closing hour?

tblackwell

New Member
Joined
Oct 24, 2018
Messages
28
Office Version
  1. 365
Platform
  1. Windows
Hi I am working on a spreadsheet that will calculate what hour a store should close based upon it's last hour or sales.

The logic works like this:
a) If a store has greater than $100 of sales in it's last hour, close one hour later.
b) If a store has less than $50 of sales in it's last hour, close one hour earlier.

I've got (a) figured out, no issues. It's (b) I am struggling with. I can get it to work for the earliest hour, but not every hour.

=IF(L5>$N$2,"2am",IF(K5>$N$2,"1am",IF(J5>$N$2,"12am",IF(I5>$N$2,"11pm",IF(H5>$N$2,"10pm",IF(H5<50,"8pm","9pm"))))))

What do I need to do to solve this puzzle? Open to all and all options!

Colomex Hourly Sales Totals_v3 - for mrexcel.xlsx
HIJKLMN
4Average of 8pm - 9pmAverage of 9pm - 10pmAverage of 10pm -11pmAverage of 11pm - 12amAverage of 12am - 1amCurrent CloseRecommended Close
5$292$190$145$58$312am12am
6$294$220$168$79$012am1am
7$395$311$177$46$011:45pm12am
8$365$306$284$70$211:45pm12am
9$185$163$124$40$012am12am
10$165$140$108$67$2012am12am
Summary
Cell Formulas
RangeFormula
N5N5=IF(L5>$N$2,"2am",IF(K5>$N$2,"1am",IF(J5>$N$2,"12am",IF(I5>$N$2,"11pm",IF(H5>$N$2,"10pm",IF(H5<50,"8pm","9pm"))))))
N6:N10N6=IF(L6>$N$2,"2am",IF(K6>$N$2,"1am",IF(J6>$N$2,"12am",IF(I6>$N$2,"11pm",IF(H6>$N$2,"10pm")))))
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
bumping this one. if i was unclear on my request, i am happy to provide clarity. thanks for your consideration!
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,913
Members
449,093
Latest member
dbomb1414

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