+ Reply to Thread
Results 1 to 6 of 6

help with making formula refer to dynamic table

  1. #1
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    help with making formula refer to dynamic table

    this is what I have:

    =VLOOKUP($J$2,maint!$I2:$AT17,MATCH(Q1,table17[[#Headers],[To: owner/rep]:[condoFee?]],0),0)

    and the "$I2:$AT17" part is the table I'm referring to, which happens to be "table17" also referenced in this formula.

    Problem is, I add rows to this table, after which any row residing below row 17 produces an error, obviously.

    So I thought to replacing "$I2:$AT17" with "table17" but that didn't help. Should it have? What should I do? Thanks.
    Excel 1.0.1 (16.0.14326.20140) (Android)
    Excel 2010 14.04.4760.1000

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: help with making formula refer to dynamic table

    Difficult to test without a sample workbook, but perhaps starting your formula as below would help?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB

  3. #3
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: help with making formula refer to dynamic table

    thanks. here, I've simplified it plus the original file has a lot of people's info on it.

    https://www.dropbox.com/s/pznh825a7e...ook1.xlsx?dl=0

    should be self explanatory. sheet 2 is referencing sheet 1 with vlookup and using match to match the column right. anyway, so it's shorter and I used your suggestion with the "#all" but I'm still getting an error. Hopefully this helps you help me. Thanks!
    Last edited by juntjoo; 04-17-2017 at 06:36 PM.

  4. #4
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: help with making formula refer to dynamic table

    oh wait a sec, I've forgotten how vlookup works. reset. so you can't reference a table with vlookup unless the first column is the one where you're reference is located correct?

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: help with making formula refer to dynamic table

    With a Vlookup (from Excel help)

    =VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

    Looks in the first column of an array and moves across the row to return the value of a cell
    Tip: The secret to VLOOKUP is to organize your data so that the value you look up (part number) is to the left of the return value you want to find (price of the part).
    Maybe you want to look at Index/Match
    HTH
    Regards, Jeff

  6. #6
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: help with making formula refer to dynamic table

    thanks. As it happens so often I resolve my problem accidentally on my own. IDK what happened but it just looks to me like Excel was being temperamental, but playing around with here and there somehow it started returning the right values.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 08-05-2015, 06:05 PM
  2. Making HLookup Formula Dynamic
    By kirby5050 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-20-2014, 05:13 PM
  3. Refer to a dynamic workbook in formula
    By dlow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2013, 04:04 PM
  4. Replies: 0
    Last Post: 08-01-2013, 12:27 PM
  5. Replies: 0
    Last Post: 07-29-2013, 10:45 AM
  6. Making pivot table dynamic
    By [email protected] in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 12-23-2012, 05:49 PM
  7. Making a dynamic range from a subset of data from datasource in a pivot table
    By Dag Lyster in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-03-2012, 03:49 AM

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