#1   Report Post  
Brando
 
Posts: n/a
Default Text Values

I'm tryng to build a spreadsheet to track employee vacations. How do I
sum 8 hours if a cell has a "V" entered and 4 hours if a cell has an
"X" entered?

  #2   Report Post  
CLR
 
Posts: n/a
Default

Assuming you're using column A, and each row is either the number of hours
worked, or a V or a X, then use a helper column, B, and insert this in B1
and copy down.......change the A1's to A2's if you have a header in Row 1,
and put this in B2.

=IF(A1="V",8,IF(A1="X",4,A1))

Vaya con Dios,
Chuck, CABGx3


"Brando" wrote in message
oups.com...
I'm tryng to build a spreadsheet to track employee vacations. How do I
sum 8 hours if a cell has a "V" entered and 4 hours if a cell has an
"X" entered?



  #3   Report Post  
Brando
 
Posts: n/a
Default

Thanks!

But what I have is a workbook with 12 sheets with the months and 1
sheet with statistics. I have 30 employees listed down Column A and
the days of the month across the row. The stat sheet sums the number
of days taken by an employee. I want to enter a V to show he/she is
taking a full day of vacation or an X to indicate a 1/2 day. This will
allow employees to see what days are available. The stat sheet allows
me to track how much time each employee has scheduled and taken.

  #4   Report Post  
CLR
 
Posts: n/a
Default

If you want to add the numbers in a single row, including 8 for V and 4 for
X, then maybe this, adjusted for your row length might do it for you.......

=SUM(A1:Z1)+(COUNTIF(A1:Z1,"V")*8)+(COUNTIF(A1:Z1, "X")*4)

Vaya con Dios,
Chuck, CABGx3



"Brando" wrote in message
oups.com...
Thanks!

But what I have is a workbook with 12 sheets with the months and 1
sheet with statistics. I have 30 employees listed down Column A and
the days of the month across the row. The stat sheet sums the number
of days taken by an employee. I want to enter a V to show he/she is
taking a full day of vacation or an X to indicate a 1/2 day. This will
allow employees to see what days are available. The stat sheet allows
me to track how much time each employee has scheduled and taken.



  #5   Report Post  
Brando
 
Posts: n/a
Default

That did it for me!

Thanks so much for the help.



  #6   Report Post  
CLR
 
Posts: n/a
Default

You're more than welcome...........thanks for the feedback...........

Vaya con Dios,
Chuck, CABGx3


"Brando" wrote in message
ups.com...
That did it for me!

Thanks so much for the help.



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
Count how many different text values in an array. OVERLOAD Excel Worksheet Functions 3 April 14th 05 04:12 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Remove the apostrophe (') in Excel cell text values Connull Excel Discussion (Misc queries) 5 January 11th 05 05:06 PM
Stop Excel from converting text labels in CSV files to Values Just Want a Label! Excel Discussion (Misc queries) 1 January 11th 05 04:51 PM
text and values combined in one cel Bart Excel Discussion (Misc queries) 1 December 14th 04 08:36 AM


All times are GMT +1. The time now is 11:08 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"