+ Reply to Thread
Results 1 to 6 of 6

If Statement is providing wrong result

  1. #1
    Registered User
    Join Date
    08-09-2016
    Location
    El Dorado Hills, California
    MS-Off Ver
    2013
    Posts
    6

    If Statement is providing wrong result

    Data information with format:
    Cell A2 $9,247.40
    Cell B2 $75,612.99
    Cell C2 $66,365.59
    Cell D2: B2 - C2 The result is $9,247.40
    Cell E1: =if(D1=A1,"Yes","No"). The result is coming as no instead of yes.

    I have cleared the cells and entered the values again. I have also made sure the format was the same. Not sure what is causing the false response. I have attached the example.
    Last edited by EAlden01; 02-04-2019 at 08:28 PM.

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: If Statement is providing wrong result

    First 10 rows are hidden.
    I've found data from your post in different columns in row 30, however:

    Przechwytywanie.JPG
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    08-09-2016
    Location
    El Dorado Hills, California
    MS-Off Ver
    2013
    Posts
    6

    Re: If Statement is providing wrong result

    I attached the wrong spreadsheet.
    Attached Files Attached Files

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: If Statement is providing wrong result

    Przechwytywanie.JPG
    You know why now?

    Change D2 into:

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


    and You will get YES :-)

  5. #5
    Registered User
    Join Date
    08-09-2016
    Location
    El Dorado Hills, California
    MS-Off Ver
    2013
    Posts
    6

    Re: If Statement is providing wrong result

    Thank you it worked.

  6. #6
    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,460

    Re: If Statement is providing wrong result

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

+ 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] Wrong result if I SUM
    By john55 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2017, 06:43 AM
  2. [SOLVED] IFERROR is providing correct answer but not providing a blank Cell when it should
    By marshallmr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-05-2016, 01:46 PM
  3. Vlooking up in Min and Max values and providing the result
    By wasiali in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-13-2015, 10:33 AM
  4. [SOLVED] Code result wrong but formula correct result
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-11-2014, 12:26 PM
  5. IF/Then Getting Wrong Result
    By artiststevens in forum Excel General
    Replies: 2
    Last Post: 01-06-2011, 07:21 PM
  6. excel result return wrong calcuation result
    By garyww in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2006, 06:20 AM
  7. Whatever I do I get the wrong result
    By Arishy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-20-2005, 01:40 PM

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