+ Reply to Thread
Results 1 to 3 of 3

Formula is not giving correct answer

  1. #1
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    Formula is not giving correct answer

    I have the following formula - and will break it down where mistake is occurring.

    ="x "&COUNTIF($A$2:$E$71,G$80)-(ISNUMBER(MATCH(G$80,$E$79:$I$79,0)+ISNUMBER(MATCH(G$80,MMQPs!D$2:H$2,0))))

    ="x "&COUNTIF($A$2:$E$71,G$80) ----- Currently this portion works correctly and displays a value of 2

    ="x "&COUNTIF($A$2:$E$71,G$80)-(ISNUMBER(MATCH(G$80,$E$79:$I$79,0) this portion works correctly. Currently it shows 1 because it minus 1 from from match (e79-I79)

    The last portion is not coming up with a value - EVEN THOUGH there is a match! Gives a value of 0 (MMQPs!D$2:H$2)

    +ISNUMBER(MATCH(G$80,MMQPs!D$2:H$2,0))))

    Basically I need to add total matches from both matches and be subtracted from the countif.

    Correct count should be 0 as there is a match from first match and a match from second match. They are not adding!

    Thanks Jack

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Formula is not giving correct answer

    If the ISNUMBER() is returning 0/FALSE, then that means that the MATCH() function must be returning an error/not a number. Which means that, according to Excel, the value in G80 is not present in MMQPs!D2:H2. I suggest you look very carefully at what is in G80 and what is in the matching cell in MMQPs!D2:H2. There must be some difference that is not immediately apparent. non-printing character (if text string) or rounding error (if number) or something that is not the same.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    Re: Formula is not giving correct answer

    I believe I figured it out...At least its giving correct total now......

    This is what I had before:

    ="x "&COUNTIF($A$2:$E$71,G$80)-(ISNUMBER(MATCH(G$80,$E$79:$I$79,0)+ISNUMBER(MATCH(G$80,MMQPs!D$2:H$2,0))))

    This seems to be working:

    ="x "&COUNTIF($A$2:$E$71,G$80)-(ISNUMBER(MATCH(G$80,$E$79:$I$79,0))+ISNUMBER(MATCH(G$80,MMQPs!$D$2:$H$2,0)))


    Thanks for your quick reply.......Keep up the great work!
    Jack

+ 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] Formula is giving a 0 answer, why???
    By MRozell in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-01-2015, 10:10 AM
  2. [SOLVED] SUMIF not giving me the correct answer
    By Cathy Brausa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2012, 02:05 AM
  3. sum formula giving a cell reference in the answer
    By stanadon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2012, 06:29 AM
  4. Mulitiplying in formula giving incorrect answer
    By oxicottin in forum Excel General
    Replies: 3
    Last Post: 12-20-2009, 10:00 PM
  5. addition calculation not giving correct answer
    By lnjr in forum Excel General
    Replies: 2
    Last Post: 02-22-2009, 05:49 PM
  6. Conditional Formatting not giving correct answer...
    By Financial Admin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-09-2006, 04:45 PM
  7. Formula giving incorrect answer...
    By Jambruins in forum Excel General
    Replies: 3
    Last Post: 02-25-2005, 03: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