Saturday, 31 August 2019
Friday, 30 August 2019
Upper Function in Excel
If you have written a message in lowercase letters and you want to change it to uppercase letters, then Upper function is for you. Upper function in excel converts the text in Uppercase.
Proper function in Excel
Proper function Converts all characters in a supplied text string to the proper case. A proper case means a letter that does not follow another letter is the upper case and all other characters are lower case.
Example
I am using MS excel 2016 -> Not a proper case
I Am Using Ms Excel 2016 -> A proper case
Syntax of Proper Function is
=PROPER(Text)
By using Proper finction you can capitalize each word of the string. The number and special characters are not affected.
Lower Function in Excel
If you have written a message in uppercase letters and you want to change it to lowercase letters, then lower function for you. Lower function in excel converts the text in lowercase.
Syntax of Lower Function is
=LOWER(Text)
Thursday, 29 August 2019
Trim Function in Excel
Trim is a very useful Build-in function in excel. The trim function removes all spaces from a text string except for a single space between two words. The trim function removes all the extra spaces from the text string.
Syntax of the Trim Function is
TRIM(text)
In the above example, I have entered 4 types of data.
1 Space Place at the starting of the string.
2 Two spaces between the words.
3 Space place at the end of the string.
4 Many spaces between two words.
I used the =TRIM(A1) function in Column B and you can see that the result of all the four cells is the same.
The Trim function removes all extra space from anywhere of the string.
Wednesday, 28 August 2019
Named Ranges in Excel
Hello Friends,
Today I am going to share with you about a topic that many people avoid using it. Named ranges are one of these old features in Excel that few users understand. New users may find very difficult to understand and even old hands may avoid them because they seem pointless and complex.
Actually, it is very beautiful features of excel and easy to understand. It is a tool that helps to create your formula very shorter and reusable.
What is Named Range?
If you are asked to go to that place by giving graphical position details instead of the name of a location, then you may never reach. The name matters a lot in our life, in the same way, that Excel has given the option to name the range.
Named Range is the human-readable name of the range of cells in excel. This name can be widely used to create the formula.
Creating a Named Range
To create a Named range of range of data, you just select the range of cells you want to add in the Named range, type the name in the Name box. In my example, I select the range of cells (A1: A7) and type a name as "Numset".
You can create a named range by using the option "Define Name" in the Formula tab.
Type the name and select the range in the "Refers to:" and click on ok. Named Range created.
Update the Named Ranges
To update like Edit/Remove the existing Named Range go to formula tab click on "Name Manager"
Now you can select the Named ranges by clicking on it, you can edit or remove the select named ranges.
Names have rules
When creating named ranges, follow these rules:
Names must begin with a letter, an underscore (_), or a backslash (\)
Names can't contain spaces and most punctuation characters.
Names can't conflict with cell references – you can't name a range "A1" or "Z100".
Single letters are OK for names ("a", "b", "c", etc.), but the letters "r" and "c" are reserved.
Names are not case-sensitive – "home", "HOME", and "HoMe" are all the same to Excel.
Named Constant
This is another good feature of the excel that we can name a constant value. If you want to use a constant value in a different worksheet of the workbook, then you can name that constant value and use it in every sheet.
To create a Named constant click on "define name", type the name and put the constant value in "Refers to".
Click OK, Named constant created. you can see all your named ranges and constant by clicking Name Manager or using shortcut key Ctl+F3.
Today I am going to share with you about a topic that many people avoid using it. Named ranges are one of these old features in Excel that few users understand. New users may find very difficult to understand and even old hands may avoid them because they seem pointless and complex.
Actually, it is very beautiful features of excel and easy to understand. It is a tool that helps to create your formula very shorter and reusable.
What is Named Range?
If you are asked to go to that place by giving graphical position details instead of the name of a location, then you may never reach. The name matters a lot in our life, in the same way, that Excel has given the option to name the range.
Named Range is the human-readable name of the range of cells in excel. This name can be widely used to create the formula.
To create a Named range of range of data, you just select the range of cells you want to add in the Named range, type the name in the Name box. In my example, I select the range of cells (A1: A7) and type a name as "Numset".
You can create a named range by using the option "Define Name" in the Formula tab.
To update like Edit/Remove the existing Named Range go to formula tab click on "Name Manager"
When creating named ranges, follow these rules:
Names must begin with a letter, an underscore (_), or a backslash (\)
Names can't contain spaces and most punctuation characters.
Names can't conflict with cell references – you can't name a range "A1" or "Z100".
Single letters are OK for names ("a", "b", "c", etc.), but the letters "r" and "c" are reserved.
Names are not case-sensitive – "home", "HOME", and "HoMe" are all the same to Excel.
Named Constant
This is another good feature of the excel that we can name a constant value. If you want to use a constant value in a different worksheet of the workbook, then you can name that constant value and use it in every sheet.
To create a Named constant click on "define name", type the name and put the constant value in "Refers to".
Click OK, Named constant created. you can see all your named ranges and constant by clicking Name Manager or using shortcut key Ctl+F3.
Tuesday, 27 August 2019
Add Drop-down in Excel
Hello Friends
A drop-down list also known as a drop-down menu, drop menu, pull-down list, picklist is similar to a list box, that allows the user to choose one value from a list. These features provide us with a special way by which we can select the data of anyone element from the list box in a cell.
In this topic, I want to share with you how we can add a drop-down menu in the cell. It is very easy to create a drop-down list in Excel and once you understand these tricks, it will help you create a dashboard in excel.
Follow the steps to add a drop-down
1.Create/Enter a list. I have taken the list of the month in my example.
2. Select the cell where you want to enter the drop-down.
3. Click the " Data Validation" from the Data tab.
4. Data validate dialog box appears, select the list from the "Allow" drop-down menu. Choose the In-cell dropdown checkbox. Now enter the references of your data and click on OK.
5. Select the cell, now you can see the drop-down. You can select any one the data from the drop-down list.
You always have to change the reference in the source if you want to add any data to your list. If you want your drop-down list to be automatically updated if you add any data to your list. To learn the trick to create it follow the link Create Dynamic Drop-Down.
A drop-down list also known as a drop-down menu, drop menu, pull-down list, picklist is similar to a list box, that allows the user to choose one value from a list. These features provide us with a special way by which we can select the data of anyone element from the list box in a cell.
In this topic, I want to share with you how we can add a drop-down menu in the cell. It is very easy to create a drop-down list in Excel and once you understand these tricks, it will help you create a dashboard in excel.
1.Create/Enter a list. I have taken the list of the month in my example.
2. Select the cell where you want to enter the drop-down.
3. Click the " Data Validation" from the Data tab.
4. Data validate dialog box appears, select the list from the "Allow" drop-down menu. Choose the In-cell dropdown checkbox. Now enter the references of your data and click on OK.
You always have to change the reference in the source if you want to add any data to your list. If you want your drop-down list to be automatically updated if you add any data to your list. To learn the trick to create it follow the link Create Dynamic Drop-Down.
Saturday, 24 August 2019
Summation of every 3 (Quarterly) values of cells.
Hello Friends,
In this topic, I will tell you the trick/formula to the sum of every nth row and column of a range in excel.
If you know about the OFFSET function will easily understand this example. If you want to learn about the offset function, then follow the offset function.
In the above example, I have taken a monthly sales record of the items of a computer store. Now I want to make a report to find the quarterly sales of each item. To get the result I have used a formula.
To add the value of 3 different months, mention the height (1) and Width (3). By changing the value of height and width you can add as many numbers of rows/columns as you want.
Similarly, you can get the result if your monthly data in rows wise by using the formula
In this topic, I will tell you the trick/formula to the sum of every nth row and column of a range in excel.
If you know about the OFFSET function will easily understand this example. If you want to learn about the offset function, then follow the offset function.
In the above example, I have taken a monthly sales record of the items of a computer store. Now I want to make a report to find the quarterly sales of each item. To get the result I have used a formula.
=SUM(OFFSET($C6,0,(COLUMN()-COLUMN($P$6))*3, 1,3))
As we know, to calculate the first quarter, we have to add the first three months of sales. The sales data for the first three months is in the same row and 3 different columns. So in formula row is 0.To add the value of 3 different months, mention the height (1) and Width (3). By changing the value of height and width you can add as many numbers of rows/columns as you want.
Similarly, you can get the result if your monthly data in rows wise by using the formula
=SUM(OFFSET(C$3,(ROW()-ROW($H$3))*3,0,3,1))
Friday, 23 August 2019
Offset Function in Excel
Hello Friends,
The "Offset" function in excel is a powerful function. The Offset function returns a reference to a range that is given a number of rows and columns from a given reference. It is a function that returns the value of cell or range of cells which is specified by a number of rows and columns from the cell and range of cells.
Syntax of the Offset Function.
=OFFSET (reference, rows, cols, [height], [width])
Reference: Reference of cell or range of cells from where a row and column count will start.
Rows: Count the number of rows below (a positive value), above (a negative value), same row (0).
Column: Count the number of column right (a positive value), left (a negative value).
Height: It is optional. The height in rows of the returned reference.
Width: It is optional. The Width in a column of the returned reference.
Example of the OFFSET function to understand it.
In this example, I have taken monthly sales of 3 items of a computer store. Now I want to calculate the sum of the sales of all three items in the month of July.
I used a formula
A3 is the starting point from where we can calculate the number of rows and columns. The reference of the "January" value of A3 is 0 row. and 0 columns.
OFFSET(A3,6,1) returns the reference of the cell which is located at 6 rows below and 1 column right from the cell A3.
It is a very powerful function and widely used in a complex function. Here some more examples of OFFSET function.
Sum Of every 3 cells
The "Offset" function in excel is a powerful function. The Offset function returns a reference to a range that is given a number of rows and columns from a given reference. It is a function that returns the value of cell or range of cells which is specified by a number of rows and columns from the cell and range of cells.
Syntax of the Offset Function.
=OFFSET (reference, rows, cols, [height], [width])
Reference: Reference of cell or range of cells from where a row and column count will start.
Rows: Count the number of rows below (a positive value), above (a negative value), same row (0).
Column: Count the number of column right (a positive value), left (a negative value).
Height: It is optional. The height in rows of the returned reference.
Width: It is optional. The Width in a column of the returned reference.
Example of the OFFSET function to understand it.
In this example, I have taken monthly sales of 3 items of a computer store. Now I want to calculate the sum of the sales of all three items in the month of July.
I used a formula
=SUM(OFFSET(A3,6,1),OFFSET(A3,6,2),OFFSET(A3,6,3))
In the above formula, I have used the OFFSET function 3 times for the references of three different items.A3 is the starting point from where we can calculate the number of rows and columns. The reference of the "January" value of A3 is 0 row. and 0 columns.
OFFSET(A3,6,1) returns the reference of the cell which is located at 6 rows below and 1 column right from the cell A3.
It is a very powerful function and widely used in a complex function. Here some more examples of OFFSET function.
Sum Of every 3 cells
Thursday, 22 August 2019
Use Of Wildcards in Excel
Hello Friends,
In this tutorial, I will give you examples of wildcards character in Excel. Wildcards are very useful in excel.
There are only 3 Excel wildcard characters (asterisk, question mark, and tilde) and a lot can be done using these.
1. Asterisk (*): It represents any number of characters. It means "*" character represents one or more than one character. Example "IN*" could mean INDIA, INDONESIA, INOVA.
2. Question Mark (?): It represents only one character. Example "IN?" could mean INX, IND, INT.
3.Tilde (~): It is used to find the wildcard character (Asterik, Question Mark) in text. Example Suppose you want to find the word followed by *, you have to write the tilde character before the asterisk (~*text).
Examples of Asterisk:
Count the text from the data range that ends with "ard".
Count the text from the data range that starts with "mo".
Examples of Question Mark:
Count the number of text from the data range that has only 3 characters and starts with "MO".
Count the number of text from the data range that has 3 characters long.
Examples of Tilde:
Count the number of text that has "*" character.
In this tutorial, I will give you examples of wildcards character in Excel. Wildcards are very useful in excel.
There are only 3 Excel wildcard characters (asterisk, question mark, and tilde) and a lot can be done using these.
1. Asterisk (*): It represents any number of characters. It means "*" character represents one or more than one character. Example "IN*" could mean INDIA, INDONESIA, INOVA.
2. Question Mark (?): It represents only one character. Example "IN?" could mean INX, IND, INT.
3.Tilde (~): It is used to find the wildcard character (Asterik, Question Mark) in text. Example Suppose you want to find the word followed by *, you have to write the tilde character before the asterisk (~*text).
Examples of Asterisk:
Count the text from the data range that ends with "ard".
Count the text from the data range that starts with "mo".
Examples of Question Mark:
Count the number of text from the data range that has only 3 characters and starts with "MO".
Count the number of text from the data range that has 3 characters long.
Examples of Tilde:
Count the number of text that has "*" character.
Wednesday, 21 August 2019
Finding Text in Multiple Columns
Dear Friends,
Sometimes we have to search for text in multiple columns. In this topic, we will learn to search for text and if you get the text, then display "Yes" in the cell or else display "No".To get this result, I have two Excel functions which are IF() and Countif().
IF(): Tests a user-defined condition and returns one result if the condition is TRUE, and another result if the condition is FALSE.
COUNTIF(): The Excel Countif function returns the number of cells within a supplied range, that satisfy given criteria.
In my example, I have entered different sentences from column A1 to E1.
Now I want to search a text "Gardner" in column A1 to E1. The formula I am using is
Here I am using a wild card "*" to find the result that is less than exact. To know more about wildcards follow the topic use of wildcards in excel.
You can get the result by editing as per your data set range and text.
Sometimes we have to search for text in multiple columns. In this topic, we will learn to search for text and if you get the text, then display "Yes" in the cell or else display "No".To get this result, I have two Excel functions which are IF() and Countif().
IF(): Tests a user-defined condition and returns one result if the condition is TRUE, and another result if the condition is FALSE.
COUNTIF(): The Excel Countif function returns the number of cells within a supplied range, that satisfy given criteria.
In my example, I have entered different sentences from column A1 to E1.
Now I want to search a text "Gardner" in column A1 to E1. The formula I am using is
=IF(COUNTIF(A1:E1,"*Gardner")>0,"Yes","No")
Here I am using a wild card "*" to find the result that is less than exact. To know more about wildcards follow the topic use of wildcards in excel.
You can get the result by editing as per your data set range and text.
Tuesday, 20 August 2019
Reverse Order of Columns and Rows in Excel
Hello Friends,
We often get such a situation when we have to reverse the content of the columns or rows. I have created a formula for it that can save your lot of copy-paste time.
I have entered the name of the day in column A (A1 to A7, the entry must be non-blank) in my example. Put the following formula in any cell and drag down as far as you need (you'll get a zero when there are no more entries).
We often get such a situation when we have to reverse the content of the columns or rows. I have created a formula for it that can save your lot of copy-paste time.
I have entered the name of the day in column A (A1 to A7, the entry must be non-blank) in my example. Put the following formula in any cell and drag down as far as you need (you'll get a zero when there are no more entries).
Similarly, we can reverse the ROW data by using the following formula (data enter in row 1)
=(INDEX(A:A,COUNTA(A:A)-ROW(A1)+1)
You can edit the formula by changing the column and row number. Some Screenshots are posted below.=INDEX(1:1,COUNTA(1:1)-COLUMN(A1)+1)
Monday, 19 August 2019
Conditional Formatting Example with Formula
Dear Friends,
Today I have introduced a great example of Conditional Formatting.
In my example, I have taken two Column, one of which has a date and the availability of items in the 2nd column. I want to search and format the date row and availability row that comes just after today's date and its availability is 0.
1. Open Microsoft Excel.
2. The header in Column A is Date and column B is Availability and fill the data
3. Enter Current Date in E2.
4. Now, Select the data A2 to B18, Click the Conditional Formatting in HOME TAB.
Click on New Rule.
in the "Format values where this formula is true" boxToday I have introduced a great example of Conditional Formatting.
In my example, I have taken two Column, one of which has a date and the availability of items in the 2nd column. I want to search and format the date row and availability row that comes just after today's date and its availability is 0.
1. Open Microsoft Excel.
2. The header in Column A is Date and column B is Availability and fill the data
3. Enter Current Date in E2.
4. Now, Select the data A2 to B18, Click the Conditional Formatting in HOME TAB.
Click on New Rule.
New Formatting Rule dialogue box will appear, click "Use a formula to determine which cells to format" and Paste the formula
=AND($A2=MIN(IF($A$2:$A$18>=$E$2,IF($B$2:$B$18=0,$A$2:$A$18))),$A2<>"")
.
5. Click on Format button. Click on fill tab and select the color and click on OK.
Here is result output Screen (I have chosen blue color).
You can change the Current date manually and formatting will change automatically.
Wednesday, 14 August 2019
Reverse The String In Excel
Hello Friends,
If you want to display a string (cell string) in a reverse way, here I have a trick for you.
VBA code for reverse a string.
If you want to display a string (cell string) in a reverse way, here I have a trick for you.
VBA code for reverse a string.
- Open the Microsoft Visual Basic Application.
- Click Insert>Module.
- Write the following Code.
Writing this code save and close the Microsoft Visual Basic Window.
Now, You can call this "ReverseString" function in any cell on same worksheet. Some Screenshot is for your references.
Remove Any Number of Characters From String In Excel
If you want to remove any number of characters from string in excel (Cell String) at a time, here I have a trick for you.
To get the desired result you have to write VBA code.
- Open the Microsoft Visual Basic Application.
- Click Insert>Module.
- Write the following Code.
Function RemoveSpecial(str As String) As String
Dim spchar As String
Dim i As Integer
spchar = "/* -#$9"
For i = 1 To Len(spchar)
str = Replace(str, Mid(spchar, i, 1), "")
Next
RemoveSpecial = str
End Function
Save and close the Microsoft Visual Basic Application Window.
In the above Code only (/,*,-,#,$,9) are removed from the string. You can add or delete character from the statement "spchar = "/* -#$9" " as per your requirement.
Now, You can call this "RemoveSpecial" function in any cell on same worksheet.
Subscribe to:
Posts (Atom)