Milliseconds and Hundredths of a second

Today, we want to learn how to show a hun­dredth of a sec­ond or a mil­lisec­onds in Excel. 

Mil­lisec­onds and Hun­dredths of a second

Let’s start by writ­ing our time in a cell. Let’s assume that we want 0 min­utes, 12 sec­onds and 45 mil­lisec­onds. Let’s enter it in our cell. We can see that we have two places for min­utes and only one dig­it after it. It’s not a hun­dredth of a sec­ond, but it’s only a start­ing point. Since we’re work­ing with time, a sim­ple Increase Dec­i­mal option wont’ work here, as they’re not real num­bers. Let’s press Ctrl + 1. It will take us to the For­mat Cells win­dow. We are in the Num­ber tab, Cus­tom Cat­e­gory, where the cus­tom for­mat is mm.ss.0. We can see that the dec­i­mal part is only one 0 (Fig. 1) 

Time format
Fig. 1 Time format

Let’s add two more zeros. Three zeros is the max­i­mum num­ber of dec­i­mal places for time (Fig. 2)

Three zeros
Fig. 2 Three zeros

Now, we have more pre­cise time (Fig. 3)

Precise time
Fig. 3 Pre­cise time

We can do the same with oth­er cells. We can even add hours (Fig. 4)

Adding hours
Fig. 4 Adding hours

How­ev­er, in our case we don’t need it. Let’s test our set­ting and write 00:45.670 in the next cell, and 00:00.001 in anoth­er one. We can see that Excel is show­ing the time pre­cise­ly. Now, let’s add it all up and check if the result is also pre­cise (Fig. 5)

=SUM(C2:C5)

 Summing up
Fig. 5 Sum­ming up

Here we go, the time is pre­cise also in this case. 

https://www.youtube.com/watch?v=G21u0H03GnQ

How to add a trendline to a chart

Today, we want to learn how to add a trend­line to a chart. 

How to add a trend­line to a chart

It’s a real­ly sim­ple task. We just have to select our chart, then press the green plus sign (Chart Ele­ments) and go to the Trend­line option. We can see that there are many types of trend­lines, start­ing from Lin­ear. Let’s use it (Fig. 1)

Linear option
Fig. 1 Lin­ear option

