Slicer for 12 hour period

c3ham

New Member
Joined
Jul 2, 2019
Messages
3
Hi

Is it possible to make slicer for 12 hour period from 6am to 6pm and 6pm to 6am? If so how would I do this

Any help would be greatly appreciated

Thank you
Craig
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hey & welcome to the forum!

Are you trying to filter a table between the hours of 6am - 6pm?

Do you have a Time column in your data?

It depends how your data is laid out, we would need to see some sample data to fully understand the request.
 
Upvote 0
Hi tyija

Yes I am trying to filter data to a shift basis, I have a plc data logging counts to a table every 15minutes. I would like to be able to slice a pivot table or chart to show the shift ie 6am to 6pm or 6pm to 6am. The data I have has date and time in the same cell example (12/01/19 14:07)
 
Upvote 0
You will want to round your time values to the appropriate 15 minute mark.
Code:
=MROUND(A2,TIME(0,15,0))-TIME(0,15,0)
or
Code:
=MROUND(A2,TIME(0,15,0))

You will also need the time mark by itself. This would be used as your slicer
Code:
=MOD(MROUND(A2,TIME(0,15,0)),1)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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