![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: Rick Trankle
Posts: 8
|
I am trying to calculate seconds and frames for music. Each second is divided into 75 (0-74). Left of the decimal point is seconds, right of the decimal point is frame number. I want to add, subtract or multiply, e.g., 2.45 + 5.65 with a one step formula. Then also take total number of frames and convert back to seconds.frames.
2x75=150+45=195 + 5x75=375+65=440 = 635 (total frames) /75 = 8 seconds ???frames 8x75=600 635-600=35 8.35 (What formula to get this number?) [ This Message was edited by: rickeyjt on 2002-03-15 08:20 ] |
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
Quote:
|
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Location: Rick Trankle
Posts: 8
|
Right. The number to the right of the decimal point can only go up to 74. Then the seconds will increment 1 and the number to the right of the decimal point will be 0.
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Total frames can be calculated using the array formula...
{=SUM(TRUNC(A1:A2)*75+MOD(A1:A2,1)*100)} ...where A1:A2 contains {2.45;5.65}. Note: Array formulas must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula. With the Total frames formula in C1 your 'seconds.frames' value can be calculated using... =TRUNC(C1/75)+MOD(C1/75,1)*0.75 [ This Message was edited by: Mark W. on 2002-03-15 09:23 ] |
|
|
|
|
|
#5 | |
|
New Member
Join Date: Mar 2002
Location: Rick Trankle
Posts: 8
|
Quote:
|
|
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
Note: This is an array formula which must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula. |
|
|
|
|
|
|
#7 | ||
|
New Member
Join Date: Mar 2002
Location: Rick Trankle
Posts: 8
|
Quote:
|
||
|
|
|
|
|
#8 | |||
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
[ This Message was edited by: Mark W. on 2002-03-15 11:07 ] |
|||
|
|
|
|
|
#9 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
|
You can also use the DOLLARDE() and DOLLARFR() functions.
If you have a cell(A1) with 8.45 (8 seconds and 45 frames), DOLLARDE(A1,75) will convert it to a decimal equivalent (i.e. 8.6), which you can use in normal math operations. If your result is in cell(C1), you can convert it back with DOLLARFR(C1,75) [ This Message was edited by: lenze on 2002-03-15 11:11 ] [ This Message was edited by: lenze on 2002-03-15 11:12 ] |
|
|
|
|
|
#10 | |
|
New Member
Join Date: Mar 2002
Location: Rick Trankle
Posts: 8
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|