I need to pull out high and low temps based on (weird) date, any help please?

Anthrobones

New Member
Joined
Nov 18, 2011
Messages
2
Hey guys! I'm working on my thesis, and I have a lot of files with the following data type:


Date Time, GMT-04:00 Temp, °F
8/3/2011 17:40, 75.832
8/3/2011 18:40, 73.062
8/3/2011 19:40, 71.168
8/3/2011 20:40, 68.934

and I just need to pull out the highs/lows per date to graph. I'm having problems cutting the times off of the date field and coming up with a way to pull out just the data I need! I've tried =MAX(IF(Date=F3, Temp, 0)) type of formula, but can't get it to work.
Ideally, my output would be:

Date, High, Low
8/3/11, 78.33, 62.45

so it can easily be graphed. I appreciate any help you can give!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi,

I think a Pivot table might be useful here.

First, to remove the times from the first column you could use 'Text to Columns'.
  • Highlight the column (excluding the header)
  • Click on Text to Columns
  • Select 'Delimited'
  • Select 'Space' as the Delimiter
  • Select the second column in the Data preview box and Choose 'Do not import column (skip)'
Now, you should have 2 columns, Dates and Temperatures.
  • Select both columns (including the headers) and insert a Pivot Table.
  • Drag the Date field into the Row Labels section.
  • Drag the Temp field into the Values section.
  • Drag the Temp field into the Values section a second time.
  • Now in the table double click the first header that says 'Sum of Temp...' and change Sum to Max
  • Double click the second header that says 'Sum of Temp...' and change Sum to Min
You should now have a list of dates in the pivot table with the corresponding Max and Min values for each date.
 
Upvote 0
Use following Array formula, as it seems to work (confirmed by CTRL + SHIFT + ENTER).
Excel Workbook
ABCDEFGH
1Date TimeGMT-04:00 TempF
28/3/20115:40:00 PM75.832DateMaxMin
38/3/20116:40:00 PM78.0628/3/201178.06268.934
48/3/20117:40:00 PM71.168
58/3/20118:40:00 PM68.934
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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