+ Reply to Thread
Results 1 to 3 of 3

Using VLOOKUP instead of Nested IF with Negative values

  1. #1
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Using VLOOKUP instead of Nested IF with Negative values

    I have taken over an existing workbook, and have been trying to clean it up a bit. One of the things I wanted to fix was a nested IF statement (there are actually multiple). The original formula is:

    Please Login or Register  to view this content.
    I simply cannot seem to make it work. Now I have used this before, however there were never negative values involved like this. Column U displays the OLD formula and results, which are all correct. And column V contains my attempt at converting this formula to a VLOOKUP. The table for the named range is on the codes sheet. Thanks!!!
    Attached Files Attached Files
    ~*~ Sherry ~*~
    Poinciana, FL

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Using VLOOKUP instead of Nested IF with Negative values

    Put the lookup table in ascending order - you have it in descending order:

    Excel 2016 (Windows) 32 bit
    A
    B
    1
    variable
    Aging Results
    2
    -5000
    More than a year
    3
    -325
    6 Months to 1 Year
    4
    -165
    3 Months to 6 Months
    5
    -75
    30 Days to 90 Days
    6
    15
    Less than 30 days
    Sheet: codes

    and then use:

    =VLOOKUP($Q2,AgingResults,2,TRUE)

    It's an approximate match.
    Last edited by AliGW; 06-05-2020 at 12:01 PM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Re: Using VLOOKUP instead of Nested IF with Negative values

    Thanks AliGW,

    Worked like a charm, and such a simple mistake I made.

+ 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. Vlookup negative and positive values
    By Tailskidder in forum Office 365
    Replies: 1
    Last Post: 04-26-2020, 03:20 PM
  2. [SOLVED] VLOOKUP not reading negative values
    By pskwaak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2020, 01:59 AM
  3. [SOLVED] Index, Match, Vlookup in a range - error for negative values
    By Tai1001 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-03-2018, 09:20 AM
  4. Nested Loop to add negative values
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-15-2013, 01:50 AM
  5. Vlookup with ranges & negative values?
    By john_london in forum Excel General
    Replies: 4
    Last Post: 01-20-2011, 07:15 PM
  6. Is there anyway to use Vlookup for negative values or a range of values?
    By excelplshelp1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-28-2008, 10:19 AM
  7. Negative Values and VLOOKUP
    By katzeye in forum Excel General
    Replies: 4
    Last Post: 04-14-2007, 01:21 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