+ Reply to Thread
Results 1 to 5 of 5

Excel always defaulting if-statement to false

  1. #1
    Registered User
    Join Date
    06-08-2017
    Location
    Kansas
    MS-Off Ver
    Office 2010
    Posts
    4

    Excel always defaulting if-statement to false

    I'm not sure why, but in my if-statement I sum up cells k2 through k4, which equals three as the condition in my if statement. I want the cell to check whether or not the sum is equal to I2(defined as IPB005_), and if it is, print the cell as a zero. If not, print it as a 1. For the life of me I can't figure out why it is always defaulting to false, and printing a 1. Any ideas? I'll post the workbook if anyone wants to take a crack at it. It is on sheet 2, and for the sake of testing, just iterate the workbook till I2 fills with a three so the numbers match up to the picture.

    IMG-3.PNG

    thanks for the help.
    Work Book: https://drive.google.com/file/d/0Byc...w?usp=drivesdk

  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,464

    Re: Excel always defaulting if-statement to false

    IPB005_ has an AVERAGE formula which displays as 5 but is actually 4.666666666667.

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


    This COUNT(K2:K4) is 3, hence will not equal IPB005_ so you get the FALSE result which is 1.

    As you drag down, the range will auto adjust and always equal 3.
    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
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: Excel always defaulting if-statement to false

    Try changing Inspection Date Generator!I2 to:

    =ROUND(AVERAGE(IFEID2624601,A2),0)

  4. #4
    Registered User
    Join Date
    06-08-2017
    Location
    Kansas
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: Excel always defaulting if-statement to false

    Thanks! that makes a lot of sense.

  5. #5
    Registered User
    Join Date
    06-08-2017
    Location
    Kansas
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: Excel always defaulting if-statement to false

    Yup, that worked!

+ 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. excel isn't defaulting to current year anymore in spreadsheet
    By claysus in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-24-2016, 04:32 PM
  2. [SOLVED] why does excel keep defaulting to manual calculation?
    By Ruth in forum Excel General
    Replies: 3
    Last Post: 10-14-2015, 02:49 PM
  3. [SOLVED] How can IIF Statement bring false statement?
    By jgomez in forum Access Tables & Databases
    Replies: 5
    Last Post: 07-19-2013, 06:16 PM
  4. 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
  5. 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
  6. [SOLVED] Excel defaulting to 3 decimal places when using the gen. format
    By cprtrain in forum Excel General
    Replies: 1
    Last Post: 07-31-2005, 12:05 AM
  7. [SOLVED] Excel Defaulting to Outlook Express
    By Jonathan in forum Excel General
    Replies: 1
    Last Post: 02-24-2005, 01:06 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