Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KH
 
Posts: n/a
Default Extracting # numbers from address

I trying to extract the unit numbers from an address which have the unit
number all over and then clearing the extracted #unit from the original
column.

Any easier formula?

e.g

123 Albert St #01-01
#02-112 St James St
12 Tomlinson Rd #01-01/02 George Bldg
#10-01-03 Smith St


--
KH
  #2   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

=FIND("#",address)
will return the location of the # sign, (or an error if it is not
there). You could then use LEFT(), RIGHT() and MID() functions to split
up the address around that point and looking for the next space.

Jerry

KH wrote:

I trying to extract the unit numbers from an address which have the unit
number all over and then clearing the extracted #unit from the original
column.

Any easier formula?

e.g

123 Albert St #01-01
#02-112 St James St
12 Tomlinson Rd #01-01/02 George Bldg
#10-01-03 Smith St


  #3   Report Post  
B. R.Ramachandran
 
Posts: n/a
Default

Hi KH,

Try this formula (in a new column, say in B1)! It assumes that the
addresses start at A1. Change the 'A1's in the formula appropriately.
Fill-in the formula in the rest of the new column.

=IF(ISNUMBER(FIND("
",TRIM(RIGHT(A1,LEN(A1)-FIND("#",A1))))),LEFT(TRIM(RIGHT(A1,LEN(A1)-FIND("#",A1))),FIND("
",TRIM(RIGHT(A1,LEN(A1)-FIND("#",A1))))-1),TRIM(RIGHT(A1,LEN(A1)-FIND("#",A1))))

Regards,
B.R. Ramachandran

"KH" wrote:

I trying to extract the unit numbers from an address which have the unit
number all over and then clearing the extracted #unit from the original
column.

Any easier formula?

e.g

123 Albert St #01-01
#02-112 St James St
12 Tomlinson Rd #01-01/02 George Bldg
#10-01-03 Smith St


--
KH

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting numbers from a cell morchard Excel Discussion (Misc queries) 2 June 30th 05 10:41 AM
Checking Winning Numbers in the Lottery. Ann Excel Discussion (Misc queries) 4 May 18th 05 10:55 AM
2 more questions about extracting numbers from text strings andy from maine Excel Discussion (Misc queries) 0 March 28th 05 09:47 PM
extracting numbers from string Chris Dowell via OfficeKB.com Excel Discussion (Misc queries) 1 January 12th 05 09:37 PM
extracting numbers with no more than 8-digits using advanced filtering Gauthier Excel Worksheet Functions 10 October 29th 04 10:06 PM


All times are GMT +1. The time now is 09:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"