Excel: I want to assign numeric values to letters in a speradsheet

M

Marion Black

Hi,
Any help would be very greatfully received!
I am trying to work on a spreadsheet for a staffing rota. Each shift type
has a letter (i.e. E or LS). I need to assign a numeric value to each letter
that represents the number of hours of that shift (i.e. E= 5.5), so that
totals can be calculated more easily...
But I'm stumped! :s
 
G

Gary''s Student

With a letter in A1:
=LOOKUP(A1,{"A","B","C"},{1,2,3})
will give the numerical equivalent.

modify to suit.
 
B

Bob Phillips

=VLOOKUP(E1,{"E",4;"F",3;"LG",5;"LS",5.5;"MA",4},2,FALSE)

adjust the values to suit

You can put the values in a table and refer to that

=VLOOKUP(E1,Sheet2!A1:B52,FALSE)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
M

Marion Black

This doesn't seem to keep the letters displayed.
The idea is that the representative letters are displayed (E, LS etc) but
are interpreted by Excel as values, which can then be summed etc.
And pretty please can any replies be put as simply as possible, I'm not fab
with excel :(
Thanks!
 

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