+ Reply to Thread
Results 1 to 3 of 3

LOOKUP to return closest match

Hybrid View

Kateabc LOOKUP to return closest match 02-18-2008, 12:30 PM
MarkFranklin Try this 02-18-2008, 12:44 PM
dominicb Good afternoon Kateabc ... 02-18-2008, 12:56 PM
  1. #1
    Registered User
    Join Date
    02-18-2008
    Posts
    1

    LOOKUP to return closest match

    I am working with an Excel spreadsheet to return a temperature in degrees Celsius when an output voltage for a thermocoupler is entered into a cell. I have two columns of data: the first lists temperatures, the second lists the theromcoupler readings.
    I have created a lookup cell in which one can enter an output voltage and then have the temperature returned in the next cell. My concern is that the Lookup function reads the list vertically, and provides a temperature that is equal to or less than a value, but this is not necessarily the best (closest) value. (ie. A reading of 0.516 will return 12 degrees, although a reading of 0.517 is 13 degrees. To be more accurate, I would like LOOKUP to return the closest temperature in all cases, whether that temperature be higher or lower.) I've played around with vLOOKUP, IF, and am having no success.
    What must I do to return a better match?
    Any assistance would be very much appreciated.

  2. #2
    Registered User
    Join Date
    07-17-2007
    Posts
    35

    Try this

    I am not sure this will help, I got the basis of this sheet from someone on this website.

    If you enter your known voltages into A and known temperatures into B then you can have the values you will want to find in d.
    the spreadhseet then interpolates between the values?

    any good?
    Attached Files Attached Files

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Kateabc

    ...and welcome to the forum!!

    Chip Pearson discusses this very subject on his site - you might like to have a look, he also provides an example to download.

    http://www.cpearson.com/excel/TablesAndLookups.aspx
    http://www.cpearson.com/Zips/Lookups2.zip

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

+ 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