#1   Report Post  
Posted to microsoft.public.excel.misc
yorkshirewhite
 
Posts: n/a
Default Forumla help needed


Need help with this formula could someone please help me :)

I need a formula whereby the result sums up days and hours. However a
day is only 8 hours long.

The user types in S (for a full day) s1 (for 1 hour) s2 (for 2 hours)
s3 (for 3 hours etc up to 7 hours

So the formula needs to say for instance if i find an S and an S1 and
an S2, that would be 1 day and 3 hours shown as (1.3)

Or if I find an S7 and an S2 that would be 1 day and 1 hour shown as
(1.1)

Any help would be appreciated thank you


--
yorkshirewhite
------------------------------------------------------------------------
yorkshirewhite's Profile: http://www.excelforum.com/member.php...o&userid=31448
View this thread: http://www.excelforum.com/showthread...hreadid=521528

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Forumla help needed

This will show it as 1.125, not 1.1

=SUM(IF(EXACT(A1:A20,"S"),1,IF(EXACT(LEFT(A1:A20,1 ),"s"),RIGHT(A1:A20)/8)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"yorkshirewhite"
<yorkshirewhite.24kmiy_1142190900.5452@excelforu m-nospam.com wrote in
message news:yorkshirewhite.24kmiy_1142190900.5452@excelfo rum-nospam.com...

Need help with this formula could someone please help me :)

I need a formula whereby the result sums up days and hours. However a
day is only 8 hours long.

The user types in S (for a full day) s1 (for 1 hour) s2 (for 2 hours)
s3 (for 3 hours etc up to 7 hours

So the formula needs to say for instance if i find an S and an S1 and
an S2, that would be 1 day and 3 hours shown as (1.3)

Or if I find an S7 and an S2 that would be 1 day and 1 hour shown as
(1.1)

Any help would be appreciated thank you


--
yorkshirewhite
------------------------------------------------------------------------
yorkshirewhite's Profile:

http://www.excelforum.com/member.php...o&userid=31448
View this thread: http://www.excelforum.com/showthread...hreadid=521528



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
Little more help needed for my IF formula Greg Excel Discussion (Misc queries) 4 February 28th 06 11:16 PM
IF Forumla help Bryan Excel Discussion (Misc queries) 3 February 28th 06 11:17 AM
HELP!!! Can't get forumla figured out! JTKrupa Excel Discussion (Misc queries) 8 October 13th 05 10:13 PM
test forumla rather than result Ruthki Excel Worksheet Functions 2 July 6th 05 11:15 PM
help with forumla needed... getting a yes/no answer to ?? shorn Excel Worksheet Functions 1 May 29th 05 10:16 AM


All times are GMT +1. The time now is 06:55 AM.

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

About Us

"It's about Microsoft Excel"