Hi I have two long formulas that I want to make into a UDF so that it's easy to work with.
The first formula calculates the duration in Frames per seconds from two time codes is:
=("0:"&TEXT(DOLLARFR(ROUND(((LEFT(D3,8)*(86400*30)+RIGHT(D3,2))-(LEFT(B3,8)*(86400*30)+RIGHT(B3,2))),0)/30,30),"0.00"))+0
I want to have a function that asks the user for the start time and end time
THe second formula adds the total duration:
=SUMPRODUCT(FLOOR(F3:F4,"0:1.0"))+("0:"&TEXT(DOLLARFR(SUMPRODUCT(ROUND(MOD(F3:F4*86400,1)*100,0))/30,30),"0.00"))
I want an argument that prompts for the range to be added.
I tried making the function with parameters and kept getting #Value as my result.
I did:
Public Function frameDur(fStart, fEnd)
frameDur=("0:"&TEXT(DOLLARFR(ROUND(((LEFT(fEnda,8)*(86400*30)+RIGHT(fEnd,2))-(LEFT(fStart,8)*(86400*30)+RIGHT(fStart,2))),0)/30,30),"0.00"))+0
End Function
for each function I added Application.WorksheetFunction.(Function Name) and that didn't help.
Any help would greatly be appreciated.
Bookmarks