+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    03-13-2010
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    3

    VLOOKUP function

    Hi,
    Could somebody explain me why my formula works with negative values and not with positive?
    =IF(ABS(VLOOKUP(E24,P108:T113,5,FALSE))>S109,U18,IF(ABS(VLOOKUP(E24,P108:T113,5,FALSE))>R109,U17,IF( ABS(VLOOKUP(E24,P108:T113,5,FALSE))>Q109,U16,U15)))

  2. #2
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,729

    Re: Excel VLOOKUP function

    can you explain what you trying to do?
    "Relax. What is mind? No matter. What is matter? Never mind!"

  3. #3
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: Excel VLOOKUP function

    what's your value in say s1009
    say its +20 and vlook up returns -50 then abs(-50)=50 and is greater but if vlookup returns +11 abs(+11)=11 then its smaller so onto next if ...and so on ;so as zbor says what is it you're trying to do, what doesnt work where?
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    03-13-2010
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Excel VLOOKUP function

    Methods Data1 Data2 Data3 Amount
    A 800000 900000 1000000 -5000000
    B 800000 900000 1000000 -3000000
    C 800000 900000 1000000 -2000000
    D 800000 900000 1000000 3000
    E 1600000 1800000 2000000 25000

    =IF(ABS(VLOOKUP(Method,A1:E6,5,FALSE))>Data3,"BREACH",IF(ABS(VLOOKUP(Method,A1:E6,5,FALSE))>Data2,"A LERT",IF(ABS(VLOOKUP(Method,A1:E6,5,FALSE))>Data1,"WARNING","OK")))

    I receive result "BREACH" when I use Method D and E that incorrect. Result should be "OK"
    Where is my fault?

  5. #5
    Forum Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,140

    Re: VLOOKUP function

    If you are using named ranges, the formula will always refer to that cell. In the first instance, you used cell references. Is it possible to post a sanitized copy of the workbook so we can see which you're using? The formula works fine for me when I use normal cell references.

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.2.0