Date after X work days

If you want to find a date after a cer­tain num­ber of work­days, you can use the WORKDAY func­tion. You just need the start date and the num­ber of work­ing days (Fig. 1). 

Date after X work days
 WORKDAY function
Fig. 1 WORKDAY function

We can see that Excel shows the date after the cor­re­spond­ing num­ber of work­ing days. You have to remem­ber that the WORKDAY func­tion does­n’t con­sid­er the start date in its cal­cu­la­tions. It means that if you have only one work­day, you will go to the next work­ing day (Fig. 2). 

Next working day
Fig. 2 Next work­ing day

In the WORKDAY func­tion, you can even add hol­i­days by just select­ing a range with prop­er dates. Remem­ber to lock it (F4) (Fig. 3). 

Adding holidays
Fig. 3 Adding holidays

We can see that our dates are a bit changed (Fig. 4). 

Dates changed
Fig. 4 Dates changed

The WORKDAY func­tion con­sid­ers the week­end as Sat­ur­day and Sun­day, which is cor­rect in most of the coun­tries, how­ev­er we can mod­i­fy it. When we want only Sun­day to be our week­end, we have to choose the WEEKDAYS.INTL func­tion. The func­tion con­sists of the start date and the num­ber of work­ing days. The third argu­ment is the week­end, where we can change the week­end days. Let’s choose Sun­day (Fig. 5). 

Sunday as the weekend
Fig. 5 Sun­day as the weekend

Then, we are choos­ing hol­i­days by select­ing a prop­er range and lock­ing it (F4 key). Our for­mu­la is ready (Fig. 6). 

=WORKDAY.INTL(A2,B2,11,$F$2:$F$3)

Our formula
Fig. 6 Our formula

We can see that our results dif­fer from the the pre­vi­ous ones because now Sat­ur­day is our work­ing day (Fig. 7). 

Saturday as a working day
Fig. 7 Sat­ur­day as a work­ing day

Number Of Working Days Between Two Dates

When we want to count the num­ber of work­ing days between two dates we can use the NETWORKDAYS func­tion. The func­tion is very sim­ple, as it needs only the start and end dates. And that’s it (Fig. 1). 

Num­ber Of Work­ing Days Between Two Dates

=NETWORKDAYS(A2,B2)

NETWORKDAYS function
Fig. 1 NETWORKDAYS function

And we have the num­bers of work­ing days between two dates. It’s impor­tant that the NETWORKDAYS func­tion con­sid­ers also the start and end days. If the start and end days are the same, the num­ber will tell us whether the day is a work­ing day or not (Fig. 2). 

Working days
Fig. 2 Work­ing days

We can also add hol­i­days to this func­tion in the third argu­ment. We just have to select a range with prop­er dates and press the F4 key to lock it (Fig. 3).

=NETWORKDAYS(A2,B2,$F$2:$F$3)

Holidays
Fig. 3 Holidays

Now, we can see that the num­ber of days changed due to those hol­i­days (Fig. 4). 

Changed numbers
Fig. 4 Changed numbers

In the NETWORKDAYS func­tion, the week­end is con­sid­ered as Sat­ur­day and Sun­day. How­ev­er, we can mod­i­fy it by using the NETWORKDAYS.INTL func­tion. The syn­tax of those two func­tions is almost the same. Apart from the start and end day, we can choose what our week­end days will be. Let’s choose Sun­day only (Fig. 5). 

 NETWORKDAYS.INTL function
Fig. 5 NETWORKDAYS.INTL function

Then, we can add hol­i­days if we want. Let’s select the prop­er hol­i­day range and press the F4 key to lock it (Fig. 6). 

=NETWORKDAYS.INTL(A2,B2,11,$F$2:$F$3)

 Function with holidays
Fig. 6 Func­tion with holidays

And we have our results. We can see that the num­ber of work­ing days between the dates grew because Sat­ur­day is a work­ing day (Fig. 7). 

Working days without Sundays
Fig. 7 Work­ing days with­out Sundays

How to group columns and rows

Today, we are going to learn how to group columns and rows. In our exam­ple, we have month by month sales, and their sum­maries by the first quar­ter, the sec­ond quar­ter and half a year with the use of the SUBTOTAL func­tion.

How to group columns and rows
Columns
Fig. 1 Columns

Some­times, we don’t want to show low­er val­ues, i.e. val­ues from indi­vid­ual months. We can do it by hid­ing those columns (Fig. 2).

Hide option
Fig. 2 Hide option

And some­times, we want to show those val­ues (Fig. 3). 

Unhide option
Fig. 3 Unhide option

Those tasks, how­ev­er, can some­times be a bit tedious. That’s why we are going learn how to group those columns to make it sim­pler. First, you have to select the columns you want, then go to the Data tab and click on the Group com­mand. Now, we can see a line above col­umn names, which allows us to hide the columns just by click­ing on the minus sign (Fig. 4). 

Grouped columns
Fig. 4 Grouped columns

We can also unhide them by click­ing on the plus sign (Fig. 5).

Unhiding the grouped columns
Fig. 5 Unhid­ing the grouped columns

Now, the task is quite sim­ple. You can hide or unhide many columns at once. We can group even more columns this way, how­ev­er, it’s impor­tant to have a space of at least one col­umn between those groups so that Excel does­n’t com­bine those groups in one (Fig. 6). 

Groups separated by one column
Fig. 6 Groups sep­a­rat­ed by one column

When we want to ungroup our data, there is a sim­ple solu­tion. You have to go to the Data tab, expand the Ungroup com­mand, and choose the Clear Out­line option (Fig. 7). This way, Excel will clear all groups in the sheet. Usu­al­ly, it’s eas­i­er to clear all groups and start cre­at­ing new groups from the begin­ning than try­ing to fix it. 

Ungrouping data
Fig. 7 Ungroup­ing data

Due to the fact that our val­ues are com­bined from dif­fer­ent columns, we can make Excel group the val­ues for us. You just select any cell, go to the Data tab, expand the Group com­mand and choose the Auto Out­line option (Fig. 8). 

Auto Outline option
Fig. 8 Auto Out­line option

This way, Excel has cre­at­ed three groups for us. Those groups aren’t on the same lev­el because each low­er lev­el group com­bines three columns, and the upper lev­el group com­bines all the columns from the low­er groups and a few more (Fig. 9). 

Groups on different levels
Fig. 9 Groups on dif­fer­ent levels

When we click on the group lev­el num­ber, Excel will expand or col­lapse all groups in this lev­el (Fig. 10). 

Group level numbers
Fig. 10 Group lev­el numbers

Now, let’s group some rows. We don’t have any func­tion that sums up or com­bines rows, so we have to do it man­u­al­ly. We have to select the rows we want, then go to the Data tab, then the Group option (Fig. 11). 

 Row grouping
Fig. 11 Row grouping

If we select a range, not whole columns or rows and press the Group com­mand, Excel does­n’t know which ones we want to group. Then we have to select the prop­er radio but­ton (Fig. 12). 

Selecting the proper option
Fig. 12 Select­ing the prop­er option

We can also select more rows and group them by press­ing the Group option to cre­ate a group on a high­er lev­el. This group will con­sist of groups from a low­er lev­el. We can expand and col­lapse them the using also lev­el num­ber but­tons (Fig. 13). 

Row group levels
Fig. 13 Row group levels

Dynamic chart title, link chart title with a value from the cell

Today, we are going to make a sim­ple trick, i.e. link­ing the Chart Title with a val­ue from a cell. It will make the Chart Title a bit more dynam­ic. The task is sim­ple. We have to select the chart, so that it has sol­id bor­ders. We go to the Chart Title edit mode. As we can see, the Chart Title bor­ders change into a dot­ted line, which we don’t want. We have to click some­thing else on the chart, then click again on the chart title one time, so that the bor­ders stay sol­id (Fig. 1).

Dynam­ic chart title, link chart title with a val­ue from the cell
Solid borders
Fig. 1 Sol­id borders

Now, we have to click the equal sign, which will appear in the for­mu­la bar (Fig. 2).

Equal sign
Fig. 2 Equal sign

We are start­ing to write a for­mu­la for the Chart Title. We are click­ing cell A1 because we want to have ref­er­ence to this cell. Then, we are press­ing Enter to link the Chart Title to this cell (Fig. 3). 

Chart Title linked to a cell
Fig. 3 Chart Title linked to cell A1

