+ Reply to Thread
Results 1 to 5 of 5

Ranking with Sumproduct Problem with #N/A

Hybrid View

mbshafe Ranking with Sumproduct... 01-27-2016, 02:26 PM
ConneXionLost Re: Ranking with Sumproduct... 01-27-2016, 02:36 PM
Kaper Re: Ranking with Sumproduct... 01-27-2016, 02:46 PM
mbshafe Re: Ranking with Sumproduct... 01-27-2016, 03:31 PM
Kaper Re: Ranking with Sumproduct... 01-28-2016, 04:47 AM
  1. #1
    Registered User
    Join Date
    08-03-2015
    Location
    Washington, DC
    MS-Off Ver
    10
    Posts
    6

    Ranking with Sumproduct Problem with #N/A

    I have two ranges of data - here is the first:

    -3%
    -11%
    -10%
    -6%
    -15%
    98%
    -16%
    -11%
    0%
    -19%
    -4%
    -3%

    I am able to successfully rank this range based on the absolute value of each data point using the following formula:

    =SUMPRODUCT(--(ABS(A$1:A$12)>ABS(A1)))+1

    Here's my second range:

    #N/A
    -6%
    #N/A
    #N/A
    -9%
    62%
    -11%
    -6%
    -17%
    -12%
    #N/A
    #N/A

    I am able to rank this range and ignore the #N/A values using the following formula:

    =IF(ISNA(B1),"",COUNTIF(B$1:B$12,">"&B1)+1)

    The problem is that I need to also rank the second range based on absolute values and I can't figure out how to modify either formula to do it. Any suggestions?

    TIA

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Ranking with Sumproduct Problem with #N/A

    Try this array formula:

    =SUMPRODUCT(--(IF(ISERROR(A$1:A$12),0,ABS(A$1:A$12))>IF(ISERROR(A1),0,ABS(A1))))+1
    Confirm as an array formula with Ctrl-Shift-Enter.

    Cheers,
    Last edited by ConneXionLost; 01-27-2016 at 02:43 PM. Reason: too many ABS
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Ranking with Sumproduct Problem with #N/A

    Try such array formula:
    Formula: copy to clipboard
    =IF(ISERROR(A1),"",SUM(--(ABS(IF(ISERROR(A$1:A$12),0,A$1:A$12))>ABS(A1)))+1)

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Attached Files Attached Files
    Best Regards,

    Kaper

  4. #4
    Registered User
    Join Date
    08-03-2015
    Location
    Washington, DC
    MS-Off Ver
    10
    Posts
    6

    Re: Ranking with Sumproduct Problem with #N/A

    Thanks to you both - I'm all set now!

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Ranking with Sumproduct Problem with #N/A

    Great,
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Thanks.

+ 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. Sumproduct to calculate ranking And match right column
    By vascobmcastro in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-19-2015, 10:55 AM
  2. Sumproduct for ranking with multiple criterias; maybe sumifs?
    By myth_victor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-09-2015, 10:44 AM
  3. ranking with sumproduct or countifs with multiple criteria
    By cwchan220 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2014, 04:12 PM
  4. Sumproduct ranking works on one column but not another
    By jenncess in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2013, 02:21 PM
  5. [SOLVED] Ranking with sumproduct without duplicates
    By luke11111 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-27-2013, 02:37 PM
  6. [SOLVED] Help with sumproduct for mutliple criteria ranking with a tie breaker
    By sshahils in forum Excel General
    Replies: 2
    Last Post: 07-17-2012, 11:39 AM
  7. Conditional ranking using the Sumproduct function
    By helium in forum Excel General
    Replies: 3
    Last Post: 07-04-2012, 08:26 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