A B C 1 Inp Out 2123 123---- B2: =FlyingDays(A2) 3345 --345-- 4x7 123456- 5x15 -234-67 61234567 1234567 7x 1234567
![]()
Please Login or Register to view this content.
A B C 1 Inp Out 2123 123---- B2: =FlyingDays(A2) 3345 --345-- 4x7 123456- 5x15 -234-67 61234567 1234567 7x 1234567
![]()
Please Login or Register to view this content.
Last edited by shg; 07-20-2014 at 03:18 PM.
Entia non sunt multiplicanda sine necessitate
This looks great. I can test it on Monday. I don't have a pc right now. But it looks like i save the macro and then place the formula all the the way down a column. Did I understand this correctly?
Looks very cool.
Thanks
Yup -- open the VBE, Insert > Module, paste the code there.
You're welcome.
formula option unfortunately it gives missing in reverse order!
=IF(A1="",1234567,IF(LEFT(A1)="x",SUBSTITUTE(7654321-SUMPRODUCT(MID(A1,COLUMN(INDIRECT("b"&":"&CHAR(64+LEN(A1)))),1)*10^(MID(A1,COLUMN(INDIRECT("b"&":"&CHAR(64+LEN(A1)))),1)-1)),0,"")+0,A1))
A B 1 123 123 2 345 345 3x1257 643 4 13456 13456 5x234 7651 6 1234567
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
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
revised formula
=IF(A1="","1234567",IF(LEFT(A1)="x",SUBSTITUTE(1234567-SUMPRODUCT(MID(A1,COLUMN(INDIRECT("b"&":"&CHAR(64+LEN(A1)))),1)*10^(8-MID(A1,COLUMN(INDIRECT("b"&":"&CHAR(64+LEN(A1)))),1)-1)),0,""),A1&""))
A B 1x123 4567 2x345 1267 3x1257 346 4x13456 27 5x234 1567 6 12345671234567 7x1234567 8 367367 9 156156 10x156 2347
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks