Enter the terms you wish to search for.
Lesson 2: Entering Excel Formulas and Formatting Data Lesson 1 familiarized you with the Excel 2007 window, taught you how to move around the window, and how to enter data. A major strength of Excel is that you can perform mathematical calculations and format your data. In this lesson, you learn how to perform basic mathematical calculations and how to format text and numerical data. To start this lesson, open Excel. Set the Enter Key Direction In Microsoft Excel, you can specify the direction the cursor moves when you press the Enter key. In the exercises that follow, the cursor must move down one cell when you press Enter. You can use the Direction box in the Excel Options pane to set the cursor to move up, down, left, right, or not at all.
Perform the steps that follow to set the cursor to move down when you press the Enter key. Click the Microsoft Office button. A menu appears. Click Excel Options in the lower-right corner. The Excel Options pane appears.
Click Advanced. If the check box next to After Pressing Enter Move Selection is not checked, click the box to check it. If Down does not appear in the Direction box, click the down arrow next to the Direction box and then click Down. Excel sets the Enter direction to down. Perform Mathematical Calculations.
In Microsoft Excel, you can enter numbers and mathematical formulas into cells. Whether you enter a number or a formula, you can reference the cell when you perform mathematical calculations such as addition, subtraction, multiplication, or division. When entering a mathematical formula, precede the formula with an equal sign. Use the following to indicate the type of calculation you wish to perform: + Addition - Subtraction. Multiplication / Division ^ Exponential In the following exercises, you practice some of the methods you can use to move around a worksheet and you learn how to perform mathematical calculations.
Refer to Lesson 1 to learn more about moving around a worksheet. EXERCISE 1 Addition. Type Add in cell A1. Press Enter.
Excel moves down one cell. Type 1 in cell A2. Press Enter. Excel moves down one cell. Type 1 in cell A3.
Press Enter. Excel moves down one cell. Type =A2+A3 in cell A4.
Click the check mark on the Formula bar. Excel adds cell A1 to cell A2 and displays the result in cell A4. The formula displays on the Formula bar. Note: Clicking the check mark on the Formula bar is similar to pressing Enter.
Excel records your entry but does not move to the next cell. Subtraction. Press F5. The Go To dialog box appears. Type B1 in the Reference field. Press Enter. Excel moves to cell B1.
Type Subtract. Press Enter. Excel moves down one cell. Type 6 in cell B2.
Press Enter. Excel moves down one cell. Type 3 in cell B3. Press Enter. Excel moves down one cell. Type =B2-B3 in cell B4.
Click the check mark on the Formula bar. Excel subtracts cell B3 from cell B2 and the result displays in cell B4. The formula displays on the Formula bar. Multiplication. Hold down the Ctrl key while you press 'g' (Ctrl+g). The Go To dialog box appears.
Type C1 in the Reference field. Press Enter. Excel moves to cell C1.
Type Multiply. Press Enter.
Excel moves down one cell. Type 2 in cell C2. Press Enter.
Excel moves down one cell. Type 3 in cell C3.
Press Enter. Excel moves down one cell. Type =C2.C3 in cell C4. Click the check mark on the Formula bar. Excel multiplies C1 by cell C2 and displays the result in cell C3.
The formula displays on the Formula bar. Division. Press F5.
Type D1 in the Reference field. Press Enter. Excel moves to cell D1. Type Divide. Press Enter. Excel moves down one cell. Type 6 in cell D2.
Press Enter. Excel moves down one cell.
Type 3 in cell D3. Press Enter. Excel moves down one cell. Type =D2/D3 in cell D4. Click the check mark on the Formula bar.
Excel divides cell D2 by cell D3 and displays the result in cell D4. The formula displays on the Formula bar. When creating formulas, you can reference cells and include numbers. All of the following formulas are valid: =A2/B2 =A1+12-B3 =A2.B2+12 =24+53 AutoSum You can use the AutoSum button on the Home tab to automatically add a column or row of numbers.
When you press the AutoSum button, Excel selects the numbers it thinks you want to add. If you then click the check mark on the Formula bar or press the Enter key, Excel adds the numbers. If Excel's guess as to which numbers you want to add is wrong, you can select the cells you want. EXERCISE 2 AutoSum The following illustrates AutoSum:. Go to cell F1. Press Enter. Excel moves down one cell.
Press Enter. Excel moves down one cell. Press Enter. Excel moves down one cell to cell F4.
Choose the Home tab. Click the AutoSum button in the Editing group. Excel selects cells F1 through F3 and enters a formula in cell F4. Press Enter. Excel adds cells F1 through F3 and displays the result in cell F4.
Perform Automatic Calculations By default, Microsoft Excel recalculates the worksheet as you change cell entries. This makes it easy for you to correct mistakes and analyze a variety of scenarios. EXERCISE 3 Automatic Calculation Make the changes described below and note how Microsoft Excel automatically recalculates. Move to cell A2. Press the right arrow key. Excel changes the result in cell A4. Excel adds cell A2 to cell A3 and the new result appears in cell A4.
Move to cell B2. Press the right arrow key. Excel subtracts cell B3 from cell B3 and the new result appears in cell B4. Move to cell C2.
Press the right arrow key. Excel multiplies cell C2 by cell C3 and the new result appears in cell C4. Move to cell D2. Press the Enter key. Excel divides cell D2 by cell D3 and the new result appears in cell D4. Align Cell Entries When you type text into a cell, by default your entry aligns with the left side of the cell.
When you type numbers into a cell, by default your entry aligns with the right side of the cell. You can change the cell alignment. You can center, left-align, or right-align any cell entry.
Look at cells A1 to D1. Note that they are aligned with the left side of the cell. EXERCISE 4 Center To center cells A1 to D1:. Select cells A1 to D1. Choose the Home tab. Click the Center button in the Alignment group. Excel centers each cell's content.
Left-Align To left-align cells A1 to D1:. Select cells A1 to D1. Choose the Home tab. Click the Align Text Left button in the Alignment group. Excel left-aligns each cell's content. Right-Align To right-align cells A1 to D1:.
Select cells A1 to D1. Click in cell A1. Choose the Home tab.
Click the Align Text Right button. Excel right-aligns the cell's content. Click anywhere on your worksheet to clear the highlighting. Note: You can also change the alignment of cells with numbers in them by using the alignment buttons. Perform Advanced Mathematical Calculations When you perform mathematical calculations in Excel, be careful of precedence.
Calculations are performed from left to right, with multiplication and division performed before addition and subtraction. EXERCISE 5 Advanced Calculations. Move to cell A7. Type =3+3+12/2.4. Press Enter. Note: Microsoft Excel divides 12 by 2, multiplies the answer by 4, adds 3, and then adds another 3. The answer, 30, displays in cell A7.
To change the order of calculation, use parentheses. Microsoft Excel calculates the information in parentheses first.
Double-click in cell A7. Edit the cell to read =(3+3+12)/2.4. Press Enter. Note: Microsoft Excel adds 3 plus 3 plus 12, divides the answer by 2, and then multiplies the result by 4. The answer, 36, displays in cell A7.
Copy, Cut, Paste, and Cell Addressing In Excel, you can copy data from one area of a worksheet and place the data you copied anywhere in the same or another worksheet. In other words, after you type information into a worksheet, if you want to place the same information somewhere else, you do not have to retype the information. You simple copy it and then paste it in the new location. You can use Excel's Cut feature to remove information from a worksheet. Then you can use the Paste feature to place the information you cut anywhere in the same or another worksheet. In other words, you can move information from one place in a worksheet to another place in the same or different worksheet by using the Cut and Paste features. Microsoft Excel records cell addresses in formulas in three different ways, called absolute, relative, and mixed.
The way a formula is recorded is important when you copy it. With relative cell addressing, when you copy a formula from one area of the worksheet to another, Excel records the position of the cell relative to the cell that originally contained the formula.
With absolute cell addressing, when you copy a formula from one area of the worksheet to another, Excel references the same cells, no matter where you copy the formula. You can use mixed cell addressing to keep the row constant while the column changes, or vice versa. The following exercises demonstrate. EXERCISE 6 Copy, Cut, Paste, and Cell Addressing. Move to cell A9.
Excel moves down one cell. Excel moves down one cell. Excel moves down one cell. Move to cell B9. Excel moves down one cell. Excel moves down one cell.
Excel moves down one cell. In addition to typing a formula as you did in Lesson 1, you can also enter formulas by using Point mode. When you are in Point mode, you can enter a formula either by clicking on a cell or by using the arrow keys. Move to cell A12. Use the up arrow key to move to cell A9.
Use the up arrow key to move to cell A10. Use the up arrow key to move to cell A11. Click the check mark on the Formula bar. Look at the Formula bar. Note that the formula you entered is displayed there. Copy with the Ribbon To copy the formula you just entered, follow these steps:. You should be in cell A12.
Choose the Home tab. Click the Copy button in the Clipboard group. Excel copies the formula in cell A12.
Press the right arrow key once to move to cell B12. Click the Paste button in the Clipboard group. Excel pastes the formula in cell A12 into cell B12.
Press the Esc key to exit the Copy mode. Compare the formula in cell A12 with the formula in cell B12 (while in the respective cell, look at the Formula bar). The formulas are the same except that the formula in cell A12 sums the entries in column A and the formula in cell B12 sums the entries in column B. The formula was copied in a relative fashion. Before proceeding with the next part of the exercise, you must copy the information in cells A7 to B9 to cells C7 to D9. This time you will copy by using the Mini toolbar.
Copy with the Mini Toolbar. Select cells A9 to B11. Move to cell A9. Press the Shift key. While holding down the Shift key, press the down arrow key twice. Press the right arrow key once.
Excel highlights A9 to B11. Right-click. A context menu and a Mini toolbar appear. Click Copy, which is located on the context menu. Excel copies the information in cells A9 to B11. Move to cell C9.
Right-click. A context menu appears. Click Paste. Excel copies the contents of cells A9 to B11 to cells C9 to C11. Press Esc to exit Copy mode.
Absolute Cell Addressing You make a cell address an absolute cell address by placing a dollar sign in front of the row and column identifiers. You can do this automatically by using the F4 key. To illustrate:.
Move to cell C12. Click cell C9. Dollar signs appear before the C and the 9. Click cell C10. Dollar signs appear before the C and the 10. Click cell C11.
Dollar signs appear before the C and the 11. Click the check mark on the formula bar. Excel records the formula in cell C12. Copy and Paste with Keyboard Shortcuts Keyboard shortcuts are key combinations that enable you to perform tasks by using the keyboard.
Generally, you press and hold down a key while pressing a letter. For example, Ctrl+c means you should press and hold down the Ctrl key while pressing 'c.'
This tutorial notates key combinations as follows: Press Ctrl+c. Now copy the formula from C12 to D12.
This time, copy by using keyboard shortcuts. Move to cell C12. Hold down the Ctrl key while you press 'c' (Ctrl+c).
Excel copies the contents of cell C12. Press the right arrow once.
Excel moves to D12. Hold down the Ctrl key while you press 'v' (Ctrl+v). Excel pastes the contents of cell C12 into cell D12. Press Esc to exit the Copy mode. Compare the formula in cell C12 with the formula in cell D12 (while in the respective cell, look at the Formula bar).
The formulas are exactly the same. Excel copied the formula from cell C12 to cell D12. Excel copied the formula in an absolute fashion. Both formulas sum column C. Mixed Cell Addressing You use mixed cell addressing to reference a cell when you want to copy part of it absolute and part relative.
For example, the row can be absolute and the column relative. You can use the F4 key to create a mixed cell reference.
Move to cell E1. Press the up arrow key once. Press F4 again. Note that the column is relative and the row is absolute. Press F4 again. Note that the column is absolute and the row is relative. Cut and Paste You can move data from one area of a worksheet to another.
Select cells D9 to D12. Choose the Home tab. Click the Cut button. Move to cell G1. Click the Paste button.
Excel moves the contents of cells D9 to D12 to cells G1 to G4. The keyboard shortcut for Cut is Ctrl+x. The steps for cutting and pasting with a keyboard shortcut are:.
Select the cells you want to cut and paste. Press Ctrl+x. Move to the upper-left corner of the block of cells into which you want to paste. Press Ctrl+v.
Excel cuts and pastes the cells you selected. Insert and Delete Columns and Rows You can insert and delete columns and rows. When you delete a column, you delete everything in the column from the top of the worksheet to the bottom of the worksheet.
When you delete a row, you delete the entire row from left to right. Inserting a column or row inserts a completely new column or row.
EXERCISE 7 Insert and Delete Columns and Rows To delete columns F and G:. Click the column F indicator and drag to column G. Click the down arrow next to Delete in the Cells group. A menu appears. Click Delete Sheet Columns. Excel deletes the columns you selected.
Click anywhere on the worksheet to remove your selection. To delete rows 7 through 12:. Click the row 7 indicator and drag to row 12. Click the down arrow next to Delete in the Cells group. A menu appears.
Click Delete Sheet Rows. Excel deletes the rows you selected. Click anywhere on the worksheet to remove your selection.
To insert a column:. Click on A to select column A. Click the down arrow next to Insert in the Cells group. A menu appears.
Click Insert Sheet Columns. Excel inserts a new column.
Click anywhere on the worksheet to remove your selection. To insert rows:. Click on 1 and then drag down to 2 to select rows 1 and 2. Click the down arrow next to Insert in the Cells group. A menu appears. Click Insert Sheet Rows.
Excel inserts two new rows. Click anywhere on the worksheet to remove your selection. Your worksheet should look like the one shown here.
Create Borders You can use borders to make entries in your Excel worksheet stand out. You can choose from several types of borders. When you press the down arrow next to the Border button, a menu appears. By making the proper selection from the menu, you can place a border on the top, bottom, left, or right side of the selected cells; on all sides; or around the outside border. You can have a thick outside border or a border with a single-line top and a double-line bottom.
Accountants usually place a single underline above a final number and a double underline below. The following illustrates: EXERCISE 8 Create Borders. Select cells B6 to E6. Lame_enc.dll for audacity 2.0.0. Choose the Home tab. Click the down arrow next to the Borders button.
A menu appears. Click Top and Double Bottom Border.
Excel adds the border you chose to the selected cells. Merge and Center Sometimes, particularly when you give a title to a section of your worksheet, you will want to center a piece of text over several columns or rows. The following example shows you how. EXERCISE 9 Merge and Center. Go to cell B2.
Type Sample Worksheet. Click the check mark on the Formula bar. Select cells B2 to E2. Choose the Home tab. Click the Merge and Center button in the Alignment group. Excel merges cells B2, C2, D2, and E2 and then centers the content.
Note: To unmerge cells:. Select the cell you want to unmerge.
Choose the Home tab. Click the down arrow next to the Merge and Center button. A menu appears. Click Unmerge Cells. Excel unmerges the cells.
Add Background Color To make a section of your worksheet stand out, you can add background color to a cell or group of cells. EXERCISE 10 Add Background Color. Select cells B2 to E3. Choose the Home tab. Click the down arrow next to the Fill Color button.
Click the color dark blue. Excel places a dark blue background in the cells you selected. Change the Font, Font Size, and Font Color A font is a set of characters represented in a single typeface. Each character within a font is created by using the same basic style. Excel provides many different fonts from which you can choose. The size of a font is measured in points.
There are 72 points to an inch. The number of points assigned to a font is based on the distance from the top to the bottom of its longest character.
You can change the Font, Font Size, and Font Color of the data you enter into Excel. EXERCISE 11 Change the Font. Select cells B2 to E3. Choose the Home tab. Click the down arrow next to the Font box. A list of fonts appears. As you scroll down the list of fonts, Excel provides a preview of the font in the cell you selected.
Find and click Times New Roman in the Font box. Note: If Times New Roman is your default font, click another font. Excel changes the font in the selected cells. Change the Font Size.
Select cell B2. Choose the Home tab. Click the down arrow next to the Font Size box. A list of font sizes appears.
As you scroll up or down the list of font sizes, Excel provides a preview of the font size in the cell you selected. Excel changes the font size in cell B2 to 26. Change the Font Color. Select cells B2 to E3. Choose the Home tab.
Click the down arrow next to the Font Color button. Click on the color white. Your font color changes to white. Your worksheet should look like the one shown here. Move to a New Worksheet In Microsoft Excel, each workbook is made up of several worksheets.
Each worksheet has a tab. By default, a workbook has three sheets and they are named sequentially, starting with Sheet1.
The name of the worksheet appears on the tab. Before moving to the next topic, move to a new worksheet. The exercise that follows shows you how.
EXERCISE 12 Move to a New Worksheet. Click Sheet2 in the lower-left corner of the screen. Excel moves to Sheet2. Bold, Italicize, and Underline When creating an Excel worksheet, you may want to emphasize the contents of cells by bolding, italicizing, and/or underlining. You can easily bold, italicize, or underline text with Microsoft Excel. You can also combine these features—in other words, you can bold, italicize, and underline a single piece of text. In the exercises that follow, you will learn different methods you can use to bold, italicize, and underline.
EXERCISE 13 Bold with the Ribbon. Type Bold in cell A1. Click the check mark located on the Formula bar. Choose the Home tab. Click the Bold button.
Excel bolds the contents of the cell. Click the Bold button again if you wish to remove the bold. Italicize with the Ribbon. Type Italic in cell B1. Click the check mark located on the Formula bar. Choose the Home tab. Click the Italic button.
Excel italicizes the contents of the cell. Click the Italic button again if you wish to remove the italic. Underline with the Ribbon Microsoft Excel provides two types of underlines. The exercises that follow illustrate them. Single Underline:. Type Underline in cell C1.
Click the check mark located on the Formula bar. Choose the Home tab.
Click the Underline button. Excel underlines the contents of the cell.
Click the Underline button again if you wish to remove the underline. Double Underline. Type Underline in cell D1. Click the check mark located on the Formula bar.
Choose the Home tab. Click the down arrow next to the Underline button and then click Double Underline. Excel double-underlines the contents of the cell.
Note that the Underline button changes to the button shown here, a D with a double underline under it. Then next time you click the Underline button, you will get a double underline. If you want a single underline, click the down arrow next to the Double Underline button and then choose Underline. Click the double underline button again if you wish to remove the double underline. Bold, Underline, and Italicize.
Type All three in cell E1. Click the check mark located on the Formula bar. Choose the Home tab.
Click the Bold button. Excel bolds the cell contents. Click the Italic button. Excel italicizes the cell contents.
Click the Underline button. Excel underlines the cell contents. Alternate Method: Bold with Shortcut Keys.
Type Bold in cell A2. Click the check mark located on the Formula bar. Hold down the Ctrl key while pressing 'b' (Ctrl+b). Excel bolds the contents of the cell. Press Ctrl+b again if you wish to remove the bolding.
Alternate Method: Italicize with Shortcut Keys. Type Italic in cell B2. Note: Because you previously entered the word Italic in column B, Excel may enter the word in the cell automatically after you type the letter I. Excel does this to speed up your data entry.
Click the check mark located on the Formula bar. Hold down the Ctrl key while pressing 'i' (Ctrl+i). Excel italicizes the contents of the cell. Press Ctrl+i again if you wish to remove the italic formatting. Alternate Method: Underline with Shortcut Keys.
Type Underline in cell C2. Click the check mark located on the Formula bar. Hold down the Ctrl key while pressing 'u' (Ctrl+u). Excel applies a single underline to the cell contents. Press Ctrl+u again if you wish to remove the underline.
Bold, Italicize, and Underline with Shortcut Keys. Type All three in cell D2. Click the check mark located on the Formula bar. Hold down the Ctrl key while pressing 'b' (Ctrl+b). Excel bolds the cell contents.
Hold down the Ctrl key while pressing 'i' (Ctrl+i). Excel italicizes the cell contents. Hold down the Ctrl key while pressing 'u' (Ctrl+u). Excel applies a single underline to the cell contents. Work with Long Text Whenever you type text that is too long to fit into a cell, Microsoft Excel attempts to display all the text. It left-aligns the text regardless of the alignment you have assigned to it, and it borrows space from the blank cells to the right.
However, a long text entry will never write over cells that already contain entries—instead, the cells that contain entries cut off the long text. The following exercise illustrates this. EXERCISE 14 Work with Long Text. Move to cell A6.
Type Now is the time for all good men to go to the aid of their army. Press Enter. Everything that does not fit into cell A6 spills over into the adjacent cell. Move to cell B6. Press Enter. Excel cuts off the entry in cell A6. Move to cell A6.
Look at the Formula bar. The text is still in the cell. Chang e A Column's Width You can increase column widths. Increasing the column width enables you to see the long text. EXERCISE 15 Chang e Column Width. Make sure you are in any cell under column A.
Choose the Home tab. Click the down arrow next to Format in the Cells group. Click Column Width.
The Column Width dialog box appears. Type 55 in the Column Width field. Column A is set to a width of 55. You should now be able to see all of the text.
Change a Column Width by Dragging You can also change the column width with the cursor. Place the mouse pointer on the line between the B and C column headings.
The mouse pointer should look like the one displayed here, with two arrows. Move your mouse to the right while holding down the left mouse button. The width indicator appears on the screen. Release the left mouse button when the width indicator shows approximately 20. Excel increases the column width to 20.
Format Numbers You can format the numbers you enter into Microsoft Excel. For example, you can add commas to separate thousands, specify the number of decimal places, place a dollar sign in front of a number, or display a number as a percent. EXERCISE 16 Format Numbers.
Move to cell B8. Type 1234567. Click the check mark on the Formula bar. Choose the Home tab.
Click the down arrow next to the Number Format box. A menu appears. Click Number. Excel adds two decimal places to the number you typed.
Ms Excel 2007 Formulas With Examples Pdf In Marathing
Click the Comma Style button. Excel separates thousands with a comma. Click the Accounting Number Format button. Excel adds a dollar sign to your number. Click twice on the Increase Decimal button to change the number format to four decimal places. Click the Decrease Decimal button if you wish to decrease the number of decimal places. Change a decimal to a percent.
Move to cell B9. Type.35 (note the decimal point). Click the check mark on the formula bar. Choose the Home tab. Click the Percent Style button. Excel turns the decimal to a percent. This is the end of Lesson 2.
You can save and close your file. See Lesson 1 to learn how to save and close a file.
Ms Excel 2007 Formulas With Examples In Hindi
After entering your email address, a confirmation email will be sent to your inbox. Please approve this email to receive our weekly eBook update. We will not share your personal information with any third party. This is a Premium eBook Bookboon Premium - Gain access to over 800 eBooks - without ads You can get free access for a month to this - and 800 other books with the Premium Subscription.
You can also buy the book below. Start a 30-day free trial.
After trial: 39.99 kr p/m. Start a 30-day free trial. After trial: €5.99 p/m. Start a 30-day free trial. After trial: £4.99 p/m.
Start a 30-day free trial. After trial: ₹299 p/m. Start a 30-day free trial. After trial: $3.99 p/m.
Start a 30-day free trial. After trial: 39.99 kr p/m. Start a 30-day free trial. After trial: 39.99 kr p/m. Content. What is New in Excel 2007. Ribbons and Tabs.
Larger workspace. More Colours. Colour Themes and Styles. Improved Pivot Tables.
Improved Condi tional Formatting. More and Better-Looking Charts. New File Format. Where can I find the Old Buttons?
Syntax The syntax for the HLOOKUP function in Microsoft Excel is: HLOOKUP( value, table, indexnumber, approximatematch ) Parameters or Arguments value The value to search for in the first row of the table. Table Two or more rows of data that is sorted in ascending order. Indexnumber The row number in table from which the matching value must be returned. The first row is 1. Approximatematch Optional.
Enter FALSE to find an exact match. Enter TRUE to find an approximate match. If this parameter is omitted, TRUE is the default.
Returns The HLOOKUP function returns any datatype such as a string, numeric, date, etc. If you enter FALSE for the approximatematch parameter and no exact match is found, then the HLOOKUP function will return #N/A. If you specify TRUE for the approximatematch parameter and no exact match is found, then the next smaller value is returned.
If indexnumber is less than 1, the HLOOKUP function will return #VALUE! If indexnumber is greater than the number of columns in table, the HLOOKUP function will return #REF! Example (as Worksheet Function) Let's look at some Excel HLOOKUP function examples and explore how to use the HLOOKUP function as a worksheet function in Microsoft Excel: Based on the spreadsheet above, the following Excel HLOOKUP function will return the following: =HLOOKUP(10251, A1:G3, 2, FALSE) Result: $16.80 This HLOOKUP example would return the value of $16.80. Let's take a closer look why. First Parameter The first parameter in the HLOOKUP function is the value to search for. So in this example, the HLOOKUP is searching for the value of 10251. Second Parameter The second parameter in the HLOOKUP function is the table which is set to the range of A1:G3.
The HLOOKUP uses the first row in this range (ie: A1:G1) to search for the value of 10251. Third Parameter The third parameter is the indexnumber which is set to 2.
This means that the second row in the table is where we will find the value to return. Since the table is set to A1:G3, the corresponding return value will be in A2:G2 (ie: second row as specified by the indexnumber of 2). Fourth Parameter Finally and most importantly is the fourth or last parameter in the HLOOKUP.
In our example, it is set to FALSE. This means that you need to find an EXACT match for the value of 10251. We do not want to find a 'close' match, but an EXACT match!!
So if 10251 is not found in the range of A1:G1, then the HLOOKUP function should return #N/A. Since the HLOOKUP is able to find the value of 10251 in the range A1:G1, it returns the corresponding value from A2:G2 which is $16.80. Importance of Fourth Parameter Let's further explore the importance of specifying TRUE vs FALSE for the last parameter in the HLOOKUP function. So say we are looking for the Order ID of 10248, but as you can see, it is not in the range of A1:G1 in the spreadsheet above. Let's write our HLOOKUP formula with FALSE as the final parameter and another HLOOKUP formula with TRUE as the final parameter and see what happens. =HLOOKUP(10248, A1:G3, 2, FALSE) Result: #N/A =HLOOKUP(10248, A1:G3, 2, TRUE) Result: $14.00 The first HLOOKUP formula has FALSE specified as the final parameter.
This means that the HLOOKUP is looking for an exact match for 10248. Since the value 10248 does not exist in the range A1:G1, the HLOOKUP function returns #N/A. The second HLOOKUP formula has TRUE specified as the final parameter. This means that if an exact match if not found, the HLOOKUP function will look for the next largest value that is less than 10248.
Now what does this mean to us? First of all, it means that the data in A1:G3 MUST BE SORTED IN ASCENDING ORDER because the HLOOKUP is going to return the next largest value for 10248 and then stop searching. So if your data is not sorted in ascending order, you are going to get some really strange results. Secondly, it means that the HLOOKUP function will find order 10247 as the approximate match. And therefore, return $14.00 as the result (the corresponding value from A2:G2). Table in another sheet Quite often we are asked the question, 'What is an example of a HLOOKUP when the table is on another sheet?' To answer that question, let's modify our example above and assume that the table is on Sheet2 in the range A1:G3.
We could rewrite our example as follows: =HLOOKUP(10251, Sheet2!A1:G3, 2, FALSE) By preceding the table range with the sheet name and an exclamation mark, we can update our HLOOKUP to reference a table on another sheet. Table in another sheet with spaces in sheet name Let's throw in one more complication, what happens if your Sheet name contains spaces, then you will need to change the formula further. So let's take a look at this case. Let's assume that the table is on a Sheet called 'Test Sheet' in the range A1:G3, we would need to modify our formula as follows: =HLOOKUP(10251, 'Test Sheet'!A1:G3, 2, FALSE) By placing the sheet name within single quotes, we can accommodate a sheet name with spaces in our HLOOKUP function. Absolute Referencing Now it is important for us to mention one more mistake that is commonly made. When people use the HLOOKUP function, they commonly use relative referencing for the table range like we did in our examples above. This will return the right answer, but what happens when you copy the formula to another cell?
Ms Excel 2007 Formulas With Examples
The table range will be adjusted by Excel and change relative to where you paste the new formula. Let's explain further. So if you had the following formula in cell J1: =HLOOKUP(10251, A1:G3, 2, FALSE) And then you copied this formula from cell J1 to cell K2, it would modify the HLOOKUP formula to this: =HLOOKUP(10251, B2:H4, 2, FALSE) Since your table is found in the range A1:G3 and not B2:H4, your formula would return erroneous results in cell K2. To ensure that your range is not changed, try referencing your table range using absolute referencing as follows: =HLOOKUP(10251, $A$1:$G$3, 2, FALSE) Now if you copy this formula to another cell, your table range will remain $A$1:$G$3. How to Handle #N/A Errors Finally, let's look at how to handle instances where the HLOOKUP function does not find a match and returns the #N/A error. In most cases, you don't want to see #N/A but would rather display a more user-friendly result.
For example, if you had the following formula: =HLOOKUP(10251, $A$1:$G$3, 2, FALSE) Instead of displaying #N/A error if you do not find a match, you could return the value 'Not Found'. To do this, you could modify your HLOOKUP formula as follows: =IF(ISNA(HLOOKUP(10251, $A$1:$G$3, 2, FALSE)), 'Not Found', HLOOKUP(10251, $A$1:$G$3, 2, FALSE)) OR =IFERROR(HLOOKUP(10251, $A$1:$G$3, 2, FALSE), 'Not Found') OR =IFNA(HLOOKUP(10251, $A$1:$G$3, 2, FALSE), 'Not Found') These formulas use the, and functions to return 'Not Found' if a match is not found by the HLOOKUP function. This is a great way to spruce up your spreadsheet so that you don't see traditional Excel errors.
The drop-down menu will show a list of named cells or ranges. MS Excel Advanced Formulas. Data in a list and to automatically verify that you are using correct data. After you look up.Excel and formulas mathematical expressions that you create to dynamically.
Snt appear in the list at the bottom of the window.Introduction. There are over 400 different buil t-i hey are called, in Excel 2007. Select any range of cells Figure 1, 1 and Excel displays. Equal sign, a f guments enclosed in brackets.Excel makes use of formulas mathematical expressions that you cre document themes has been introduced in Excel 2007 and can be. Click on the More Functions.
O to display a.It is meant to be an extension of my Formulas Functions in Microsoft. CHOOSE: chooses a value or action to perform from a list of values, depending on an.
2 692007 10: 35 AM 692007 3: 30 PM 6102007 4: 30 PM.In Excel,the calculation can be specified using either a formula or a function. Functions will give you an alphabetical and categorical listing of all available.Microsoft Excel 2007 is a spreadsheet application in the. Premium Free PDF English ebook reader mobi epub pdf Pages 141. Nothing is difficult once you have learned it. That applies to Microsoft Office Excel 2007 as well, and once you have. Excel 2007 Critical Data Analysis Using Functions For The Haas.
Another cell or cell range and place a result in the formula cell depending on. The VLookup function requires that you have a list in which the first column.was used in the Microsoft Excel 2007: An Intermediate Guide training.
The Formula Palette and see how the list of.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |