+ Reply to Thread
Results 1 to 4 of 4

SOLVED! Need to add a function to my VLOOKUP to give result only if positive value

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question SOLVED! Need to add a function to my VLOOKUP to give result only if positive value

    I have a formula that does exactly as I want, but now I need to add something to say if the result is positive, enter the value. If the result is negative, enter 0

    Is there a way to do this?

    =VLOOKUP(A7,EVENING_Data!A$1:P$600,16,FALSE)
    Last edited by mmann1973; 01-08-2014 at 07:00 PM. Reason: solution posted

  2. #2
    Registered User
    Join Date
    11-26-2013
    Location
    Norway
    MS-Off Ver
    Excel 2013
    Posts
    67

    Re: Need to add a function to my VLOOKUP to give result only if positive value

    Yes, and it should be quite easy, just wrap the MAX-function around it, like this:
    =MAX(VLOOKUP(A7,EVENING_Data!A$1:P$600,16,FALSE), 0)
    Best regards

    Per Erik Midtr?d

  3. #3
    Registered User
    Join Date
    11-05-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need to add a function to my VLOOKUP to give result only if positive value

    That's exactly what I needed!!!!

    What if I want the value to be below 0?

  4. #4
    Registered User
    Join Date
    11-05-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need to add a function to my VLOOKUP to give result only if positive value

    Nevermind....tried =MIN(VLOOKUP(A7,EVENING_Data!A$1:P$600,16,FALSE), 0) and it worked like a charm

    THANKS!!!!!!

+ 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] Format function won't give correct result
    By danex in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2013, 07:24 AM
  2. [SOLVED] vlookup type function, see if string has key, if it does give value
    By edsters in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-13-2013, 10:05 PM
  3. [SOLVED] User Defined Function does not the give the correct result
    By rvc81 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2012, 03:07 AM
  4. VLOOKUP That needs to give result based on a ranking list
    By Sanecrazy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2012, 11:38 PM
  5. VLookup to give Blank result
    By mrcois in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2010, 11:50 AM

Tags for this Thread

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