Question: Question 1 0 / 1 0 Submit Video Question Content Area Introduction When conducting analysis in Excel for business related problems, you will likely encounter
Question Submit Video Question Content Area Introduction When conducting analysis in Excel for business related problems, you will likely encounter the data type of "date" quite often. Many elements of business are tied to dates. As such, Excel has numerous functions and techniques that allow you to manipulate dates to gain the insights you need. This tutorial will help you learn more about date functions in Excel and the spreadsheet below will be your working document. Go ahead and click on the link to navigate to the spreadsheet. The first thing to understand about dates in Excel is that Excel sees every date as a number. Fundamentally, Excel assigns the number to the date January Oftentimes you will need to change the formatting of a cell to the date format so that it displays correctly, but underneath every date is a number. Let's practice and see how this works. The data has been collected in the Microsoft Excel Online file below. Open the spreadsheet and perform the required analysis to answer the questions below. NOTE: Do not copy paste dates or times directly from Excel into the fields below as errors may occur. Please type in date and time answers as text strings as they appear in Excel using your keyboard. Open spreadsheet Date Fundamentals In cells A:A you will find numbers. We would like to change those numbers into actual dates using cells B:B To accomplish this, enter A into cell B That will essentially copy A into B using a formula. Next drag down B to B to fill down. Finally, select cells B:B navigate to the Home tab, locate number formatting, and then use the down arrow to select Short Date. Now, cells B:B should be proper dates. Enter the date for B exactly as it appears in the blank below: B: fill in the blank Notice the pattern. Look at the dates in B and B and the corresponding numbers in A and A The date in B is the th of the month. Notice the date in B and the number in A Knowing that a year is approximately days, the number in A and the date in B should make sense. Fractional Dates Excel can also accept fractional dates. In cells A:A you will see numbers that have a decimal component. The decimal represents part of a day. For example, a number ending in will be halfway through the day or : PM noon. Repeat the same process as above to populate cells B:B with the same numbers as A:A Formatting B:B will be a little different. To get Excel to show the partial date in cells B:B highlight those cells, navigate to the Home tab, locate number formatting, and then use the down arrow to select More Number Formats. This opens a dialog box where you can apply custom formats. Under Date, find a format that also shows the time, eg if A contains : Cells B:B should now show the date and partial date as time of day. Enter the values shown in cells B:B exactly as they appear in the blanks below: B: fill in the blank B: fill in the blank B: fill in the blank Built in Excel Functions Two Excel date functions that are good to know are TODAY and NOW In cells E and E practice those two functions. Three important points about TODAY and NOW They do not take arguments; just open and closed parenthesis They are both "live" meaning that any time you do something in your spreadsheet they will update and change in real time. There are ways to stop this behavior but this is the default. They are both dependent on the machine you are working on to obtain their value. IMPORTANT: If you are working on a server located elsewhere or in the cloud, they may return a value you do not expect. Remember, it is based on the machine running Excel. That could be on your laptop or in the case of the cloud, halfway around the world. So just be mindful. Targeted Date Functions IMPORTNT NOTE: For the remainder of shaded cells in columns E and I, you must use the date highlighted in cell E Whenever something is asked in cols E and I always reference E Date Parts Three very helpful functions are YEAR, MONTH, and DAY. As you might expect, each returns a specific part of a date. Using E as the reference, find the YEAR, MONTH, and DAY using cells E:E Enter those values below: E: fill in the blank E: fill in the blank E: fill in the blank Useful relative dates Many deadlines in business are at the end of the month. Therefore, Excel has a function called EOMONTH that can help you find that automatically. Help with EOMONTH can be found at this link. To find the end of the month for the date in E in E insert EOMONTHE The zero tells Excel to stay in the month specified in the E date. Enter the value in E below exactly as it appears: E: fill in the blank To find the start of the month it requires a little more work. No function for "beginning of the month" exists in Excel. So to find the beginning of the month, we must go back to end of the previous month and add one day. Remember that EOMONTHE provides the end of the month for the date of interest. What about end of the month for the prior month? In cell E enter EOMONTHE What did you obtain by using instead of From there it should be obvious what to do to obtain the beginning of the month. You just need to add one more day to EOMONTHE Since Excel sees dates and numbers, just E: fill in the blank What about the start of the next month? The start of the next month is just the end of the month plus one day. You already learned how the find the end of the month in E So you just need one more day to get the beginning of next month; E: fill in the blank Next, what about the first day of the year? To obtain that, we go to the end of the current month, subtract go backwards the number of months of the current month. For example, if it was we would go to EOMONTH then back up four months. That would take us to the end of the previous year. Then add one day to get to the beginning of the current year. Using EOMONTH, E E and in cell E find the first day of the year for the date shown in E E: fill in the blank Oftentimes for calculations such as average daily revenue, we need to keep track of how many days have occurred so far in a given year. Lucky, since Excel treats dates fundamentally as numbers, dates can be added and subtracted. So to find the number of days between the beginning of the year and the date in E you can use simple subtraction. Reminder: Excel sees a date as a number beginning with on so it's just later date minus earlier date. In cell I find the number of full days that have occurred between the beginning of the year date which you already found and the date in E Enter the result of your I calculation below: I: fill in the blank While the cumulative number of days between two dates can be very useful, sometimes we would like to convert the number of days into a fraction of a year. The function to do that is YEARFRAC. It asks for a start date, end date, and a basis. For this problem use a basis of More help with YEARFRAC can be found at this link. For example, you would expect the fraction of a year between January st and February st to be approximately st of a year one month or about of the entire year. In fact, it is ; YEARFRAC Note: To have the result show as a percentage, you may need to format the cell as a percent. In cell I find the faction of the year represented between the date in E and the beginning of the year to decimal Enter the percentage below without the sign. I: fill in the blank In cell I find the fraction of the year represented between the date in E and the beginning of the month to decimal Enter the percentage below without the sign. I: fill in the blank While we have been learning about dates up to this point, nothing has shown us what day of the week a given date represents. Luckily, Excel has the WEEKDAY function to help find the name of the day. More help with WEEKDAY can be found at this link. WEEKDAY requires a date and a return type which will almost always be So WEEKDAYdate The function returns a number such as for Sunday, for Monday, etc. but not the actual day name. To obtain the day name, you will need to use the WEEKDAY function inside the TEXT function. In cell I use the function TEXTWEEKDAYdatedddd replacing date with E What this does is find the weekday number and then uses the TEXT function to convert it to day of week name, which is what dddd represents. The dddd is a formatting instruction to the TEXT function. Enter the day of the week from I below capitalize the first letter I: fill in the blank For the name of the month in cell I perform a similar process as you did for the day of the week, but instead of dddd use mmmm which as you might guess, tells the text function to format as month. In this case you do not need WEEKDAY, just TEXTdatemmmm Enter the month name from I below capitalize the first letter I: fill in the blank For various reasons, it is often helpful to know the number of actual workdays over a given period. Excel has the NETWORKDAYS function to calculate workdays. The function just takes a beginning date and an end date. For this question, use the beginning of the month and end of month in column E and place the result in I How many workdays are in the current month? Ignore any holidays and leave the "Holidays" argument blank. I: fill in the blank The WORKDAY function is similar to NETWORKDAYS, but it takes a date, the number of days ahead you would like to look, and then returns the date that falls on that many workdays in the future. Put another way, at what future date will the number of workdays you specify have happened? Help with WORKDAY function can be found at this link. Remember that workdays are different than calendar days in most cases. It's the number of nonweekend and nonholiday days before or after startdate. A positive value for days yields a future date; a negative value yields a past date. In cell I use the WORKDAY function to find the date that is workdays from the date in E Ignore any holidays and leave the "Holidays" argument blank. I: fill in the blank How many calendar days will pass before achieving a certain number of workdays? Using WORKDAY and a new function called DATEDIF we can easily find the answer; DATEDIFstartdate, enddate, D In this case the D stands for days. Find the number of days it will take to get in workdays from the date in E You have everything you need already for the DATEDIF function. In cell I find the number of days it will take to get in workdays from the date E Place your result below. I: fill in the blank Data Table Oftentimes you will receive data that is overly general. Notice in the data table that begins in row daily revenue is provided. However, your analysis calls for monthly and daily aggregation of the revenue data. In columns C and D of the data table, use the techniques you learned above to populate each row with the month and day of the week based on the date in column A In column E of the data table, note the target dollar value in cell E In column E of the data table, create an IF formula that will display TARGET if the revenue in column B is greater than or equal to the target value in E or MISS otherwise. Revenue Pivot Table In cell A in Pivot worksheet, create a pivot table based on the data table, that aggregates revenue by placing month in the columns and weekdays in the rows. Make sure Vales in the Pivot Table task pane is set to Sum of Revenue. What is the lowest sum of revenue in the pivot table? Note: Conditional formatting can help! Lowest revenue Month Day $fill in the blank What is the highest sum of revenue in the pivot table? Note: Conditional formatting can help! Highest revenue Month Day $fill in the blank Target Pivot Table Finally, it is important to know which months hit the target most often. In cell A in Pivot worksheet, create a second pivot table where months are the columns and hit target are the rows. Next to get the counts of TARGET and MISS, use hit target a second time in the Values field of the pivot table. Which month hit the target revenue most frequently? Month:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