We can see that the trend­line is of the same col­or as our columns, which we don’t want. Let’s click on our trend­line, then press Ctrl + 1. In the For­mat Tred­line win­dow, we can see that we can mod­i­fy it in many ways. Let’s click on the buck­et icon, and change its col­or (Fig. 2

 Color modification
Fig. 2 Col­or modification

Now, I can see my trend­line on the columns. When we select our trend­line once more and press Ctrl + 1 again, we can even add an equa­tion and some sta­tis­ti­cal infor­ma­tion (Fig. 3)

Statistical information
Fig. 3 Sta­tis­ti­cal information

If we don’t want it, we can press Delete. It’s impor­tant that the trend­line does­n’t work with all chart types, only the most com­mon ones, like a col­umn chart or a line chart (Fig. 4)

A line chart with a trendline
Fig. 4 A line chart with a trendline

https://www.youtube.com/watch?v=IORhT_D5e84

Switch Rows with Columns — data transposing

Today, we want to learn how to trans­pose our data, i.e. how to switch columns with rows. 

Switch Rows with Columns — data transposing 

We have two solu­tions to choose, a sta­t­ic one and a dynam­ic one. 

Let’s use the first one. We need to copy our data (1) and then right click on our tar­get cell (2). From the pop-up menu, we select the Trans­pose option (3) (Fig. 1)

Transpose option
Fig. 1 Trans­pose option

We can see that our data has been trans­posed (Fig. 2)

Fig. 2 Trans­posed data

Now, let’s use the dynam­ic solu­tion. Here, we just use the TRANSPOSE func­tion and select the array we want to trans­pose (Fig. 3)

=TRANSPOSE(A1:B6)

TRANSPOSE function
Fig. 3 TRANSPOSE function

And we have our data trans­posed. How­ev­er, we can see here that Excel did­n’t copy the cell for­mat­ting. If we want the same for­mat­ting, we should copy it from some­where else (1) using the For­mat Painter (2) option, and use it in the tar­get place (3) (Fig. 4)

Copying the cell formatting
Fig. 4 Copy­ing the cell formatting

When we change some­thing in our orig­i­nal data, the data in the sta­t­ic solu­tion won’t change, but the func­tion will. 

In ver­sions old­er that the Dynam­ic Array Excel, we should select a prop­er range before putting the for­mu­la in a cell, then press the Ctrl + Shift + Enter com­bi­na­tion to enter it as an array formula. 


https://www.youtube.com/watch?v=sT7ShlUemPc

Rounding time to the nearest 15 minutes MROUND, FLOOR or CEILING functions

Do you want to round the work­ing time to the near­est 15 min­utes? I will show you how to do it.

Round time to near­est 15 min­utes MROUND, FLOOR or CEILING functions

We can round our work­ing time to the near­est mul­ti­ple of 15 min­utes. In most cas­es, when we round in Excel and reach the mid­dle point, we start to round up. In the case of 15 min­utes, the mid­dle point is 7.5 minute. Now, let’s start the round­ing. It’s a sim­ple task. We can just use the MROUND func­tion, write the num­ber, which in our case will be the time, and then write the mul­ti­ple as time, i.e. in dou­ble quotes. In this case, the first two dig­its cor­re­spond to hours, and the last two ones cor­re­spond to min­utes. If we need sec­onds, we just write them fur­ther (Fig. 1)

=MROUND(A2,“00:15:00”)

MROUND function
Fig. 1 MROUND function

Now, let’s check our time. In the first three exam­ples, we did­n’t reach the mid­dle point, so we go down. How­ev­er, after we pass the mid­dle point, which is shown as a thresh­old, we start round­ing up. In the last but one exam­ple, we have exact­ly the same val­ue, so we leave it just as it is. How­ev­er, in the very last exam­ple, we did­n’t reach the next mid­dle point, so we still round down (Fig. 2)

Rounding with the MROUND function
Fig. 2 Round­ing with the MROUND function

Some­times, we always want to round down. In this case, we can use the FLOOR func­tion. In the first argu­ment, we have to write the time. In the sec­ond one, which is called sig­nif­i­cance, we write the same mul­ti­ple as in the MROUND func­tion, which is time in dou­ble quotes (Fig. 3)

=FLOOR(D2,“00:15”)

FLOOR function
Fig. 3 FLOOR function

In this case, we always want to round down. It means that even when we go to halfway, we still go down. What’s more, even if we are very close to the next mul­ti­ple, like in the last but one exam­ple, we still round down. Even, when we pass the mul­ti­ple, we still round down, but this time to the next mul­ti­ple, as in the last exam­ple (Fig. 4)

Rounding with the FLOOR function
Fig. 4 Round­ing with the FLOOR function

When we want to round up, we can use the CEILING func­tion. We write the same argu­ments as in the pre­vi­ous func­tions. In this case, it’s enough if we pass the pre­vi­ous mul­ti­ple by only one sec­ond, and the round­ing will go up. More­over, when we pass the next mul­ti­ple by only a tiny bit, let’s say one hun­dredth of a sec­ond, we will go up to the next mul­ti­ple (Fig. 5)

Rounding with the CEILING function
Fig. 5 Round­ing with the CEILING function

Sum­ming up, when we use the CEILING func­tion, we always go up. When we use the FLOOR func­tion, we always go down. And when we use the MROUND func­tion, we go to the near­est mul­ti­ple. The most impor­tant is the mid­dle point. We can, of course, write any time we want in the sec­ond argu­ment of those functions.

https://www.youtube.com/watch?v=9cef0-9mkBI

How to Create A Pareto Chart 

Do you want to put a Pare­to chart in Excel? I will show you how.

How to Cre­ate A Pare­to Chart 

If you want to put a chart on which you have columns that rep­re­sent income and a line that rep­re­sents the cumu­la­tive per­cent income, fol­low me. 

From Excel 2016, you can sim­ply go to the Insert tab and choose the Pare­to chart from the His­togram com­mand (Fig. 1)

Inserting a Pareto chart
Fig. 1 Insert­ing a Pare­to chart

And you have the Pare­to chart ready. How­ev­er, the charts from Excel 2016 have some draw­backs. The line isn’t an actu­al series of the chart. It means that we can­not add data labels there. That’s why I don’t pre­fer using this type of chart. What I pre­fer is the ear­li­er ver­sion that gives me more free­dom con­cern­ing val­ue chang­ing, although it requires more cal­cu­la­tions. We have to cal­cu­late the cumu­la­tive per­cent income on our own (Fig. 2)

=SUM(B$2:$B2)/SUM($B$2:$B$9)

Cumulative percent calculations
Fig. 2 Cumu­la­tive per­cent calculations

Now, we can insert a sim­ple col­umn chart. Since the income is enor­mous­ly big­ger that the per­cent­age, we aren’t able to see the income columns at all, but we want to select them (Fig. 3). How can we do it?

No % Income columns
Fig. 3 No % Income columns

We can select our chart and go to the For­mat tab. On the left we can see all ele­ments of the chart. We are inter­est­ed in the Series “% Income” option (Fig. 4)

Series "% Income"
Fig. 4 Series “% Income”

We can see now that the series is select­ed on the chart. Let’s press Ctrl + 1 and go to For­mat Data Series, Series Options, Plot Series On, and select the Sec­ondary Axis option. Now we have % income on a dif­fer­ent axis (Fig. 5)

Secondary Axis options
Fig. 5 Sec­ondary Axis options

Now, we can change the chart type into a chart that will rep­re­sent income bet­ter. We have to click on the chart ele­ment once, then go to the Insert tab and the Line chart with Mark­ers option (Fig. 6)

Line Chart with Markers
Fig. 6 Line Chart with Markers

Since we are cre­at­ing a Pare­to chart our­selves, the val­ues aren’t sort­ed and we have to do it man­u­al­ly. We just select one cell in our data, then go to the Data tab and choose the from Z to A option (Fig. 7)

 Data sorting
Fig. 7 Data sorting

Now the data on the chart is nice­ly sort­ed and it looks more like a Pare­to chart. We still have to add mod­i­fi­ca­tions to make it a real Pare­to chart. First of all, let’s select a col­umn and press Ctrl + 1. On the right, we have the Gap Width option. Let’s slide it to 0%. Now, let’s go to the sec­ondary axis. It goes up to 120%, how­ev­er our max­i­mum is 100% (Fig. 8)

Gap Width modification
Fig. 8 Gap Width modification

We have to select the axis, press Ctrl + 1, go to Axis Options and write 1 in the Max­i­mum bar, which equals 100%. We also change our Major Units to 0.2 which means that there will be less per­cent num­bers showed on the axis (Fig. 9)

Less percent numbers
Fig. 9 Less per­cent numbers 

We still don’t need the 0 after dot in our per­cent­ages, so let’s go to Num­bers and change the For­mat Code from 0.0% to 0% and click Add (Fig. 10)

Format Code change
Fig. 10 For­mat Code change

Now, let’s go to the Income For­mat Axis. Press the axis and Ctrl + 1. Let’s change the Major from 100000 to 200000. This way the chart will show less num­bers (Fig. 11)

Less numbers
Fig. 11 Less numbers

What I care about the most right now are data labels for the line. Let’s click once on the line, click on the plus sign and we have Data Labels option. Let’s place them above our line (Fig. 12)

Data Labels
Fig. 12 Data Labels

We still need to set a prop­er title. Let’s just write Pare­to. After imple­ment­ing the most impor­tant changes, the Pare­to chart looks like that (Fig. 13)

Finished Pareto chart
Fig. 13 Fin­ished Pare­to chart

https://www.youtube.com/watch?v=wL2yeXCeL2Y