+ Reply to Thread
Results 1 to 5 of 5

[Solved] 2 way lookup between tables

  1. #1
    Registered User
    Join Date
    02-26-2008
    MS-Off Ver
    Excel 2016
    Posts
    23

    [Solved] 2 way lookup between tables

    Hello, I'm having trouble with 2 way lookups in tables.
    I have 2 tables
    One has expenses and their budgets each month.
    The other has different types of spending patterns by month.

    I need to multiply the budget by the month's spending percent according to it's Spending Pattern. I have a working formula in one column, but I need to drag it across all the months. I want to use a formula that I can drag across months, as we have several other tables of data. I always have problems dragging formulas across months when I use tables. Am I missing a way to use absolute and relative references between tables and columns??

    Also, I'm using Excel 2010

    Thanks for the help! I hope I was able to explain my problem correctly!
    Joe
    Attached Files Attached Files
    Last edited by joedrummer; 01-28-2012 at 12:50 PM.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: 2 way lookup between tables

    in G7 copy and paste, drag across and down

    =INDEX($B$2:$N$4,MATCH($C7,$A$2:$A$4,0),MATCH(G$6,$B$1:$N$1,0))*$B7

  3. #3
    Registered User
    Join Date
    02-26-2008
    MS-Off Ver
    Excel 2016
    Posts
    23

    Re: 2 way lookup between tables

    Thanks JieJenn, this is close to what I want. I've updated my spreadsheet using your formula to get the exact numbers I need. I would still like to know if there a way to do this index using the table structured references? I ask because we have lots of different budgets for different areas of the company. Also, when working with tables like these, I very frequently want to drag formulas (with the table's structured references) across columns, and it always treats the columns like relative references, but I want them to be absolute.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: 2 way lookup between tables

    Unfortunately, I don't know how to lock the reference when it is a table reference.

  5. #5
    Registered User
    Join Date
    02-26-2008
    MS-Off Ver
    Excel 2016
    Posts
    23

    Re: 2 way lookup between tables

    Well I've found out why I was having the problem. In table references, if you drag across, all references are treated as relative and shift with the drag. If you copy and paste each column individually, they are treated as absolute. I was having problems because I want some to stay absolute and the date to shift.
    Thanks for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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