+ Reply to Thread
Results 1 to 3 of 3

LOOKUP Function returning #N/A some times

  1. #1
    Registered User
    Join Date
    08-30-2018
    Location
    Baraboo, WI
    MS-Off Ver
    2017
    Posts
    2

    LOOKUP Function returning #N/A some times

    I am working on a calculator for different Electrical Engineering equations. I know that there are tons of calculators out there that do these but I want to do it anyway.

    The part that I am getting hung up on is I have an SI prefix chart on one sheet. This shows, for example, that "k" = 1000, "m" = 0.001 etc.

    I am using this prefix chart to put multipliers on data in an adjacent column by using data validation to use a drop box to select "k", "m", etc.

    I only use that multiplier lookup in the result cell, so the result cell formula is pretty long with many LOOKUP functions to retrieve the correct multiplier for the inputs.

    The problem that I am having is that my result only works with some of the multipliers. Any multipliers greater than 1 return #N/A in the resulting cell. Also, if I select "f" for 10^−15, it results in #N/A but if I go to "z" it works fine.

    Not sure what I am doing wrong. Any ideas?

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,391

    Re: LOOKUP Function returning #N/A some times

    It is difficult to say without a solid example of your LOOKUP() functions. According to the help file (https://support.office.com/en-us/art...1-369d5e3864cb ), the LOOKUP() function returns N/A when the lookup value is smaller than the first value in the list (and the first value in the list should be the smallest value, since LOOKUP() requires that the lookup values be arranged in ascending order). My first guess is that you have failed/neglected to sort your lookup array/vector in ascending order.

    In a different direction, I would guess that you are doing "unit conversions" (centimeters to kilometers kind of thing). If so, you may be interested to know that the built in CONVERT() function can handle many of these unit conversions -- including the proper use of SI prefixes https://support.office.com/en-us/art...d-666c810f9af2
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    08-30-2018
    Location
    Baraboo, WI
    MS-Off Ver
    2017
    Posts
    2

    Re: LOOKUP Function returning #N/A some times

    That is probably my problem. The reference chart is in descending order. I don't have anymore time today but I will try this tomorrow and see if it fixes it.

    Thanks for the tip on the CONVERT() function!!!

+ 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] Returning complete rows via a lookup function without leaving gaps
    By luccallens in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-16-2016, 06:35 PM
  2. lookup function returning 00-jan-00 date values.
    By SpiritedAway in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2013, 08:49 AM
  3. Need function help on returning a value from lookup or Sumif
    By spanky27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2008, 09:20 PM
  4. Returning Cell Address based on a Lookup Function
    By ChristiaanV in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-25-2007, 10:05 PM
  5. LOOKUP function not returning expected value - Using vector_lookup format
    By JerichoForce in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2006, 05:50 AM
  6. Replies: 3
    Last Post: 10-10-2005, 01:05 PM
  7. Lookup function returning reference, not value
    By Caligula in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-28-2005, 02:05 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