Excel Lookup and Logical Functions
Excel Lookup and Logical Functions
----------------------------
Purpose:
Searches vertically in the first column of a table to find a value and returns data from another column
Syntax:
Example Table:
|------------|--------------|-------|
| 101 | Pen | 10 |
| 102 | Pencil |5 |
| 103 | Eraser |3 |
Formula:
Result: "Pencil"
Purpose:
Searches horizontally in the first row of a table and returns data from a specified row in the same
column.
Syntax:
Example Table:
| |A |B |C |
|-----------|----------|---------|---------|
| Price | 10 |5 |3 |
| Stock | 50 | 100 | 80 |
Formula:
Result: 5
-------------------------------
Purpose:
Replaces VLOOKUP and HLOOKUP. Looks both vertically and horizontally. More flexible and
powerful.
Syntax:
|----------------|------------------|-----------|
| 101 | Pen | 10 |
| 102 | Pencil |5 |
| 103 | Eraser |3 |
Formula:
Result: 5
|A |B |C |D |
|---------|----------|----------|----------|
| Price | 10 |5 |3 |
Formula:
Result: 5
Bonus:
------------------------
IF Function:
Used to perform a logical test and return different values for TRUE or FALSE.
Syntax:
AND Function:
Tests multiple conditions. Returns TRUE only if all conditions are TRUE.
Syntax:
OR Function:
Syntax:
Example Table:
| Riya | 70 | 65 |
| Arjun | 40 | 55 |
| Neha | 80 | 75 |
Formula:
Results:
Formula: