How can I get the first 5 characters from a cell?
A Use the "left" function. If the cell you want to
extract the first 5 characters from is B5, the formula is =left(B5,5)
Q How can I get the last 5 characters from a cell?
A Use the "right" function. If the cell you want to
extract the first 5 characters from is B5, the formula is =right(B5,5)
Q How can I get the middle 5 characters from a cell,
starting at the third character?
A Use the "mid" function. If the cell you want to
extract the first 5 characters from is B5, the formula is =mid(B5,3,5)
Q I have two cells, each containing part of an
address. How can I combine these into one address?
A Use the "concatenate" function. If the cells you want
to combine are A5 and B5, the formula is =A5&B5. (You can also use
=concatenate(A5&B5) but why do the extra typing , right?)
Q How can I extract the first 5 characters after a
dash "-" from a cell?
A Use the "find" function nested within the "mid"
function. If the cell you want to extract 5 characters from is B5, the formula
is =mid(B5,find("-",B5)+1,5). The "find" function will return the position
number of the variable you are looking for, a dash in this example.
Q How can I convert a number that is formatted as
text to a number that is formatted as numeric (sorting numbers formatted as
text does not work)?
A Use the "value" function. If cell B2 contains the data
you want to convert to a numeric format, the formula is =value(B2).
Q The data I have imported into my spreadsheet
contains a bunch of trailing spaces, instead of "Davidson" the cell contains
"Davidson_____" How do I get rid of the extra spaces?
A Use the "trim" function. If cell B2 contains the data
you want to trim, the formula is =trim(B2). This function removes all spaces
EXCEPT for single spaces between words.
Q How can I change the case in a cell from lower to
all uppercase (all CAPITAL letters)?
A Use the "upper" function. If cell B2 contains the data
you want to change the case, the formula is =upper(B2).
Q Just the opposite of the previous. How can I change
the case in a cell from upper to all lowercase (all small letters)?
A Use the "lower" function. If cell B2 contains the data
you want to change the case, the formula is =lower(B2).
Q One last question on case. How can I change the
case in a cell from upper (or lower) to proper (first letter is capitalized
and the rest are small letters)?
A Use the "proper" function. If cell B2 contains the
data you want to change the case, the formula is =proper(B2). One caution on
this, if you have a name like McDonald, then the "proper" function will return
Mcdonald.
Q I want to find out if three conditions are true
and, if they are, return the value "All Good". If any one of them is not true,
I want to return the value "Errors". How do I do this without nesting "if"
statements.
A Use the "and" function. If the cell you want to
examine is B5 and the conditions you want are: it must be greater than cell
B4, it must equal cell A5, and it must be less than cell A4 then the formula
is
=if(and(B5>B4,B5=A5,B5
Q Same situation as above except that if any on the
conditions are true I want to return the value "Good". If all of them are not
true, I want to return the value "Errors".
A Use the "or" function. If the cell you want to examine
is B5 and the conditions you want are: it must be greater than cell B4, OR it
must equal cell A5, OR it must be less than cell A4 then the formula is
=if(or(B5>B4,B5=A5,B5
Gateway Educational and Welfare Society
is an NGO Regd. with Govt. Of Punjab to promote the skills of poor and
needy youth of INDIA so that they may earn respectful living hood.
Presently the area of functioning of Society is Sangrur Distt.