Calculate Max / Min Help Please!

nebrahimjee

New Member
Joined
Mar 6, 2014
Messages
1
Hi. I have a temperature mapping system at work and every day i get exported to excel a spreadsheet that logs temperatures twice a minute.
By the end of a week i have several thousand rows that look like this:

08/01/2014 03:3815.6
08/01/2014 03:3815.5
08/01/2014 03:3915.6
08/01/2014 03:3915.5
08/01/2014 03:4015.6


<colgroup><col><col></colgroup><tbody>
</tbody>


And so on.... In column A is that Date/Time, and Column B has the temperatures. Now i need to work out the daily maximum and minimums.
At the moment I copy all one days logs into another spreadsheet then just sort by column B, and write down the top and bottom temperatures.
This sucks, and takes too long. I have 6 spreadsheets of data (different thermometers) and i have about 3months of data on each spreadsheet that now needs to be processed!

Any help would be greatly appreciated. I do not understand much about Visual Basic code, so hopefully i can get a real easy simple solution!
Thanks 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"
I think this might work better:

Create a table to track all daily min and max values together and then add the formulas as shown below (this way all your data is together if you need to refer back).

DEF
1DateMinMax
208/01/14=min(if($A$2:$A$1000=D2,$B$2:$B$1000))=max(if($A$2:$A$1000=D2,$B$2:$B$1000))

<tbody>
</tbody>

You will need to hit Ctrl+Shift+Enter when entering the formulas as it is an array formula.

I'm assuming that $A$2:$A$1000 are where all of the dates are located and $B$2:$B$1000 are where the temperatures are located (you can of course change the row references and it will still work). As you enter the data you can copy down using Ctrl+D in E3 and F3, and forever after. Hope that helps!
 
Upvote 0
Maybe this:

Code:
Use Ctrl+Shift+Enter and not only Enter to enter the formula

=MAX(IF($D2=INT($A$2:$A$44540),$B$2:$B$44540))

=MIN(IF($D2=INT($A$2:$A$44540),$B$2:$B$44540))

Markmzz
 
Upvote 0
Maybe this:

Code:
Use Ctrl+Shift+Enter and not only Enter to enter the formula

=MAX(IF($D2=INT($A$2:$A$44540),$B$2:$B$44540))

=MIN(IF($D2=INT($A$2:$A$44540),$B$2:$B$44540))

Markmzz

Won't this will round the value down and create less accurate results?
 
Upvote 0
Now i need to work out the daily maximum and minimums.


Won't this will round the value down and create less accurate results?

We need to calc the daily maximum and minimums (look at the quote above). So we need integers numbers for the date (column A). Look at this:

Date/TimeTempDateMaxMin
08/01/2014 03:3868,108/01/201488,0013,90
08/01/2014 03:3834,509/01/201489,8011,20
08/01/2014 03:3962,910/01/201488,5011,10
08/01/2014 03:3959,611/01/201488,5010,40

<tbody>
</tbody>


Markmzz
 
Upvote 0
02/03/2014 00:00
01/03/2014 01:34303/03/2014 00:00
01/03/2014 03:584
01/03/2014 06:229
01/03/2014 08:466
01/03/2014 11:107###############
01/03/2014 13:348this1102/03/2014 01:3413
01/03/2014 15:589approach1202/03/2014 03:5814
01/03/2014 18:2210pulls1302/03/2014 06:2215
01/03/2014 20:4611out1402/03/2014 08:469
01/03/2014 23:109all1502/03/2014 11:1017
02/03/2014 01:3413date_times1602/03/2014 13:3418
02/03/2014 03:5814between1702/03/2014 15:5819
02/03/2014 06:2215the1802/03/2014 18:2220
02/03/2014 08:469date_times1902/03/2014 20:4621
02/03/2014 11:1017in2002/03/2014 23:1012
02/03/2014 13:3418j2 and j321
02/03/2014 15:581922
02/03/2014 18:222023
02/03/2014 20:462124
02/03/2014 23:101225
03/03/2014 01:342326
03/03/2014 03:582427
03/03/2014 06:222528
03/03/2014 08:462629
03/03/2014 11:102730
03/03/2014 13:342831
03/03/2014 15:582932
03/03/2014 18:223033
03/03/2014 20:463134
03/03/2014 23:1032
04/03/2014 01:3433
04/03/2014 03:5834
04/03/2014 06:2235
04/03/2014 08:4636
04/03/2014 11:1037
04/03/2014 13:3438MIN9
04/03/2014 15:5839MAX21
04/03/2014 18:2240
04/03/2014 20:4641
04/03/2014 23:1042
05/03/2014 01:3443formula in cell marked #########
05/03/2014 03:5844=IF(OFFSET($B$2,H8,0)>$J$2,IF(OFFSET($B$2,H8,0)<$J$3,OFFSET($B$2,H8,0),""),"")
05/03/2014 06:2245
05/03/2014 08:4646

<colgroup><col><col><col span="5"><col><col><col><col span="4"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,852
Members
449,096
Latest member
Erald

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