Having "close" equal 9 p.m.

jordan11221992

New Member
Joined
Jan 2, 2021
Messages
22
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
When making my schedule it links to my labor calculator on sheet2. Telling me labor dollars to be spent each day monday-sunday. On sheet1 I want to be able to schedule who ever is closing on monday or tuesday or any day of the week and use the word "close" instead of having to put a time in for their out time. So on monday if jake and brett are working, jakes in-time is 4 p.m. amd his out time is 8 p.m.. On sheet2 it tells me 4 for his scheduled hours on monday. Lets say bret is the closer on Monday. I want to be able to schedule his in-time for 5 p.m. and his out time say "close".. "Close" being 9 p.m. letting sheet 2 tell me 4 for bretts scheduled hours on Monday. Is this possible?
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Welcome to MrExcel Message Board.
Please upload Example file & Desired Results with XL2BB ADDIN (Preferable) or upload fit at free hosting site e.g. www.dropbox.com , GoogleDrive or OneDrive and insert link here.
 
Upvote 0
What About Macro & VBA. Are you Can work with them?
If no Problem. Try this:
VBA Code:
Sub CloseReplace()
Dim Lr As Long, Mx As Double, LC As Long, i As Long, j As Long

Lr = Cells(Rows.Count, 1).End(xlUp).Row
LC = Cells(1, Columns.Count).End(xlToLeft).Column
For j = 4 To LC Step 2
Mx = Application.WorksheetFunction.Max(Range(Cells(8, j), Cells(Lr, j)))
For i = 8 To Lr
If Cells(i, j).Value = Mx Then
Cells(i, j).Value = "Close"
End If
Next i
Next j
End Sub
 
Upvote 0

Forum statistics

Threads
1,213,562
Messages
6,114,322
Members
448,564
Latest member
ED38

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