+ Reply to Thread
Results 1 to 2 of 2

Table look up Macro

  1. #1
    Registered User
    Join Date
    07-18-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Table look up Macro

    I have the following setup:

    Worksheet A:

    Contains a Table named tbl_cars

    Model || Car Price
    =============
    Ford || 0
    Honda || 0
    Toyota || 0
    Ferrari || 0


    Worksheet B:

    Contains three cells:

    A1 = Honda
    B1 = Car Price
    C1 = 15,000

    How can I create a macro that uses cells A1 and B1 to look up a proper cell in tbl_cars and then populate it with value in C1?

  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: Table look up Macro

    Hello,

    you don't need a macro to do this. You can use Index/Match.

    I'm a bit confused, though, as to what you want to look up where. Can you post a real spreadsheet with some sample data and explain what the result should be?

    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