Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MelissaS
 
Posts: n/a
Default How to use array formula for three variables?

I am trying to create a spreadsheet to track vacation, sick and holiday time
for 30 employees. Can anyone help me with the formulas? I want to have the
three totals summed up in one column at the end, is this possible? I will
enter any times like this: v3,s3,h0 in each daily column. Thanks =)
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Melissa,

I think this is what you mean

=SUM(IF(NOT(ISERROR((LOWER(LEFT(A20:A29,1))="v")*( SUBSTITUTE(LOWER(A20:A29),
"v","")))),--(SUBSTITUTE(LOWER(A20:A29),"v",""))))

it is an array formula so commit with Ctrl-SHift-Enter. Add more for s and
h.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"MelissaS" wrote in message
...
I am trying to create a spreadsheet to track vacation, sick and holiday

time
for 30 employees. Can anyone help me with the formulas? I want to have

the
three totals summed up in one column at the end, is this possible? I will
enter any times like this: v3,s3,h0 in each daily column. Thanks =)



  #3   Report Post  
Jim May
 
Posts: n/a
Default

With your data in Cell C2 and downward - I set up 3 new columns with D1 = v
,E1 = s , and F1 = h
and then entered in D2:
=IF(LEFT($C2,1)="v",VALUE(RIGHT($C2,LEN($C2)-1)),0)
copied right changing "v" to "s" and "h" appropriately
then copy each row 3 DEF down
a sum() of D E and F gets you total v, s and h;
HTH




"Bob Phillips" wrote in message
...
Melissa,

I think this is what you mean


=SUM(IF(NOT(ISERROR((LOWER(LEFT(A20:A29,1))="v")*( SUBSTITUTE(LOWER(A20:A29),
"v","")))),--(SUBSTITUTE(LOWER(A20:A29),"v",""))))

it is an array formula so commit with Ctrl-SHift-Enter. Add more for s and
h.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"MelissaS" wrote in message
...
I am trying to create a spreadsheet to track vacation, sick and holiday

time
for 30 employees. Can anyone help me with the formulas? I want to have

the
three totals summed up in one column at the end, is this possible? I

will
enter any times like this: v3,s3,h0 in each daily column. Thanks =)





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
Simple formula doesn't quite add up circeo Excel Discussion (Misc queries) 3 January 17th 05 09:04 PM
Array formula weird result Solerman Kaplon via OfficeKB.com Excel Discussion (Misc queries) 2 December 21st 04 08:39 PM
What instead of an array formula part 2 Reg Besseling Excel Discussion (Misc queries) 2 December 10th 04 07:35 AM
What instead of an array formula? Reg Besseling Excel Discussion (Misc queries) 3 December 6th 04 01:55 PM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


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