+ Reply to Thread
Results 1 to 6 of 6

Creating a Customer List

  1. #1
    Registered User
    Join Date
    06-04-2007
    Posts
    3

    Creating a Customer List

    I have customer data (name,add,city,prov,code,phone) organized in columns. I would like to create a customer list to export to a web page.
    What is the easiest way to do this? I would like all the data to end up in Column A in the format

    Customer ABC
    111 Whatever Street
    Wherever, ON N2Y 2RX
    (555) 555-5555

    This works for the first customer but I need to repeat for 300 rows.

    =Customer!A3
    =Customer!B3
    =Customer!C3&","&" "&Customer!D3&" "&Customer!E3
    =Customer!F3

    Any suggestions ?

    THX

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    A small sample of data would be useful.

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    06-04-2007
    Posts
    3

    Example

    I would like to transpose the data in sheet 1 to the format in sheet 2 for approximately 300 unique customers.


    Sheet 1
    Current Cust Layout

    COL A---COL B-------------COL C-------COL D------COL E
    CustA---101 anywhere-----anytown-----Ontario-----H4X 2E7
    CustB---102 somewhere---dullsville-----BC---------V0G 1E5
    etc


    Sheet 2
    Web Layout

    COL A
    CustA
    101 anywhere
    anytown, Ontario H4X 2E7

    CustB
    102 anywhere
    dullsville, BC V0G 1ES

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Assuming data starts in A3 then try

    =OFFSET($A3,INT(ROW(B8)/4)-2,COLUMN(A3)-1)

    VBA Noob

  5. #5
    Registered User
    Join Date
    06-04-2007
    Posts
    3
    Thanks ... problem solved.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad it helped

    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1