+ Reply to Thread
Results 1 to 4 of 4

Two formula product different result 2% of time. WHy?

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Two formula product different result 2% of time. WHy?

    I am using two different formula (as a form of check) to extract data from an array of 7000 lines. In 98% of the results the correlate. But why not 100%

    =IF(ROUNDDOWN(SUMPRODUCT((--(Data!$A$6:$A$10000=Date!G6749)*(Data!$G$6:$G$10000=Date!F6749))*(--(Data!$M$6:$M$10000))),0)=0,"",ROUNDDOWN(SUMPRODUCT((--(Data!$A$6:$A$10000=Date!G6749))*(--(Data!$G$6:$G$10000=Date!F6749))*(Data!$M$6:$M$10000)),0))

    =IF(ISNA(INDEX(Data!M$6:M$15000,MATCH(Date!$A6749,Date!N$3:N$14997,0))),"",ROUNDDOWN(INDEX(Data!M$6:M$15000,MATCH(Date!$A6749,Date!N$3:N$14997,0)),0))

    The result being returned is a date and the incorrect result being returned is 'double' the correct result. Weird. Double weird...

    Grateful for anyone who can point out where I am going wrong.

    Unfortunately the data is way to big to include and due to the random distribution of criteria it has proved almost impossible to edit down. If commercial services can accept 2 Mb files please let me know.

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Two formula product different result 2% of time. WHy?

    Looking briefly at your formulas:
    SUMPROUCT+ROUNDDOWN is returning SUM of your values
    ROUNDOWN+INDEX is returning only the first values.
    So if you got more that one correct values for your criteria in first formula that's why you have "double" correct result.
    Use Evaluate Formula tool(on smaller ranges) to see where the "problems" occures.
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Two formula product different result 2% of time. WHy?

    Spot on! There is duplicated data. Thanks for the help.

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Two formula product different result 2% of time. WHy?

    You are welcome.
    Please add reputation to my name.

+ 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] IF Formula to calculate if product has been sent on time
    By david1987 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2012, 05:22 AM
  2. Time stamp based on cell formula result
    By gavster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2012, 04:58 AM
  3. Sum product using time range
    By Statsman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2008, 01:49 PM
  4. Convert Formula result in Time Format
    By Chandrashekhar in forum Excel General
    Replies: 5
    Last Post: 08-22-2008, 02:32 AM
  5. Advanced formula - Return result & Show Cell Reference of result
    By Irv in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-05-2006, 10: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