How do I add another cell to this formula please?

MsCynic

Board Regular
Joined
May 21, 2006
Messages
122
I was provided with this formula by a kind user by the name of jtakw:
=IF(ISNUMBER(RIGHT(F2,4)+0),RIGHT(F2,4)+0,"")

It separates postcodes in the same cells as city names into their own cells. Some of my records' postcodes also fall within columns E or G. How can I add these so they are included along with Column F?

Thanks in advance for advice.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
As long as only one cell has postcodes this will work

=IF(ISNUMBER(RIGHT(E2,4)+0),RIGHT(E2,4)+0,IF(ISNUMBER(RIGHT(F2,4)+0),RIGHT(F2,4)+0,IF(ISNUMBER(RIGHT(G2,4)+0),RIGHT(G2,4)+0,"")))

But keep in mind that once it finds a post code , it stops looking. So think about the order of precedence you want. In the formula above, it's Col E,F,G
 
Upvote 0
Thank you so much. Yes, each row will only have a postcode in one cell so this would be perfect. I've finished for the day now but will give this a run tomorrow. Thanks again.
 
Upvote 0
Hi MsCynic,

Didn't know you needed more columns checked, you never posted any follow up to your other thread.
Base on you original sample, you can do this:


Book1
EFGHI
2#### Papamoa Beach RoadPapamoa 31183118
3Papamoa Village Park###### Parton RoadPapamoa 31183118
4Bayswater Village###### Maranui StreetMount Maunganui 31163116
Sheet7
Cell Formulas
RangeFormula
I2=IFERROR(RIGHT(E2,4)+0,IFERROR(RIGHT(F2,4)+0,IFERROR(RIGHT(G2,4)+0,"")))


I2 formula copied down.
 
Upvote 0
Thanks :) I thought I had posted a follow up question but when I went back to check it was not there. I wasn't sure if you were still around which is why I created a new thread - sorry for any confusion.
 
Upvote 0
You're welcome, no problem at all, and Yes, I'm around, hopefully for a long time.:cool::laugh:
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top