How to use the If Function?

G

Giggles

I have a spreadsheet that keeps attendance. Now I need to calculate the
units (1 unit= 15 minutes) the children are actual here. On a normal
schedule they are here for 16 units but if the are late the units get
subtracted. When entering the data, they would like to use letter instead of
numbers. Is this possible?
 
T

tim m

=IF(A1>15,"A",IF(A1>13,"B",IF(A1>11,"C",IF(A1>9,"D",IF(A1<10,"F",0)))))

You could try something like this, it looks at cell A1 and if the cell is >
15 it assigns and A, if it is > 13 it assigns a B, etc.

The actual look of your formula will depend on what letters you are
assigning to which numbers and how many letters you have.
 
D

Danny Lewis

tim m said:
=IF(A1>15,"A",IF(A1>13,"B",IF(A1>11,"C",IF(A1>9,"D",IF(A1<10,"F",0)))))

You could try something like this, it looks at cell A1 and if the cell is >
15 it assigns and A, if it is > 13 it assigns a B, etc.

The actual look of your formula will depend on what letters you are
assigning to which numbers and how many letters you have.
 
D

Danny Lewis

wow that didnt show my explanation at all lol

create a table from A1 to B16
with numbers 16 to 1, descending in column A
and letters from A to P in column B

in D5 put your number of units attended eg 15

in D6 put =VLOOKUP($D$5,$A$1:$B$16,2,FALSE)

And your grade ie in this case B, will come up. Any time you change D5 now,
D6 will change.

Danny
 
G

Giggles

Thanks Tim I'll try that.
Giggles

tim m said:
=IF(A1>15,"A",IF(A1>13,"B",IF(A1>11,"C",IF(A1>9,"D",IF(A1<10,"F",0)))))

You could try something like this, it looks at cell A1 and if the cell is >
15 it assigns and A, if it is > 13 it assigns a B, etc.

The actual look of your formula will depend on what letters you are
assigning to which numbers and how many letters you have.
 
G

Giggles

Hey Tim,
I tired the formula but it is kind of coming out oppiste of what I need.
Let me give more detail. everyday I want to be able to place a letter in a
cell that represents how many units that child used for that day. for
example if I place a A in cell a1 then in another cell at the end of that row
it will calcutale that A means she used 16 units that day. I hope the msake
better sense.

giggles
 
G

Giggles

Hey Danny,
So, you are saying to create like a chart in the corner of the spreadsheet
ao If I enter a letter in a cell it will recall what the value is from the
chart?

Giggles
 
T

tim m

=IF(E1="A",16,IF(E1="B",15,IF(E1="C",14,IF(E1="D",13,IF(E1="F",12)))))

You could try something like this however the more effecient method would be
to use Danny Lewis's way of creating a table and using a VLOOKUP formula.
 
G

Giggles

Thanks Tim That worked out Perfect!!!

Giggles

tim m said:
=IF(E1="A",16,IF(E1="B",15,IF(E1="C",14,IF(E1="D",13,IF(E1="F",12)))))

You could try something like this however the more effecient method would be
to use Danny Lewis's way of creating a table and using a VLOOKUP formula.
 
G

Giggles

Thanks Danny,
for teaching me how to use LOOKUP, I'm sure I'll use it in the future.

giggles
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top