How do you calc half day annual leave on a xls spread sheet using.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a spreadsheet showing annual leave in a workbook. I
have used countif to calc number of days. but how do i show half days using
formulas.

many thanks

Richard.Gayle
 
Richard,

I use a lower case l for half-day, upper-case L for a full-day and then
count them with

=SUMPRODUCT(--(ISNUMBER(FIND("L",D1:D20))))+=SUMPRODUCT(--(ISNUMBER(FIND("l"
,D1:D20))))/2

--

HTH

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

=SUMPRODUCT(--(ISNUMBER(FIND("L",D1:D20))))+SUMPRODUCT(--(ISNUMBER(FIND("l"
,D1:D20))))/2


--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Same concept as what Bob's given you, just shorter:

=SUMPRODUCT(ISNUMBER(FIND({"l","L"},D1:D20))*{0.5,1})

HTH
Jason
Atlanta, GA
 

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