Is there an option where in on entering value in cell D8 say any thing above 8 hrs the extra minutes would be put in the next cell E8
eg: I put 8.15 in cell D8 on hiting enter the .15 goes to E8 and only 8 remains in D8
No macro plz
Is there an option where in on entering value in cell D8 say any thing above 8 hrs the extra minutes would be put in the next cell E8
eg: I put 8.15 in cell D8 on hiting enter the .15 goes to E8 and only 8 remains in D8
No macro plz
You would need to use VBA if you wish to amend D8 value upon entry (where required).
If you wish to avoid VBA...
You could set D8 to be whatever was input - eg 08:15, 04:30 etc... then normalise D8 to Max of 8 hours in E8, ie:
E8: =MIN("08:00",SUM(D8))
and subsequently apportion remainder to F8 (your E8 originally)
F8: =E8-D8
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Maybe it will be sufficient to format the data entry cell to just display the hour? Format the cell with custom format
h
then in the next cell use
=MINUTE(A1)
Teylyn's approach is efficient in that it requires no helper columns. Bear in mind if you use it, though, that the underlying value of D8 will still be 8.15. You'll have to subtract E8 for any math you want to do on it or otherwise round down to the nearest hour.
none of the soln seem to work
Try this workbook. The first solution is a modification of Teylyn's approach. The next two are DonkeyOte's in action, one with numbers and the other with time values.
the first soln was helpful, but i need this condn only for beyond 8 hrs
so say if it is 7.15 minutes then there is no transfer of the .15 mins in the next row
sanjay, I would suggest reading through all posts in full.
You can pull remainder using
=MAX(0,A1-"08:00")
However the above does not in any way shape or form alter the original input - ie if input is 8:15 it remains 8:15 with :15 in B1 which you imply is a requirement:
if you want to normalise initial entry to a max of 8 hours you are left with two alternatives, eitherOriginally Posted by sanjay
a) use VBA
b) use 2 formulas as previously outlined - one which caps the 8 and the other which accounts for excess should it exist.
else you will need to account for the excess time as stored in A values in any subsequent calculations you conduct.
Last edited by DonkeyOte; 11-30-2009 at 09:48 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks