+ Reply to Thread
Results 1 to 4 of 4

INDEX & SUMPRODUCT formula

  1. #1
    Registered User
    Join Date
    07-14-2018
    Location
    west mids,england
    MS-Off Ver
    2010
    Posts
    8

    INDEX & SUMPRODUCT formula

    In the following table

    image2.PNG

    i have the following formula ( Highlighted )

    =INDEX($U$7:$U$22,SUMPRODUCT(($V$7:$Z$22=$L20)*(ROW($U$7:$U$22)-ROW($U$6))))

    $L20 is the value in column 4

    This is to extract the relevant row title from a pivot table based on the value in column 4 ( which searches the pivot table for the X ranked value , in this case the 4th )

    From the image you can see that in column 4 i have two equal values and the row return in column 3 is #REF

    what do i need to add to the above formula so it will pick up the correct row return? or do i need a different formula vlookup maybe?

    Many thanks
    Attached Images Attached Images

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,324

    Re: INDEX & SUMPRODUCT formula

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: INDEX & SUMPRODUCT formula

    Your SUMPRODUCT will return an array of values in a 16 x 5 matrix ... which your trying to leverage with a 16 x 1 range (c/o INDEX) - hence #REF!

    Given the requirement, and your version, I would probably go with:

    =IFERROR(INDEX($U:$U,AGGREGATE(15,6,ROW($U$7:$U$22)/($V$7:$Z$22=$L20),1)),"")

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: INDEX & SUMPRODUCT formula

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Edit formula to remove #VALUE from INDEX SUMPRODUCT ROW formula result
    By JohnElliott in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2019, 03:05 PM
  2. [SOLVED] SUM/INDEX/SUMPRODUCT array formula
    By esbencito in forum Excel General
    Replies: 6
    Last Post: 05-29-2018, 04:43 AM
  3. Sumproduct + index formula issue
    By jw01 in forum Excel General
    Replies: 3
    Last Post: 05-27-2016, 05:29 PM
  4. URGENT SUMPRODUCT INDEX Formula
    By Keelin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-10-2014, 06:46 AM
  5. [SOLVED] VBA or formula. match, index and sumproduct
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-18-2012, 02:46 PM
  6. Index/Match or Sumproduct formula
    By pauldaddyadams in forum Excel General
    Replies: 5
    Last Post: 01-19-2012, 11:32 AM
  7. Sumproduct, or Index / Match Formula
    By bountifulgrace in forum Excel General
    Replies: 6
    Last Post: 11-03-2006, 04:55 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