+ Reply to Thread
Results 1 to 17 of 17

returns #N/A instead of a FALSE value

  1. #1
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    returns #N/A instead of a FALSE value

    Hello,

    This is the formula:
    Please Login or Register  to view this content.
    Why does it return #N/A instead of a FALSE value which is
    Please Login or Register  to view this content.
    ?



    P.S. CellD23

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: returns #N/A instead of a FALSE value

    hi kao. that's because the VLOOKUP could not find USDNZD in quotes worksheet. why not:
    =IF(COUNTIF(quotes!B3:C40,B8&RIGHT(C12,3)),B8&RIGHT(C12,3),RIGHT(C12,3)&B8)

    so the first part is simply counting if there is a combination "USDNZD" inside quotes worksheet.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: returns #N/A instead of a FALSE value

    Quote Originally Posted by benishiryo View Post
    hi kao. that's because the VLOOKUP could not find USDNZD in quotes worksheet. why not:
    =IF(COUNTIF(quotes!B3:C40,B8&RIGHT(C12,3)),B8&RIGHT(C12,3),RIGHT(C12,3)&B8)

    so the first part is simply counting if there is a combination "USDNZD" inside quotes worksheet.
    Hello, thank you for your help.

    I thought it might be because of VLOOKUP, but there is formula IF, which says that it cannot fulfill the condition it yet should return the FALSE value.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: returns #N/A instead of a FALSE value

    But RIGHT(C12;3)&B8 evaluates to NZDUSD.... not FALSE.

    If you do want NZDUSD, use this (E16):


    =IF(ISERROR((B8&RIGHT(C12,3)=VLOOKUP(B8&RIGHT(C12,3),quotes!B3:C40,1,0))),RIGHT(C12,3)&B8,B8&RIGHT(C12,3))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: returns #N/A instead of a FALSE value

    the IF formula has 3 arguments; logical_test, value_if_true, value_if_false. so typically, the logical_test portion has to turn out to be TRUE or FALSE. when a VLOOKUP is unable to find the result, it becomes an #N/A. an #N/A error or any other errors are neither TRUE nor FALSE. Hence, the result is also an error for your case

  6. #6
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: returns #N/A instead of a FALSE value

    Quote Originally Posted by benishiryo View Post
    the IF formula has 3 arguments; logical_test, value_if_true, value_if_false. so typically, the logical_test portion has to turn out to be TRUE or FALSE. when a VLOOKUP is unable to find the result, it becomes an #N/A. an #N/A error or any other errors are neither TRUE nor FALSE. Hence, the result is also an error for your case
    So, how to make the formula so if the VLOOKUP unable to find the value it would return FALSE value (in this case RIGHT(C12;3)&B8) ?

    I thought that's how its gonna be. if it cannot find it will just return the false

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: returns #N/A instead of a FALSE value

    Have you looked at Post 4?

  8. #8
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: returns #N/A instead of a FALSE value

    I did!
    And it works!
    Looks like both solutions work:
    Please Login or Register  to view this content.
    - this one and yours. Which one should I use? whats the difference and which one suits better my needs?

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: returns #N/A instead of a FALSE value

    Whatever you wish. Pick whatever you want.... We don't know what your "needs" are!!

    Personally, I'd go for

    =IF(COUNTIF(quotes!B3:C40,B8&RIGHT(C12,3)),B8&RIGHT(C12,3),RIGHT(C12,3)&B8)


    as it's easier to follow. I just unpicked yours and corrected it.

  10. #10
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: returns #N/A instead of a FALSE value

    Quote Originally Posted by Glenn Kennedy View Post
    Whatever you wish. Pick whatever you want.... We don't know what your "needs" are!!

    Personally, I'd go for

    =IF(COUNTIF(quotes!B3:C40,B8&RIGHT(C12,3)),B8&RIGHT(C12,3),RIGHT(C12,3)&B8)


    as it's easier to follow. I just unpicked yours and corrected it.
    Okay, I will try to complete what I want to do here and I will post you the outcome.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: returns #N/A instead of a FALSE value

    Grand job.




    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  12. #12
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: returns #N/A instead of a FALSE value

    One more thing here.

    I will try to explain this.
    Please Take a look at the yellow cells:

    Capture.JPG

    we can see GBP/USD - USD is the SECOND CURRRENCY in this particular currency pair

    So, I would like to make the following:

    IF Deposit Currency in cell B8 is the SECOND CURRRENCY in C21, excel would perform one calculation (division)
    IF Deposit Currency in cell B8 is the FIRST CURRENCY in C21, excel would perform other kind of calculation (multiplication)

    How this should be done?
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: returns #N/A instead of a FALSE value

    what formula I should use in D28 to get the value instead of #N/A ?

    thanks!
    Attached Files Attached Files

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: returns #N/A instead of a FALSE value

    What value? There is no entry USDUSD in quotes, column B. You really do need to explain things better!!

  15. #15
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: returns #N/A instead of a FALSE value

    Fixed this already.

    Moving on :D

    How to type some text in the cell and then put a formula in the same cell?

    Lets say I wanna do smth like "Total Calories per day should not exceed (Cell B8*D4)"

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: returns #N/A instead of a FALSE value

    ="Total calories blah blah "&B8*D4&" more blah blah blah"

    This is a new Q, not a variant of the previous one. You need to start a new thread for unrelated queries.

  17. #17
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: returns #N/A instead of a FALSE value

    What's wrong here?
    Capture.JPG

+ 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. If statement returns false instead of value
    By seiyakou in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2012, 04:47 PM
  2. if statement returns #VALUE! if false
    By johnmerlino in forum Excel General
    Replies: 1
    Last Post: 09-19-2010, 07:44 PM
  3. False Returns
    By adsxvii in forum Excel General
    Replies: 7
    Last Post: 11-26-2007, 07:04 AM
  4. How to do nothing if @IF returns FALSE?
    By PMorrisDuke in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2006, 11:45 AM
  5. [SOLVED] IF Function returns False instead of 0
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 AM
  6. [SOLVED] IF Function returns False instead of 0
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  7. IF Function returns False instead of 0
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  8. IF Function returns False instead of 0
    By BEEJAY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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