March 25, 2010

Combining two texts on two cells into one cell

If you have data in two cells and you would like to merge them into a cell. We can do that using CONCATENATE formula, please look into the below example,





In the above example, we have first name and last name of a person in cells A1 and B1. We merged the two names in C1 using =CONCATENATE(A1,” “,B1) formula and we had inserted a space (“ “) between two names.. The formula just merged the values exit in the two cells.

March 16, 2010

Combining two texts on two cells into one cell

If you have data in two cells and you would like to merge them into a single. We can do that using CONCATENATE formula, please look into the below example,




Extract characters from right of a text

If you would like to split some number of characters in a text from right. We can do that, please look into the below example,



In the above example, we have name of a person in A1 and in the cell C1 we have extracted the last name using =RIGHT(A1,5) formula. The formula extracts the last 5 characters from right in the cell A1.

Extract Charecters from Left of a text

If you would like to split some number of characters in a text from left. We can do that, please look into the below example,




If you would like to split some number of characters in a text from left. We can do that, please look into the below example,

March 15, 2010

Comparing two columns and finding duplicates

If you would like to compare and find duplicate of data on two columns. We can do that,



In the above examples we have name of persons in two columns. we have compared both the columns and found the common data available in both the columns.

We have used $ symbol in the formula, it is used to freeze the cell reference. If you don’t use the $ symbol the cell reference will be changed when you drag the formula to another cell.

While entering the above formula, at the time of giving reference of C1:C6 you need to press F4 key, since we have to freeze the cell references.

The formula in D1 took the name David in A1, then it would look for the same in C1 to C9 and if it is available anywhere in the specified range it will write the value for which it looked and if it is not then it would write an error message.

Drag down the formula in D1 to D2, now it will change the look up cell as A2 and it would not change the array reference I.e C1:C9 since we have freezed the reference using $ symbol.

The formula in D2 will take the name John in A2 and then it would look for the same in C1 to C9 and if it is available anywhere in the specified range it will write the value for which it looked and if it is not then it would write an error message.

Comparing two columns and finding duplicates

If you would like to compare and find duplicate of data on two columns. We can do that,

Find duplicate entry in a range of cells in excel

If you have a large data size and you would like to find and remove the duplicate entries in a range of cells. We can do that please have a look at the below example.





We have a list of names in the range of A1 to A9. We did find and counted the duplicate entries in the specified range. The formula counted the names and assigned numbers according to the number of entries for each of them.

In the above example the name John was entered four times and the name Jim was entered two times.
1. Enter the formula =COUNTIF(A1:A9,A1) in the cell B2,
2. Drag that formula down to the end of the list at the left. (I.e. from B2 to B9.)
3. Then delete the rows which are not equal to 1.

Now the list is ready for use without the duplicate entries.