I need to look at the Left 2 of a number and return a conversion. So here is the function excel has and worked but as you know it stops at 7 so how do I move this to VBA?
Thanks
=IF(LEFT(A9,2)="19","3",IF(LEFT(A9,2)="01","7",IF(LEFT(A9,2)="20","S",IF(LEFT(A9,2)="16","5",IF(LEFT(A9,2)="05","2",IF(LEFT(A9,2)="12","9",IF(LEFT(A9,2)="03","F",IF(LEFT(A9,2)="13","6",IF(LEFT(A9,2)="14","8",IF(LEFT(A9,2)="18","4","None Found"))))))))))
Thanks
=IF(LEFT(A9,2)="19","3",IF(LEFT(A9,2)="01","7",IF(LEFT(A9,2)="20","S",IF(LEFT(A9,2)="16","5",IF(LEFT(A9,2)="05","2",IF(LEFT(A9,2)="12","9",IF(LEFT(A9,2)="03","F",IF(LEFT(A9,2)="13","6",IF(LEFT(A9,2)="14","8",IF(LEFT(A9,2)="18","4","None Found"))))))))))