Hi All
Office excel 2003
got a times worked sheet but if text entered in a cell #Value error appears & destroys formular can I add to formular to ignore text in cells & only count time please find attached
sheet starts monday to sunday start & finish times with 1/2 hour deducted for lunch but need to fill in when someone on sick course or holday these are in a drop down list
Many thanks
Last edited by hugrl; 12-06-2010 at 06:25 AM.
before we go there what is this bit supposed to be doing?
IF(D5>E5+F5>G5+H5>I5+J5>K5+L5>M5+N5>O5+P5>Q5,0)
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
[QUOTE=martindwilson;2429541]before we go there what is this bit supposed to be doing?
IF(D5>E5+F5>G5+H5>I5+J5>K5+L5>M5+N5>O5+P5>Q5,0)[/QUO
it part of formular I was given
Hi,
Use ISTEXT or ISNUMBER function.
Look at attached sheet and notice I added a collumb for hours worked for Monday.You can do that for every day and ad all the hours for the week in the last col.
You can do it all in one formula in the last col.,but as you can see, it will be a very long and complicated formula.
Be sure to format the "Hours" collumb as number, else your result could be in "Time of day" instead of hours.
Regards
Dan
Last edited by DanExel; 12-06-2010 at 04:01 AM.
I think the version you have is incorrect (regardless of text) assuming you wish to deduct 30 minutes per day.
If the shifts never cross midnight then the below should suffice:
If shifts do cross midnight you can use a SUMPRODUCT approach with MOD (though an Array may prove to be preferable given Text etc...)R5: =SUM(SUMIF($D$4:$Q$4,{"TIME OUT","TIME IN"},$D5:$Q5)*{1,-1})-COUNT($D5:$Q5)/2*"0:30" copied down format as [hh]:mm
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks