+ Reply to Thread
Results 1 to 7 of 7

Making lists...

  1. #1
    Registered User
    Join Date
    02-06-2010
    Location
    Copenhagen Denmark
    MS-Off Ver
    Excel 2007
    Posts
    10

    Making lists...

    I have four columns containing about 200 addresses.

    A Names
    B Streets
    C Cities
    D Phone no.

    If I write a name in D1 I want to get the corresponding street, city and phone no. in E1, F1 and G1.
    I also want to copy the formula downwards let's say ten times so I can make a list.
    If I for example just want to make a list of three names (D1-D3) I want the rest of the fields to stay blank.

    Can anybody help me please?

    Thank you!
    Last edited by Max30; 02-07-2010 at 04:49 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Making lists...

    Hi,

    you say you have data in columns A to D. Then you say you want to enter a name in D1. Does that mean you will overwrite the phone number?

    I'd suggest that you may want to start your new data area in column E. Write the name in cell E1. Then use something like

    =vlookup(E1,$A$1:$E$100,2,false) for the street in F1
    =vlookup(E1,$A$1:$E$100,3,false) for the city in G1
    etc.

  3. #3
    Registered User
    Join Date
    02-06-2010
    Location
    Copenhagen Denmark
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Making lists...

    Thanks, it worked out at last!
    The problem was that I had to change all commas to semicolon because of my Swedish version of Excel...
    One other thing, if I leave a "search field" (E1) emty I want it to stay blank, instead of saying N/A.
    Can that be solved?

    Thank you very much!

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Making lists...

    yes, you can use IFERROR for that

    =iferror(=vlookup(E1,$A$1:$E$100,2,false),"")

  5. #5
    Registered User
    Join Date
    02-06-2010
    Location
    Copenhagen Denmark
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Making lists...

    Thank you very much, it worked, I just to change the commas to semicolon as before.

    Now I'll check out my other "problem" in the Excel Programming forum, something for you perhaps?

    Have a nice weekend!

    /Max

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Making lists...

    Max, glad it worked for you.

    If you work with the Swedish version of Excel, you will always need to use the semicolon as the separator symbol between formula parameters. Most people here are probably on the English or US version, both of which use the comma.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  7. #7
    Registered User
    Join Date
    02-06-2010
    Location
    Copenhagen Denmark
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Making lists...

    Yes, you learn something new every day
    I'll go and mark this thread as solved.

    Thanks for your help!

    //Max

+ 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