Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 42
Default Using SUBSTITUTE multiple times on single cell of data

I hope I worded that correctly!

I have a sheet with street addresses. Example:

A B C
123 Elm Street 90210
456 Main Ave 90210

I am trying to create a formula where I can create links to Whitepages.com
to look up phone numbers. The final result I'd like is a link that looks like
this:

http://www.whitepages.com/9900/searc...0210&state_id=

So far I know that I can do this:

=SUBSTITUTE("http://www.whitepages.com/9900/search/ReverseAddress?housenumber=123&street=Elm+St&city_ zip=90210&state_id=",123,A1)

But how do I write a formula that will give me the full result with not only
the House Number, but the Street Name and Zip code?

I guess my main question is how to run the formula for multiple results? Am
I even going about this the right way?

Thanks for any help!!


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Using SUBSTITUTE multiple times on single cell of data

I put this in A1--just to make it a little easier to read the formula:

http://www.whitepages.com/9900/searc...s?housenumber=

Then with my data in A2:Cxx, I used this in D2:Dxx:

=HYPERLINK($A$1&A2&"&street="&SUBSTITUTE(B2," ","%20")
&"&city_zip="&TEXT(C2,"00000"))

(all one cell)

The %20 is code for a space in HTML lingo.

It didn't find a house, though.

If you want to embed that first part of the link:


=HYPERLINK("http://www.whitepages.com/9900/search/ReverseAddress?housenumber="
&A2&"&street="&SUBSTITUTE(B2," ","%20")
&"&city_zip="&TEXT(C2,"00000"))

(Still all one cell)



Cameron wrote:

I hope I worded that correctly!

I have a sheet with street addresses. Example:

A B C
123 Elm Street 90210
456 Main Ave 90210

I am trying to create a formula where I can create links to Whitepages.com
to look up phone numbers. The final result I'd like is a link that looks like
this:

http://www.whitepages.com/9900/searc...0210&state_id=

So far I know that I can do this:

=SUBSTITUTE("http://www.whitepages.com/9900/search/ReverseAddress?housenumber=123&street=Elm+St&city_ zip=90210&state_id=",123,A1)

But how do I write a formula that will give me the full result with not only
the House Number, but the Street Name and Zip code?

I guess my main question is how to run the formula for multiple results? Am
I even going about this the right way?

Thanks for any help!!


--

Dave Peterson
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
Manual control of link updating for downloaded quotes? dk_ Excel Discussion (Misc queries) 9 November 15th 06 01:04 PM
Inputting data to one worksheet for it effect another daedalus1 Excel Discussion (Misc queries) 1 June 25th 06 04:39 PM
taking data from multiple cells and displaying in one cell djarcadian Excel Discussion (Misc queries) 2 May 30th 06 09:31 PM
Multiple dates, times, or formulas in a single cell PM-S Excel Discussion (Misc queries) 2 January 12th 06 04:19 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM


All times are GMT +1. The time now is 05:15 PM.

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"