ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel: I want to assign numeric values to letters in a speradsheet (https://www.excelbanter.com/excel-discussion-misc-queries/191334-excel-i-want-assign-numeric-values-letters-speradsheet.html)

Marion Black

Excel: I want to assign numeric values to letters in a speradsheet
 
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

Gary''s Student

Excel: I want to assign numeric values to letters in a speradsheet
 
With a letter in A1:
=LOOKUP(A1,{"A","B","C"},{1,2,3})
will give the numerical equivalent.

modify to suit.
--
Gary''s Student - gsnu200792


"Marion Black" wrote:

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


Bob Phillips

Excel: I want to assign numeric values to letters in a speradsheet
 
=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)



"Marion Black" <Marion wrote in message
...
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




Marion Black[_2_]

Excel: I want to assign numeric values to letters in a sperads
 
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!

"Gary''s Student" wrote:

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

modify to suit.
--
Gary''s Student - gsnu200792


"Marion Black" wrote:

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


Cmtes

If am set A=1,B=2,C=3...
I want AB=12


All times are GMT +1. The time now is 05:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com