ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Address in excel (https://www.excelbanter.com/excel-discussion-misc-queries/157396-address-excel.html)

Patrick Bateman

Address in excel
 
Hi, i am pulling through and address from a query which is in the form:

NameNumberStreettownpostco de

and i need it to populate cells in the form:

Name
Number
Street
town
Postcode

any ideas how?

any help would be much appreciated

regards

Patrick




Stefi

Address in excel
 
Try PasteSpecial/Transpose!

Regards,
Stefi


Patrick Bateman ezt *rta:

Hi, i am pulling through and address from a query which is in the form:

NameNumberStreettownpostco de

and i need it to populate cells in the form:

Name
Number
Street
town
Postcode

any ideas how?

any help would be much appreciated

regards

Patrick




Patrick Bateman

Address in excel
 
Hi thankyou, but that didnt work, i may not have explained properly, all the
address information is in one cell.

regards

Patrick


"Stefi" wrote:

Try PasteSpecial/Transpose!

Regards,
Stefi


Patrick Bateman ezt *rta:

Hi, i am pulling through and address from a query which is in the form:

NameNumberStreettownpostco de

and i need it to populate cells in the form:

Name
Number
Street
town
Postcode

any ideas how?

any help would be much appreciated

regards

Patrick




Stefi

Address in excel
 
Then first separate them with Data/Text to columns!

Regards,
Stefi


Patrick Bateman ezt *rta:

Hi thankyou, but that didnt work, i may not have explained properly, all the
address information is in one cell.

regards

Patrick


"Stefi" wrote:

Try PasteSpecial/Transpose!

Regards,
Stefi


Patrick Bateman ezt *rta:

Hi, i am pulling through and address from a query which is in the form:

NameNumberStreettownpostco de

and i need it to populate cells in the form:

Name
Number
Street
town
Postcode

any ideas how?

any help would be much appreciated

regards

Patrick




Patrick Bateman

Address in excel
 
this partly works when i do it but is it possible for it to be done
automatically as each different address is pulled through from the query?

regards

patrick

"Stefi" wrote:

Then first separate them with Data/Text to columns!

Regards,
Stefi


Patrick Bateman ezt *rta:

Hi thankyou, but that didnt work, i may not have explained properly, all the
address information is in one cell.

regards

Patrick


"Stefi" wrote:

Try PasteSpecial/Transpose!

Regards,
Stefi


Patrick Bateman ezt *rta:

Hi, i am pulling through and address from a query which is in the form:

NameNumberStreettownpostco de

and i need it to populate cells in the form:

Name
Number
Street
town
Postcode

any ideas how?

any help would be much appreciated

regards

Patrick




Stefi

Address in excel
 
You have to write a VBA macro for this purpose!

Regards,
Stefi


Patrick Bateman ezt *rta:

this partly works when i do it but is it possible for it to be done
automatically as each different address is pulled through from the query?

regards

patrick

"Stefi" wrote:

Then first separate them with Data/Text to columns!

Regards,
Stefi


Patrick Bateman ezt *rta:

Hi thankyou, but that didnt work, i may not have explained properly, all the
address information is in one cell.

regards

Patrick


"Stefi" wrote:

Try PasteSpecial/Transpose!

Regards,
Stefi


Patrick Bateman ezt *rta:

Hi, i am pulling through and address from a query which is in the form:

NameNumberStreettownpostco de

and i need it to populate cells in the form:

Name
Number
Street
town
Postcode

any ideas how?

any help would be much appreciated

regards

Patrick




Max

Address in excel
 
Some thoughts ..

Assuming you have split (using DataText to Columns) the imported data into
5 cols in Sheet1's cols A to E, from row1 down, eg:

Name1 Number1 Street1 town1 postcode1
Name2 Number2 Street2 town2 postcode2
Name3 Number3 Street3 town3 postcode3
etc

Then in Sheet2,

Put in A1:
=OFFSET(Sheet1!$A$1,INT((ROWS($1:1)-1)/5),MOD(ROWS($1:1)-1,5))
Copy A1 down as far as required, until zeros appear signalling exhaustion of
data in Sheet1. Col A will return it in the desired single column "repeating"
format, viz:

Name1
Number1
Street1
town1
postcode1
Name2
Number2
Street2
town2
postcode2
etc

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com