Hello Everyone!
How to nest the long excel formula in vba using WorksheetFunction?
Here is my goal...
I need to convert the following into Minutes
Column A - Column B(mins)
0Day(s), 5Hour(s), 25Min(s) - 325
4Day(s), 7Hour(s), 11Min(s) - 6191
7Day(s), 8Hour(s), 2Min(s) - 10562
So I have created a following nested formula to get the result
=(LEFT(A1,(FIND("D",A1,1))-1)*24*60)+(MID(A1,(FIND(" ",A1,1))+1,(FIND("H",A1,1))-(FIND(" ",A1,1)+1))*60)+MID(A1,(FIND(",",(SUBSTITUTE(A1,","," ",1)))+2),(FIND("M",A1,1))-(FIND(",",(SUBSTITUTE(A1,","," ",1)))+2))
now I want to perform the same using VBA WorksheetFunction,
Is that possible?
Thanks in advance.
How to nest the long excel formula in vba using WorksheetFunction?
Here is my goal...
I need to convert the following into Minutes
Column A - Column B(mins)
0Day(s), 5Hour(s), 25Min(s) - 325
4Day(s), 7Hour(s), 11Min(s) - 6191
7Day(s), 8Hour(s), 2Min(s) - 10562
So I have created a following nested formula to get the result
=(LEFT(A1,(FIND("D",A1,1))-1)*24*60)+(MID(A1,(FIND(" ",A1,1))+1,(FIND("H",A1,1))-(FIND(" ",A1,1)+1))*60)+MID(A1,(FIND(",",(SUBSTITUTE(A1,","," ",1)))+2),(FIND("M",A1,1))-(FIND(",",(SUBSTITUTE(A1,","," ",1)))+2))
now I want to perform the same using VBA WorksheetFunction,
Is that possible?
Thanks in advance.