Assign a number to a word

  • Thread starter Thread starter Noob McKnownowt
  • Start date Start date
N

Noob McKnownowt

Hello ladies and gentlemen,

when i first thought of this idea i didnt think it would be to diffcult to
produce, this initial thought has proven wrong :)

my problem is simple, i have created a table representing the days of the
week, in the following columns i have the amount of people and total hours,
such as;

day | people | Hours |
______________________________
monday | | |


what i want to do is input the amount of people and then have a result
calculated in the hours coloum, to do this i need to assign the word monday
with a numeric value i.e. 4.

so if i input 2 in the people column the result calculated in the hours
column would be 8.

houw can i do this, any assistance would be greatly appriciated.

the noob.
 
Before attempting to answer this do Tuesday thru Sunday have values and if so
what?

Mike
 
yes, although most days have the same, these are;

mon - 11.5
tue - 11
wed - 11.5
thur - 11
fri - 11
sat - 11
sun - 11

HTH, thanks.
 
Hi,

Build yourself a table somewhere out of the way that looks like this
Mon 11.5
Tue 11
Wed 11.5
Thu 11
Fri 11
Sat 11
Sun 11

My table is in L1 - M7 but it can be anywhere. The text in the table (Mon
etc) must be the same as uo enter in your table. Then use this formula

=B2*VLOOKUP(A2,L1:M7,2,FALSE)


Mike
 
Your a gent and a star, cheers pal.

Noob

Mike H said:
Hi,

Build yourself a table somewhere out of the way that looks like this
Mon 11.5
Tue 11
Wed 11.5
Thu 11
Fri 11
Sat 11
Sun 11

My table is in L1 - M7 but it can be anywhere. The text in the table (Mon
etc) must be the same as uo enter in your table. Then use this formula

=B2*VLOOKUP(A2,L1:M7,2,FALSE)


Mike
 

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

Back
Top