=IF([@ALTAddress]="SAME",[@Zip],IF(ISNUMBER(VALUE(RIGHT([@ALTAddress],5))),RIGHT([@ALTAddress],5),99999))
=IF([@ALTAddress]="SAME",[@Zip],IFERROR(RIGHT([@ALTAddress],5)+0,99999))
this is cool and I will give it a try.You do not need to explicitly check for <>"SAME" in your logic. If you reach that part of the IF, you already know it is not "SAME". You had the right idea with ISNUMBER but you have to first convert the string to a value.
Try this
Excel Formula:=IF([@ALTAddress]="SAME",[@Zip],IF(ISNUMBER(VALUE(RIGHT([@ALTAddress],5))),RIGHT([@ALTAddress],5),99999))
this is neat and I will also try this. thanks for the recommendations. what does CODE represent?Another option
Excel Formula:=IF([@ALTAddress]="SAME",[@Zip],IFERROR(RIGHT([@ALTAddress],5)+0,99999))
BTW, I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.
You should also update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
View attachment 25995
CODE is a tag used around formulas to format it to make it more readable and color-code different elements. You can do this by selecting your formula then clicking the "fx XLS" button in the edit controls.what does CODE represent?