Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default characters and values


Hi,

I've a question about giving characters a value.
Let's say you have your schedule for work in your Excel sheet and ther
are several shifts with different time spaces your boss uses to let yo
work. These time spaces are used as characters.

For instance A is an 8 hour shift and B is a 6 hour shift, while C i
just a 2 hour shift.

Cell A1 = Monday, Cell A2 = A
B1 = Tuesday, B2 = B
C1 = Wednesday, C2 = C
D1 = Thursday, D2 = A
E1 = Friday, E2 = A
F1 = Total hours, F2 = sum A2..E2

How can I make sure F2 will tell me I would have worked 32 hours whil
still using A, B and C insteas of 8, 4 and 2 ?

Thanks,
Partysqua

--
Partysqua
-----------------------------------------------------------------------
Partysquad's Profile: http://www.excelforum.com/member.php...fo&userid=2897
View this thread: http://www.excelforum.com/showthread.php?threadid=49900

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default characters and values

Try

=COUNTIF(A2:E2,"A")*8+COUNTIF(A2:E2,"B")*4+COUNTIF (A2:E2,"C")*2

"Partysquad" wrote
in message ...

Hi,

I've a question about giving characters a value.
Let's say you have your schedule for work in your Excel sheet and there
are several shifts with different time spaces your boss uses to let you
work. These time spaces are used as characters.

For instance A is an 8 hour shift and B is a 6 hour shift, while C is
just a 2 hour shift.

Cell A1 = Monday, Cell A2 = A
B1 = Tuesday, B2 = B
C1 = Wednesday, C2 = C
D1 = Thursday, D2 = A
E1 = Friday, E2 = A
F1 = Total hours, F2 = sum A2..E2

How can I make sure F2 will tell me I would have worked 32 hours while
still using A, B and C insteas of 8, 4 and 2 ?

Thanks,
Partysquad


--
Partysquad
------------------------------------------------------------------------
Partysquad's Profile:
http://www.excelforum.com/member.php...o&userid=28970
View this thread: http://www.excelforum.com/showthread...hreadid=499001



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default characters and values

In A3 enter:

=(A2="A")*8+(A2="B")*6+(A2="C")*2
and copy thru E3

In F2 enter:

=SUM(A3:E3)

--
Gary''s Student


"Partysquad" wrote:


Hi,

I've a question about giving characters a value.
Let's say you have your schedule for work in your Excel sheet and there
are several shifts with different time spaces your boss uses to let you
work. These time spaces are used as characters.

For instance A is an 8 hour shift and B is a 6 hour shift, while C is
just a 2 hour shift.

Cell A1 = Monday, Cell A2 = A
B1 = Tuesday, B2 = B
C1 = Wednesday, C2 = C
D1 = Thursday, D2 = A
E1 = Friday, E2 = A
F1 = Total hours, F2 = sum A2..E2

How can I make sure F2 will tell me I would have worked 32 hours while
still using A, B and C insteas of 8, 4 and 2 ?

Thanks,
Partysquad


--
Partysquad
------------------------------------------------------------------------
Partysquad's Profile: http://www.excelforum.com/member.php...o&userid=28970
View this thread: http://www.excelforum.com/showthread...hreadid=499001


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd Characters instead of values SteveW[_2_] Excel Discussion (Misc queries) 0 January 24th 08 04:03 PM
How to add characters to all existing values in a given column Danny Excel Worksheet Functions 4 April 11th 06 09:59 PM
Replace characters from cell values Paul Martin Excel Programming 5 August 15th 05 05:31 AM
Can I have more than 255 characters in Chart "Values" of Excel 2k? Lloyd Benson Charts and Charting in Excel 3 July 9th 05 12:38 AM
Changing numbers to characters by using range values spolk[_5_] Excel Programming 5 May 25th 04 08:09 AM


All times are GMT +1. The time now is 02:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"