|
The question
below was asked by some users on Facebook, Twitter or Yahoo! Answers:
"Excel 'if' question? What formula? I'm wondering what formula I would
need to use on Microsoft excel. Basically depending on the size of a
room, it would be S (small), M (Medium) or L (Large).
Less then 6.5m = S
6.5 to 11.5m = M
11.5 or larger = L
What formula would I need to enter in order for Excel to automatically
decide if the size of the room is S, M or L?
Thanks"
Solution:
Using
the IF Function
=IF(A2<6.5, "S", IF(A2<11.5, "M", "L")) Or
=IF(A2<6.5,"S",IF(A2<11.5,"M","L"))
Using the Lookup Function
=IF(A2="","", LOOKUP(A2,{0,6.5,11.5;"S","M","L"}))
In the lookup formula the first part checks whether the cell A2 has any
data at all and then proceeds further.
Using
Vlookup (most versatile)
=Vlookup(A2, mydata, 2)
'mydata' is the named range.
Watch the MS-Excel training video below to see how the solution is
found using IF, lookup
and vlookup functions.
More Tips:
How do I view and edit Microsoft Excel files on an
iPad?
Inventory Soluton
How to rename and color worksheet tabs
Copy Worksheet Quickly
Criteria Range
Animations in Microsoft Excel
Create two charts at once
How to avoid errors while working in Excel
How to benefit from
Microsoft Excel Templates
How to use Microsoft Excel 2007 with Word 2007 -
create mail
merge labels
Landscape Oriented Worksheet Template
How to-make a worksheet fit a printed page
How to make
your charts more impressive
Perpetual
Calendar from 1900 to 9999
How to create your own custom add-in
How
to clear conditional formattng in Excel worksheets
How to speed up data entry of decimal numbers
How to change the color of the gridlines of an Excel
worksheet or hide them
How to use Autosum in Multiple Worksheet Cells Quickly
How to have your free personal assistant in Mcrosoft
Excel who reads out the data to you
How to use the status bar in Microsoft Excel to do a
quick data analysis
How to calculate equal monthly payments or instalments
using a mathematical equation
Data Forms to Enter and Edit Data
View 2 worksheets in same workbook side by side
Accessing a specific worksheet in large workbooks with
multiple worksheets
Referencing a cell in another worksheet
How to perform a what-if analysis using a scrollbar
form control
An interesting
payroll solution
Future Value Solution in Microsoft Excel
Another Interesting Conditional Formatting Solution
DSUM
and Array Formulas for addition solutions
|