## Saturday, November 21, 2020

### Running Total/ Cumulative Sum in Excel

Hey Guys! You should have noticed that I'm writing on MS Excel for last few days! To be honest I'm trying to learn some simple and useful tricks of Excel. And I'm also trying to share my knowledge with you. In this post I've come with such a little trick which maybe very useful if you face such situation. Let's begin . . .

Running Total/ Cumulative Sum

It means the summation of numbers in a list and it will be updated each time when a number is added or changes. Look at the image below -

Look at the image. There are two columns with numbers. The first one is simply the number list. But the 2nd one is the summation of the list. Each time a new number is added to the first column the second one shows the summation.

How to do this?

It's not a magic. Very simple sum formula is used to perform this task. But there is a little trick. You just need to lock the first cell and then every time it will update the running total list.

Here is my list. Simply type some numbers in your Excel. In my list there are 10 numbers ranging from F7 to F16. And I've used column G for running total calculation. In G7 I've used this formula -

=SUM(\$F\$7:F7)

Or this will work too  =SUM(F\$7:F7)

Why \$ sign? Yes that's the magic. In Excel \$ sign is used to lock a cell. In G7 this formula will add F7 with F7 itself. But in G8 this formula will add F7 with F8. In G9 this formula will add F7, F8 and F9.

Know why? Cause you've locked first F7 cell by putting dollar sign. But the second F7 is not fixed. When you drag the formula the first F7 cell will remain in its position and the second F7 cell will be converted to F8, F9, F10 . . . .

How do you put \$ sign

You can lock the cell manually by simply typing dollar sign. But there is a comfortable keyboard shortcut you can use. This is F4. Put your cursor in the formula. Place it before the cell number which you wanna lock. Now press F4 button to automatically put the dollar sign. Do this like -

=SUM(IF7:F7)

Look at the red sign in the above formula. Suppose it's your cursor. Take your cursor at this position and press F4. And it will lock your first F7 cell like below -

=SUM(\$F\$7:F7)

If you type manually then you don't need to put \$ before F. You can just put \$ before 7. This will do the same task.

Hopefully this will help you in your work. Feel free to contact us if you face any problem regarding this tutorial. And obviously thanks for visiting Marks PC Solution . . .

## Friday, November 06, 2020

### Joining Texts from Multiple Cells in Excel

Programs like MS Excel is full of functions. There are many useful functions that we don't use or we don't know about. One of them is CONCATENATE. It means joining or linking. With this function you can join texts from multiple cells. Let's see how . . .

Suppose you're working in an Excel Worksheet where you need to combine texts from different cells. I'm gonna show you an example. Let's consider the image below -

What do you see? I've imputed First Name and Last Name. In Full Name column I've used the formula i.e. CONCATENATE. And in the last column I've added Mr. with the full name.

So how do you use this formula? Here it is -

=CONCATENATE(A2," ",B2)

Observe it carefully. You can add more than 02 cells with this functions. Here I've just used 02 cells. You may think what is this " " for? You may notice that there is a space between the two i.e. " & ".

If you don't use " " then your full name will be like AbdurRahim. But two words should be separate. And for this weed need to put space. But in computer you should know space is a kind of character. That's why we need to put space between this quotation " " mark.

Now you have the full name in column C. If you wanna put Mr. before the full name then you can do it this way -

=CONCATENATE("Mr. ",C2)

Since we have the full name in Column C we can simply put "Mr. ",C2 within the bracket. You should notice that there is a space after Mr. so that we get the name as Mr. Abdur Rahim.

There is a problem!

You should have noticed that we've used two different columns for joining the names with Mr. But you can also do this in a single column. If you use the formula as below then you can do this task at once -

=CONCATENATE("Mr. ",A2," ",B2)

If you put the formula like this then you don't need the first two formula. Cause this one will join your names with Mr. without needing any additional column like the 2nd formula.