+ Reply to Thread
Results 1 to 7 of 7

Same formula but results are differ (Some expected result, some gave #Num! error)

  1. #1
    Registered User
    Join Date
    07-16-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2013
    Posts
    4

    Same formula but results are differ (Some expected result, some gave #Num! error)

    Hi all....

    Really wish that you guys can help me on this one.

    I type in the same formula, but the result are either OK ( as I expected) or #NUM! error.

    Attached are example of my problem is & and its data source.

    1. #Num! error example = example of #num! error are in red box.
    2. Data Source = The above attachment are link to Sheet 1 in this file.


    Arghhhhhhhhhhhhhhhhhh..........
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Same formula but results are differ (Some expected result, some gave #Num! error)

    No definite answers ... just some observations. The troubling formula in F3 and filled down is this:

    =IF(LEN($G3),INDEX('D:\Users\fadilah.isnin\Documents\OOS Excel Report\Daily & Weekly OOS Report\Weekly OOS Report\To get Top 10\#NUM! error - ask around\[Data source.xlsx]Sheet1'!$E$1:$E$49991,SMALL(IF(('D:\Users\fadilah.isnin\Documents\OOS Excel Report\Daily & Weekly OOS Report\Weekly OOS Report\To get Top 10\#NUM! error - ask around\[Data source.xlsx]Sheet1'!$A$1:$A$49991=$C3)*('D:\Users\fadilah.isnin\Documents\OOS Excel Report\Daily & Weekly OOS Report\Weekly OOS Report\To get Top 10\#NUM! error - ask around\[Data source.xlsx]Sheet1'!$AT$1:$AT$49991=$G3),ROW($1:$636)),COUNTIF($G$3:G3,G3))),"")

    Try changing that to:

    =IF(LEN($G3),INDEX('D:\Users\fadilah.isnin\Documents\OOS Excel Report\Daily & Weekly OOS Report\Weekly OOS Report\To get Top 10\#NUM! error - ask around\[Data source.xlsx]Sheet1'!$E$1:$E$49991,SMALL(IF(('D:\Users\fadilah.isnin\Documents\OOS Excel Report\Daily & Weekly OOS Report\Weekly OOS Report\To get Top 10\#NUM! error - ask around\[Data source.xlsx]Sheet1'!$A$1:$A$49991=$C3)*('D:\Users\fadilah.isnin\Documents\OOS Excel Report\Daily & Weekly OOS Report\Weekly OOS Report\To get Top 10\#NUM! error - ask around\[Data source.xlsx]Sheet1'!$AT$1:$AT$49991=$G3),ROW($1:$49991)),COUNTIF


    This will make the ranges and indexing number assignment boundaries agree.

    Also the first argument to INDEX is $E$1:$E$49991. E1 is part of a merged cell. This could be causing some problems. I don't know. I've never tried that before. Try unmerging B1:E1.

    Edit: disregard this paragraph. It is wrong.Also even with E1 not part of a merged cell the first two rows of $E$1:$E$49991 are headers. In F66 SMALL is receiving a k value (SMALL(array, k)) of 2 from the COUNTIF function. That would be the second row of $E$1:$E$49991 which is the header "Name".

    Since we don't have access to your D:\ drive we can't test any of these changes ... but you can. Try making some of those changes and see what happens.
    Last edited by FlameRetired; 09-15-2015 at 12:12 AM.
    Dave

  3. #3
    Registered User
    Join Date
    07-16-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Same formula but results are differ (Some expected result, some gave #Num! error)

    Hi Dave,

    Tried to change the row from 636 to 49991, but still, the #NUM! error appear.

    As for the D:\ drive, actually, the second attachment, "Data Source" is the link file to these calculation.

    aaaaaa this thing bugging me for 2 weeks now......

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

    Re: Same formula but results are differ (Some expected result, some gave #Num! error)

    Hi there. Try this. I modified column AT in the source chart, to make all the rankings UNIQUE by assing a very small, and variable, number to each value. I then modified/tidied up the formulae in F and G of ther main sheet. All values are now shown and there are NO duplicate names.

    OK?
    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
    Registered User
    Join Date
    07-16-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Same formula but results are differ (Some expected result, some gave #Num! error)

    Glenn.... you my SAVIOR!!!!

  6. #6
    Registered User
    Join Date
    07-16-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Same formula but results are differ (Some expected result, some gave #Num! error)

    Glenn, can u explain to me how the +row()/10^6 is giving some diff. ans (unique). Sorry though, just wondering.

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

    Re: Same formula but results are differ (Some expected result, some gave #Num! error)

    In row 1, the term +row()/10^6 adds 1/1,000,000 to the calculated value. So a value of 4.2 becomes 4.200001.

    In row 10, the term +row()/10^6 adds 10/1,000,000 to the calculated value. So a value of 4.2 becomes 4.200010.

    The additions are so small they make no practical difference to their value... but they are now no longer the same. This "breaks" ties (albeit by an unselective parameter - the row number) ands allows values to be ranked and allows LOOKUPS to return the correct values.

+ 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. INDEX formula trouble, doesn't show expected result
    By Tacita in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2015, 12:33 PM
  2. Replies: 2
    Last Post: 08-24-2014, 04:56 AM
  3. IF Formula not giving expected results.
    By fungus in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-17-2010, 02:10 PM
  4. Formula bar and cell results differ
    By beaunydal in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2010, 12:39 PM
  5. Extracting a delimited CSV gave weird results.
    By Aswathy in forum Excel General
    Replies: 6
    Last Post: 10-21-2008, 04:13 AM
  6. Sumproduct formula not giving expected results
    By Shocked in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-30-2008, 03:12 PM
  7. Macro results differ depending on PC
    By noah in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2005, 03:22 PM

Tags for this Thread

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