ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do you calc half day annual leave on a xls spread sheet using. (https://www.excelbanter.com/excel-worksheet-functions/16664-how-do-you-calc-half-day-annual-leave-xls-spread-sheet-using.html)

RGayle_Imperial

How do you calc half day annual leave on a xls spread sheet using.
 
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

Bob Phillips

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)


"RGayle_Imperial" wrote in
message ...
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




Bob Phillips

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)


"Bob Phillips" wrote in message
...
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)


"RGayle_Imperial" wrote in
message ...
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






Jason Morin

Same concept as what Bob's given you, just shorter:

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

HTH
Jason
Atlanta, GA

-----Original Message-----
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
.


Bob Phillips

Smart-ass :-)

I think I might just use that!

Regards

Bob


"Jason Morin" wrote in message
...
Same concept as what Bob's given you, just shorter:

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

HTH
Jason
Atlanta, GA

-----Original Message-----
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
.




Jason Morin

<LOL

-----Original Message-----
Smart-ass :-)

I think I might just use that!

Regards

Bob


"Jason Morin" wrote

in message
...
Same concept as what Bob's given you, just shorter:

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

HTH
Jason
Atlanta, GA

-----Original Message-----
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
.



.



All times are GMT +1. The time now is 04:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com