Hi
I'm trying to create a Macro to run the formula below. however I get halfway through typing it in and the text turns red indicating an error. i'm guessing maybe its too long.
Please can someone advise a way round this
=IF(OR(E2="COI",),"AFI",IF(OR(E2="COE"),"AFX",IF(OR(E2="KGE",E2="MGE",E2="MZE",E2="OGE",E2="OZE",E2="PGE"),"CUE",IF(OR(E2="DFI",E2="DHI",E2="DKI"),"DDI",IF(OR(E2="DFE",E2="DHI",E2="DKI"),"DDI",IF(OR(E2="DFE",E2="DHE",E2="DKE"),"DDX",IF(OR(E2="EUI"),"EPI",IF(OR(E2="EUX"),"EPX",IF(OR(E2="CSI"),"FSI",IF(OR(E2="CSX"),"FSX",IF(OR(E2="LBE",E2="LDE",E2="LFE",E2="LGE",E2="LNE",E2="LNL",E2="LSI",E2="LZE",E2="NGE",E2="NZE"),"HUE",IF(OR(E2="MGI",E2="MHI",E2="MHS",E2="MMI",E2="MQI",E2="MYI"),"MCI",IF(OR(E2="SAE",E2="SBE",E2="SCE",E2="SDE",E2="SEE",E2="SFE",E2="SNE",E2="SOE",E2="SPE",E2="SSE",E2="STE",E2="SXE"),"MKE",IF(OR(E2="MSI",E2="SCI",E2="SHI",E2="SOI",E2="STE",E2="STI"),"MKI",IF(OR(E2="EBE",E2="EDE",E2="EFE",E2="EGE",E2="EIE",E2="EME",E2="ENL",E2="EPE",E2="EPO",E2="ETE",E2="EZE",E2="LIM",E2="MEI",E2="MTE",E2="TJH",E2="TPI",E2="TPN",E2="TPT"),"MUE",IF(OR(E2="EMI",E2="ESI",E2="EVI",E2="EXI",E2="MIW",E2="MLI",E2="MNI",E2="MPI",E2="MRI",E2="MTI",E2="MZI"),"MUI"))))))))))))))))
Thanks
I'm trying to create a Macro to run the formula below. however I get halfway through typing it in and the text turns red indicating an error. i'm guessing maybe its too long.
Please can someone advise a way round this
=IF(OR(E2="COI",),"AFI",IF(OR(E2="COE"),"AFX",IF(OR(E2="KGE",E2="MGE",E2="MZE",E2="OGE",E2="OZE",E2="PGE"),"CUE",IF(OR(E2="DFI",E2="DHI",E2="DKI"),"DDI",IF(OR(E2="DFE",E2="DHI",E2="DKI"),"DDI",IF(OR(E2="DFE",E2="DHE",E2="DKE"),"DDX",IF(OR(E2="EUI"),"EPI",IF(OR(E2="EUX"),"EPX",IF(OR(E2="CSI"),"FSI",IF(OR(E2="CSX"),"FSX",IF(OR(E2="LBE",E2="LDE",E2="LFE",E2="LGE",E2="LNE",E2="LNL",E2="LSI",E2="LZE",E2="NGE",E2="NZE"),"HUE",IF(OR(E2="MGI",E2="MHI",E2="MHS",E2="MMI",E2="MQI",E2="MYI"),"MCI",IF(OR(E2="SAE",E2="SBE",E2="SCE",E2="SDE",E2="SEE",E2="SFE",E2="SNE",E2="SOE",E2="SPE",E2="SSE",E2="STE",E2="SXE"),"MKE",IF(OR(E2="MSI",E2="SCI",E2="SHI",E2="SOI",E2="STE",E2="STI"),"MKI",IF(OR(E2="EBE",E2="EDE",E2="EFE",E2="EGE",E2="EIE",E2="EME",E2="ENL",E2="EPE",E2="EPO",E2="ETE",E2="EZE",E2="LIM",E2="MEI",E2="MTE",E2="TJH",E2="TPI",E2="TPN",E2="TPT"),"MUE",IF(OR(E2="EMI",E2="ESI",E2="EVI",E2="EXI",E2="MIW",E2="MLI",E2="MNI",E2="MPI",E2="MRI",E2="MTI",E2="MZI"),"MUI"))))))))))))))))
Thanks