When we change a val­ue in the cell, the Chart Title also changes (Fig. 4).

Chart Title changes
Fig. 4 Chart Title changes

This sim­ple trick works also with Axis title. We have to select the Axis title (Fig. 5). 

Selected Axis title
Fig. 5 Select­ed Axis title 

Then, write the equal sign and select a prop­er cell. In our case it’s A10. After enter­ing it, the Axis title changes (Fig. 6). 

Axis title changed
Fig. 6 Axis title changed

We can do the same with the bot­tom Axis title (Fig. 7). 

Bottom Axis title changed
Fig. 7 Bot­tom Axis title changed

That’s how you con­nect the Chart title and Axis titles to val­ues from cells. 

First day of the next month

Some­times, we want to get the first day of the next month. I will show you two solu­tions how to cal­cu­late this date in Excel. The first solu­tion uses the DATE func­tion. It needs the num­ber of days, months and years. First, we will write the num­ber of years, which we can extract­ed from the cur­rent date using the YEAR func­tion (Fig. 1).

First day of the next month

=DATE(YEAR(A2

DATE function
Fig. 1 DATE function

The same case is with the month num­ber. We are using the MONTH func­tion and extract­ing the num­ber from the date. How­ev­er, we have to remem­ber that we want to have the next month. That’s why we are adding +1. It’s impor­tant that the DATE func­tion will work with num­bers larg­er than 12. It will just go to the next year, or the pre­vi­ous one if the num­ber is low­er than zero. Then, we are putting 1 because we want the first day of the month. And just like that, we have the whole for­mu­la (Fig. 2).

=DATE(YEAR(A2),MONTH(A2)+1,1)

The whole DATE formula
Fig. 2 The whole DATE formula

After enter­ing and copy­ing it down, we have the results (Fig. 3).

DATE formula results
Fig. 3 DATE for­mu­la results

If we want to go fur­ther into the future, we just have to add more months, let’s say 3 (Fig. 4). 

=DATE(YEAR(A2),MONTH(A2)+3,1)

More into the future
Fig. 4 More into the future

We can see that the func­tion goes to next years in cer­tain dates (Fig. 5).

Next years in some dates
Fig. 5 Next years in some dates

If we want to go back in time, we have to sub­tract a num­ber, let’s write ‑3 (Fig. 6). 

=DATE(YEAR(A2),MONTH(A2)-3,1)

Going back in time
Fig. 6 Going back in time

And we are in the past. As we can see, the num­ber of years is also cal­cu­lat­ed ana­log­i­cal­ly (Fig. 7). 

In the past
Fig. 7 In the past

The sec­ond solu­tion uses the EOMONTH func­tion. We have our start­ing day and the num­ber of months we are mov­ing. Since we want to have the fist day of the next month, first, we need to go to the last day of the cur­rent month (Fig. 8). 

=EOMONTH(A2,0)

EOMONTH function
Fig. 8 EOMONTH function

And we have the last day (Fig. 9).

The last day
Fig. 9 The last day

How­ev­er, we want the day after, so we have to add 1 (Fig. 10). 

=EOMONTH(A2,0)+1

 Adding 1
Fig. 10 Adding 1

Now, we have the first days of the next months (Fig. 11). 

The first day of the next months
Fig. 11 The first day of the next months

When we want to have the first day of the month that is three months into the future, we just have to add 2 months in the sec­ond argu­ment of the EOMONTH func­tion. It’s because we will go 2 months into the future, and then we have +1 at the end, so it sums up to 3 months (Fig. 12).

=EOMONTH(A2,2)+1

3 months into the future
Fig. 12 3 months into the future

And we have prop­er dates (Fig. 13).

Proper dates
Fig. 13 Prop­er dates

Ana­log­i­cal­ly, when we want to go back in time, we need to write one month more than we real­ly want as a neg­a­tive num­ber because we are going to the last day of the month and then we are adding 1, so in total we are going back 3 months (Fig. 14). 

=EOMONTH(A2,-4)+1

3 months into the past
Fig. 14 3 months into the past

And we have the solu­tion (Fig. 15). 

Solution
Fig. 15 Solution

The results are the same, so it’s up to you which solu­tion you will choose. 

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