+ Reply to Thread
Results 1 to 4 of 4

Look Up table not pulling correct figure

  1. #1
    Registered User
    Join Date
    03-19-2016
    Location
    London
    MS-Off Ver
    365
    Posts
    2

    Look Up table not pulling correct figure

    Hi All,

    I wonder if anyone can assist with an issue I have. I am currently trying to calculate a figure (F3) using the figure in (C2) and (C3) by then looking at a table on a separate sheet called 'base rates' to get the figure. I am amending an old formula and previously the list in C2 started at 500 and went up in increments of 500. I have re labeled the table in 'base rates' and if I continue to populate C2 with the 500 (for example) it does give the correct answer, however I want the numbers entered into (C2) to now run from 24-50 as opposed to 500-13000 (in 500 increments).

    The problem is two fold. The first is that when I put any number under 500 into C2 it returns a value of 2, in addition to get it to return the correct answer, I have to put in the larger figure and I cant work out where it is still looking to the 500 increments when I have changed it. (24 = 1 in the table but I have to put 500 in to get this result, 25 = 2 but I have to put in 1000 etc...)

    =IF(C3>500,0,HLOOKUP(C3,'Base rates'!B4:J30,Calculator!D3/500+1,FALSE))

    I think its the bit in blue causing the issues.

    Many Thanks
    Last edited by ROBOKOP; 03-19-2016 at 08:33 PM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Look Up table not pulling correct figure

    Just looking at this, I can see an issue. D3/500 will most likely come out as a decimal. It needs to be an integer. What are you trying to do with this formula? Could you post a sample spreadsheet? I would help a lot.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Look Up table not pulling correct figure

    The part you have in blue needs to be how many columns to go across.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    03-19-2016
    Location
    London
    MS-Off Ver
    365
    Posts
    2

    Re: Look Up table not pulling correct figure

    Thanks dflak

    I managed to address the error. The only issue I now need to address is how to get C2 to display I5 (26) and not the number of the line that the information is on. Any ideas?

    Please see attached

    Values.jpg
    Attached Images Attached Images
    Last edited by ROBOKOP; 03-20-2016 at 06:01 PM.

+ 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: 4
    Last Post: 07-27-2015, 07:27 AM
  2. Replies: 15
    Last Post: 11-25-2014, 08:14 AM
  3. Replies: 3
    Last Post: 10-10-2014, 08:14 AM
  4. [SOLVED] Trying to figure out a way to correct dates in 8000 line spreadsheet
    By ppilot in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-10-2014, 05:27 PM
  5. [SOLVED] Bar Chart Data label % figure not correct
    By Lsinshirley in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-03-2013, 09:59 AM
  6. [SOLVED] A correct formula gives an incorrect figure
    By GarMcCas in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-17-2006, 06:55 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