+ Reply to Thread
Results 1 to 2 of 2

A formula to reference a table

  1. #1
    Registered User
    Join Date
    01-03-2014
    Location
    United States
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    1

    A formula to reference a table

    I want my cell B2 to display an integer depending on what the cell next to it (A2) displays. Catch is, I have a table to help reduce the amount of IFs I program. I put the table on another sheet for space and cleanliness

    As I change A2, I want B2 to display what that table says the value should be. For example: If A2 is 15, I want it to display in B2 what the table references 15 equals, which would be 2. When A2 changes to 16, I want B2 to reference the table again, which it would then display 3.


    Example Table
    -----------
    | 14 | 2 |
    -----------
    | 15 | 2 |
    -----------
    | 16 | 3 |
    -----------
    | 17 | 3 |
    -----------
    | 18 | 4 |


    Is this possible? Is there a more efficient way to do this? Or is it a lost cause?

  2. #2
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: A formula to reference a table

    Use a vlookup...
    =IFERROR(VLOOKUP(A2,Sheet2!A1:B5,2,FALSE),"")

  3. #3
    Registered User
    Join Date
    01-03-2014
    Location
    United States
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    1

    Re: A formula to reference a table

    Thank you!

+ 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. [SOLVED] Excel table - using a formula in a structured reference
    By jankee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-22-2013, 08:10 AM
  2. Formula for a table reference....not even sure how to describe....
    By thb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-11-2013, 09:39 AM
  3. Using a formula referencing a table with a cell reference
    By heatherromo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-19-2013, 04:36 PM
  4. Absolute reference to table column in formula
    By jscott15 in forum Excel General
    Replies: 1
    Last Post: 11-03-2010, 01:00 PM
  5. Formula using 2 points of reference to return a value from a table
    By MrvinGover in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-02-2005, 04:40 PM

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