+ Reply to Thread
Results 1 to 9 of 9

Index aggregate formula help

  1. #1
    Registered User
    Join Date
    02-02-2017
    Location
    australia
    MS-Off Ver
    10
    Posts
    4

    Lightbulb Index aggregate formula help

    Hi

    I have been trying to get this formula right, but everything I've tried so far is coming up short!

    What I'm trying to do is bring a summary of details from the scoresheet, across to the results sheet, by finding the max value in the points column (on the Scoresheet), and transfer the member and species associated to that value into the correct row on the 'Results' sheet.

    The closest I have come so far is: =IFERROR(INDEX(Jan2021!$c$3:$c$200,AGGREGATE(15,3,((Jan2021!$a$3:$a$200=$b11)/(Jan2021!$a$3:$a$200=$b11)*ROW(Jan2021!$a$3:$a$200))-ROW(Jan2021!$a$2), ROWS($a11:a11))),””)

    The yellow section on the results summary is the only area pulling the results from the Jan2021 scoresheet.

    The date in B1 of Results will become a dropdown, directing to a corresponding month of Scoresheets (I have only provided Jan2021 on the example).

    Thankyou in advance for any help!!
    Attached Files Attached Files

  2. #2
    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
    43,959

    Re: Index aggregate formula help

    Post a sample file with at least TWO months in it. If you are directing the formula to look at different SHEETS, or RANGES depending on the value in B1, we need to see exactly what you want, right from the start.
    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

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Index aggregate formula help

    Perhaps like this?

    C3 and down:
    =INDEX('Jan2021'!$D$1:$D$7,MOD(AGGREGATE(14,6,((B3='Jan2021'!$B$3:$B$7)*((ROW('Jan2021'!$D$3:$D$7)/1000)+('Jan2021'!$E$3:$E$7))),1),1)*1000)

    D3 and down:
    =INDEX('Jan2021'!$C$1:$C$7,MOD(AGGREGATE(14,6,((B3='Jan2021'!$B$3:$B$7)*((ROW('Jan2021'!$D$3:$D$7)/1000)+('Jan2021'!$E$3:$E$7))),1),1)*1000)
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-02-2017
    Location
    australia
    MS-Off Ver
    10
    Posts
    4

    Re: Index aggregate formula help

    Sorry about that!

    I've attached an amended copy with a little more data....specifically the formula which is almost working, but not quite.

    It brings back the first match result, not determined by the max value/points

    Thanks
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-02-2017
    Location
    australia
    MS-Off Ver
    10
    Posts
    4

    Re: Index aggregate formula help

    Quote Originally Posted by belinda200 View Post
    Perhaps like this?

    C3 and down:
    =INDEX('Jan2021'!$D$1:$D$7,MOD(AGGREGATE(14,6,((B3='Jan2021'!$B$3:$B$7)*((ROW('Jan2021'!$D$3:$D$7)/1000)+('Jan2021'!$E$3:$E$7))),1),1)*1000)

    D3 and down:
    =INDEX('Jan2021'!$C$1:$C$7,MOD(AGGREGATE(14,6,((B3='Jan2021'!$B$3:$B$7)*((ROW('Jan2021'!$D$3:$D$7)/1000)+('Jan2021'!$E$3:$E$7))),1),1)*1000)


    Thank you Belinda!
    Unfortunately it gives similar results to my second attachment - bringing the first match, where I am looking for the max of each category.

  6. #6
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Index aggregate formula help

    Hi
    Try this:

    C:
    =INDEX(INDIRECT("'"&TEXT($B$1,"MMMYYYY")&"'"&"!$D$1:$D$77"),MOD(AGGREGATE(14,6,((B3=INDIRECT("'"&TEXT($B$1,"MMMYYYY")&"'"&"!$B$1:$B$77"))*((ROW(INDIRECT("'"&TEXT($B$1,"MMMYYYY")&"'"&"!$D$1:$D$77"))/1000)+(INDIRECT("'"&TEXT($B$1,"MMMYYYY")&"'"&"!$E$1:$E$77")))),1),1)*1000)

    D:
    =INDEX(INDIRECT("'"&TEXT($B$1,"MMMYYYY")&"'"&"!$C$1:$C$77"),MOD(AGGREGATE(14,6,((B3=INDIRECT("'"&TEXT($B$1,"MMMYYYY")&"'"&"!$B$1:$B$77"))*((ROW(INDIRECT("'"&TEXT($B$1,"MMMYYYY")&"'"&"!$D$1:$D$77"))/1000)+(INDIRECT("'"&TEXT($B$1,"MMMYYYY")&"'"&"!$E$1:$E$77")))),1),1)*1000)
    Attached Files Attached Files
    Last edited by Limor_OP; 07-02-2021 at 08:18 AM.

  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
    43,959

    Re: Index aggregate formula help

    1. Why keep these in spearate sheets? It would be much better to have them in 1 sheet, with an extra column for the month. However...

    2. the value in the dropdown must be an EXACT match for the sheet name.

    3. You can use (C3):
    =INDEX(INDIRECT("'"&$B$1&"'!D3:D7"),MATCH(1,(INDIRECT("'"&$B$1&"'!B3:B7")=$B3)*(INDIRECT("'"&$B$1&"'!E3:E7")=AGGREGATE(14,6,INDIRECT("'"&$B$1&"'!E3:E7")/(INDIRECT("'"&$B$1&"'!B3:B7")=$B3),1)),0))

    and similar in D3, copied down.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-02-2017
    Location
    australia
    MS-Off Ver
    10
    Posts
    4

    Re: Index aggregate formula help

    Thank you so much Belinda and Glenn!!
    I am extremely grateful

    I completely agree with you Glenn about the monthly scoresheets being consolidated to one sheet, however I'm doing this as a favor for my elderly father, and when I showed a consolidated option it was a little too hectic for him. He needed a single scoresheet per month, so that's what I'll do while I quietly nudge him in the consolidated sheet option.

    Thank you again guys!!

  9. #9
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Index aggregate formula help

    Thanks for the feedback frencett, and you're welcome.
    if you are satisfied with the solution - you can mark this thread as solved.

+ 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] trouble with aggregate function in index formula
    By chriswrcg in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-25-2020, 09:11 AM
  2. INDIRECT function on an INDEX / AGGREGATE Formula
    By RLONG98 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2020, 05:56 PM
  3. Issue in Index/Aggregate formula
    By QSGuy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2019, 09:13 AM
  4. [SOLVED] Index/Aggregate formula calculates correct row but does not yield name from Index array
    By FivestarMac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2019, 05:07 PM
  5. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  6. An Aggregate and Index Formula Issue
    By francoiscj1 in forum Excel General
    Replies: 5
    Last Post: 11-19-2018, 09:08 PM
  7. [SOLVED] Formula to find label for top five values using INDEX / AGGREGATE
    By heytherejem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2017, 06:43 AM

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