+ Reply to Thread
Results 1 to 4 of 4

Problems Getting False with a If statement

  1. #1
    Registered User
    Join Date
    04-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2019
    Posts
    4

    Problems Getting False with a If statement

    Heres the statement I am using

    =IF(VLOOKUP(B17,Products,5,FALSE)<>"",IF($U17="Gal",($F17/(VLOOKUP($B17,Products,5,FALSE)/100))/10,($F17/(VLOOKUP($B17,Products,5,FALSE)/100))))

    The goal of the statement is to have it look up a number and if there is no number to leave it blank (cant have div/0 errors) and if not blank follow through with the formula. The Charts for the lookup are on a different tab as well. I hope that helps... I've tried to work through this for about 3 hours now and just cant seem to get it to work.


    Edit
    figured out the false issue now im getting div / 0 errors due to the product code being a blank number for some reason its giving issues the code I'm using now is.
    =IF(VLOOKUP(B17,Products,5,FALSE)<>"","",IF($U17="Gal",($F17/(VLOOKUP($B17,Products,5,FALSE)/100))/10,($F17/(VLOOKUP($B17,Products,5,FALSE)/100))))
    Last edited by SethW; 04-16-2014 at 06:36 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,411

    Re: Problems Getting False with a If statement

    If the formula works as it is, then try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    04-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2019
    Posts
    4

    Re: Problems Getting False with a If statement

    Quote Originally Posted by TMS View Post
    If the formula works as it is, then try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    I love you this worked thanks very much :D

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,411

    Re: Problems Getting False with a If statement

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Problems with FALSE ERRORS!
    By astole in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2013, 02:26 AM
  2. If statement, answer is false, hide false.
    By Mel B in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-07-2013, 06:36 PM
  3. If statement with a range and true/false statement
    By aarleblanc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-20-2012, 06:34 PM
  4. Problems with .Refresh BackgroundQuery:=False
    By dmplacebo in forum Excel General
    Replies: 2
    Last Post: 02-01-2008, 04:54 AM
  5. Problems with .Refresh BackgroundQuery:=False
    By dmplacebo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-12-2005, 09:06 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