Finding max and min in a column and using those variables as limits for a looping function

sega1

New Member
Joined
Jan 20, 2016
Messages
1
Hi Everyone,

I need some help in displaying some information. I've got data which runs from 1am till 10pm one day and then 4am till 7pm with corresponding processes which occur at each time e.g. 1 am process 5, 1am process 2, 2am process 3, 3am process 4 and so on till 10pm. I want to find a way to pull out the minimum value and maximum value of time(to get a time range) and then use these values to run a loop which uses the time range to filter a pivot table and copy paste the data generated into a hour by hour scenario. i.e. min 1 am max 10 pm so range the filter has to go through is from 1am-10pm, on the pivot table filter "1am" copy the table generated and paste in E4 and then "2am" copy the table generated and paste in F4 and then "3am" copy the table generated and paste in G4 etc..

Could any show me how to get the max and minimum range and then use those values to set up the range for a loop process to get all the data into different columns please.

Thank you in advance
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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