+ Reply to Thread
Results 1 to 10 of 10

Cross Reference Cells

  1. #1
    Registered User
    Join Date
    07-29-2008
    Location
    Washington St
    Posts
    13

    Cross Reference Cells

    I am involved with regional sales and have developed a spreadsheet to track various statistics and information regarding the various cities and clients.

    On Sheet1 I have Column A for the city names. Columns B through R are various statistical information (all numerical) associated with that city.

    I would like to use Sheet2 to quickly draw that information into a generic "printable" spreadsheet such that I type a city name into Sheet2 A1 and the rest of the cells automatically draw the information for that city into their respective cells.

    Looking through other threads I thought that maybe VLOOKUP would be the ticket, but it's only returning a #VALUE! error.

    Any thoughts or ideas? Thanks!

  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
    Can you post a sample workbook or at least the formula.

    See link for tips on vlookup

    http://www.contextures.com/xlFunctions02.html

    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
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi and welcome to the board,
    the error you got might have a number of reasons.
    Could you post a small sample of your data ( as an XLS file ) and the error you got?

    Cheers

  4. #4
    Registered User
    Join Date
    07-29-2008
    Location
    Washington St
    Posts
    13
    Thanks for the quick replies!

    I have attached a "watered down" version of the file. I notied that as I went through and edited the file, that now LOOKUP is returning #N/A and VLOOKUP is returning #REF!.

    Also, for what it's worth, I'm running Excel '97. I doubt that makes a difference here, but I thought it was worth mentioning anyway.

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Sorry, no file attached.
    Check the Manage Attachment button on the Reply to thread form

  6. #6
    Registered User
    Join Date
    07-29-2008
    Location
    Washington St
    Posts
    13
    Sorry about that....being new to the group here I'm a bit slow....lets try this again.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Does this help ( see attachment)
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-29-2008
    Location
    Washington St
    Posts
    13
    It's heading down the right road, but once I plugged the function into my worksheet it's not working consistantly. I have attached a modified version of the original file that I posted. You will see that I entered data in such that when you want to cross referance City 1 with Data 4, the cell will read, "City1-4".
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-29-2008
    Location
    Washington St
    Posts
    13
    I just figured it out. I'm not exactly sure what it does or what it means, but I had to have the Match Type set to 0.

    It's such a good feeling when you get Excel to make life easier.

    Thanks all!

  10. #10
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Glad to hear you could make it work

    Cheers

+ 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