=IF(G15=0,"Nil",IF(LEN(G15)>6,VLOOKUP(VALUE(LEFT(G15,(LEN(G15)-6))),Numbers!$A$1:$J$999,10,FALSE)&IF(VALUE(MID(G15,LEN(G15)-5,3))>0,VLOOKUP(VALUE(MID(G15,LEN(G15)-5,3)),Numbers!$A$1:$H$999,8,FALSE),)&IF(AND(VALUE(RIGHT(G15,3))>0,VALUE(RIGHT(G15,3))<100),"and "&VLOOKUP(VALUE(RIGHT(G15,3)),Numbers!$A$1:$F$999,6,FALSE),IF(VALUE(RIGHT(G15,3))=0,,VLOOKUP(VALUE(RIGHT(G15,3)),Numbers!$A$1:$F$999,6,FALSE))),IF(LEN(G15)>3,VLOOKUP(VALUE(LEFT(G15,(LEN(G15)-3))),Numbers!$A$1:$H$999,8,FALSE)&IF(VALUE(RIGHT(G15,3))>0,IF(VALUE(RIGHT(G15,3))<100,"and "&VLOOKUP(VALUE(RIGHT(G15,3)),Numbers!$A$1:$F$999,6,FALSE),VLOOKUP(VALUE(RIGHT(G15,3)),Numbers!$A$1:$F$999,6,FALSE)),""),IF(LEN(G15)<4,IF(VALUE(G15)>0,IF(VALUE(G15)<100,VLOOKUP(VALUE(G15),Numbers!$A$1:$F$999,6,FALSE),VLOOKUP(VALUE(G15),Numbers!$A$1:$F$999,6,FALSE)),""))))&"Yen")