Question:
Can anybody help me with MS Ecxel?
Stella
2006-06-25 06:23:38 UTC
Can anybody plz help me with the IF-FUNCTION and the VLOOKUP-FUNCTION in Microsoft Excel?How does work?
Four answers:
Soumya Shankar Ghosal
2006-06-25 06:37:32 UTC
This is a good site for help on excel formulas. http://www.techonthenet.com/excel/formulas/
bucminhwa
2006-06-25 06:44:11 UTC
Try with Help, Press F1

=====================

IF



Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE.



Use IF to conduct conditional tests on values and formulas.



Syntax



IF(logical_test,

value_if_true,

value_if_false)



Logical_test is any value or expression that can be evaluated to TRUE or FALSE. For example, A10=100 is a logical expression; if the value in cell A10 is equal to 100, the expression evaluates to TRUE. Otherwise, the expression evaluates to FALSE. This argument can use any comparison calculation operator.



Value_if_true is the value that is returned if logical_test is TRUE. For example, if this argument is the text string "Within budget" and the logical_test argument evaluates to TRUE, then the IF function displays the text "Within budget". If logical_test is TRUE and value_if_true is blank, this argument returns 0 (zero). To display the word TRUE, use the logical value TRUE for this argument. Value_if_true can be another formula.



Value_if_false is the value that is returned if logical_test is FALSE. For example, if this argument is the text string "Over budget" and the logical_test argument evaluates to FALSE, then the IF function displays the text "Over budget". If logical_test is FALSE and value_if_false is omitted, (that is, after value_if_true, there is no comma), then the logical value FALSE is returned. If logical_test is FALSE and value_if_false is blank (that is, after value_if_true, there is a comma followed by the closing parenthesis), then the value 0 (zero) is returned. Value_if_false can be another formula.



===============================================

VLOOKUP



Searches for a value in the first column of a table array and returns a value in the same row from another column in the table array.



The V in VLOOKUP stands for vertical. Use VLOOKUP instead of HLOOKUP when your comparison values are located in a column to the left of the data that you want to find.



Syntax

VLOOKUP(lookup_value,

table_array,

col_index_num,

range_lookup)



Lookup_value The value to search in the first column of the table array (array: Used to build single formulas that produce multiple results or that operate on a group of arguments that are arranged in rows and columns. An array range shares a common formula; an array constant is a group of constants used as an argument.). Lookup_value can be a value or a reference. If lookup_value is smaller than the smallest value in the first column of table_array, VLOOKUP returns the #N/A error value.



Table_array Two or more columns of data. Use a reference to a range or a range name. The values in the first column of table_array are the values searched by lookup_value. These values can be text, numbers, or logical values. Uppercase and lowercase text are equivalent.



Col_index_num The column number in table_array from which the matching value must be returned. A col_index_num of 1 returns the value in the first column in table_array; a col_index_num of 2 returns the value in the second column in table_array, and so on. If col_index_num is:



Less than 1, VLOOKUP returns the #VALUE! error value.

Greater than the number of columns in table_array, VLOOKUP returns the #REF! error value.

Range_lookup A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match:



If TRUE or omitted, an exact or approximate match is returned. If an exact match is not found, the next largest value that is less than lookup_value is returned.

The values in the first column of table_array must be placed in ascending sort order; otherwise, VLOOKUP may not give the correct value. You can put the values in ascending order by choosing the Sort command from the Data menu and selecting Ascending. For more information, see Default sort orders.



If FALSE, VLOOKUP will only find an exact match. In this case, the values in the first column of table_array do not need to be sorted. If there are two or more values in the first column of table_array that match the lookup_value, the first value found is used. If an exact match is not found, the error value #N/A is returned.



======================



Good luck 2 u!
VertigoU2
2006-06-25 06:38:52 UTC
The If Function is a very easy function to use once you understand it. It lets you have more than one outcome to a scenario. For example, in a spreadsheet on budgets, you may have an If/Then statement, that lets you know whether you are over or under budget. Let's say your final number was in cell a15. You could write a formula saying, =if(a15>100, "Over Budget", "Under Budget"). In the formula, what you are saying is that if the value in a15 is greater than 100, then "Over Budget" will appear in that cell. If the value is under 100, then "Under Budget" will appear.



The VLOOKUP and HLOOKUP are used for finding pieces of data that are in big columns or rows of information easily. For example, if you had a list of order numbers and you wanted to grab the person's last name for each order number, you could write a statement, that would look like this. =vlookup(a1, table1, 6, false). In this statement, a1= the value you are trying to match. Table 1= the data where you are looking to match up a1. 6 is the number of columns over to look for the data in table1. And the false statement lets the computer know to find an exact match.
johnniebegood
2006-06-25 06:45:08 UTC
The VLOOKUP function is for vertical lookup.

This looks up a particular value or text entry in a table and returns related info. from that table.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...