MrExcel's Learn Excel #752 - Truncating to Date

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Feb 5, 2009.
In today's podcast, we take a look at breaking Romas' date/time column into a date column using the INT function. Episode 752 shows you how.

This blog is the video podcast companion to the book, Learn Excel 97-2007 from MrExcel. Download a new two minute video every workday to learn one of the 377 tips from the book!
maxresdefault.jpg


Transcript of the video:
Hey. Welcome back to the MrExcel netcast. I’m Bill Jelen.
Yesterday, we talked about this data set.
It has date and time in column A and energy usage in column B.
We wanted to summarize that by day and, yesterday, I used a pivot table in Excel 2007.
Now, you know, most of the time, I'm doing the podcast in 2003.
This doesn't work in 2003 because I have so many items.
35,000 items is more than the limit.
Back in Excel 2003, we couldn't have more than 32,000 items in any one field of a pivot table.
So, what I'm going to do here is I'm going to insert a new column and I'm going to call it the DATE column.
Now, if our dates over there in column A are truly stored as date and time, then it's going to be very simple.
We’re going to use the =INT function.
INT is basically I’m going to chop off the time portion of that.
So, we can format that cell, choose, for example, just the first date format, copy it down, and we've actually now converted those dates and times into very simple days.
We’ll allow that to calculate, copy and paste special values, and then it's just a matter of building a little summary table over here.
So, 9/1/2006, we'll grab the fill handle and copy this down.
I think our data goes somewhere into 2008, far enough, and we can use the SUMIF.
=SUMIF.
We'll take a look at this range here in column B.
If it's = to that particular day, then we want to sum up the corresponding cell from the range in column C, copy that down, and we'll have our summary table.
[ =SUMIF($B$2:$B$35000,F3,$C$2:$C$35000) ] Now, this becomes more difficult if that data over there in column A is not actually stored as [ unintelligible – 01:52 ] but instead is stored is text.
We'll take a look at how to solve that in tomorrow's podcast.
Thanks for stopping by.
We'll see you next time for another netcast from MrExcel.
 

Forum statistics

Threads
1,214,972
Messages
6,122,530
Members
449,088
Latest member
RandomExceller01

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