+ Reply to Thread
Results 1 to 6 of 6

Formula Aggregate or index and compare

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Formula Aggregate or index and compare

    Good evening, I have a problem carrying data from one sheet to another with the Aggregate formula
    in the file attached in sheet 2 I should report the names found in the Teams sheet in row 1 when there is a correspondence with the name in column C.
    But, in cell M15 it doesn't give me the name in AC1 team sheet.
    Furthermore, I can't find which formula to use to get the corresponding data that I put by hand in column N.
    Thanks
    Attached Files Attached Files

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

    Re: Formula Aggregate or index and compare

    so, a couple of issues

    your setup for SQUADRA10 on Teams sheet is inconsistent with 1-9, so:

    first - SQUADRA10 header should be in AB1 rather than AC1 (AC1 should be empty)
    second - BARAK in AB2 should be "P" (currently listed in both AB2 & AC2, only latter is valid)

    once you have fixed the above... regards Sheet2 calcs:

    Formula: copy to clipboard
    M2: =IF(C2="";"";IFERROR(INDEX(Teams!$A$1:$AB$1;AGGREGATE(15;6;(COLUMN($B$1:$AC$1)-1)/((Teams!$B$2:$AC$29=C2));COLUMN(A1)));""))
    N2: =IF($M2="";"";SUMPRODUCT((Teams!$B$2:$AC$29=$C2)*(Teams!$A$1:$AB$1=$M2);Teams!$C$2:$AD$29))
    copied down
    the SUMPRODUCT could be replaced with a SUMIF if you're only ever going to find a "player" in one "squad" -- the SUMPRODUCT assumes this may not be the case (could be in multiple squads whereas you only want value of first found)

  3. #3
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Formula Aggregate or index and compare

    Thank you thank you ...
    now it works.

  4. #4
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Formula Aggregate or index and compare

    Hi,
    I apologize if I continue here
    If possible, help to do the reverse of what was done before.

    That is, having the data entered by hand in the sheet 2 columns M-N
    bring them into the Teams sheet
    Thanks

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,515

    Re: Formula Aggregate or index and compare

    What determines the ROW in each sub-group (D,P,A,C)the team sheet?

    I would re-arrange your table so you only have the codes (P,C.D A) in column A: they are redundant in the other columns AND remove merged cells

    And you really should start a new thread as this is a different problem.
    Last edited by JohnTopley; 08-21-2021 at 06:28 AM.

  6. #6
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Formula Aggregate or index and compare

    OK thanks,
    I open new thread.

+ 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] Index aggregate formula help
    By frencett in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-02-2021, 08:26 AM
  2. [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
  3. INDIRECT function on an INDEX / AGGREGATE Formula
    By RLONG98 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2020, 05:56 PM
  4. Issue in Index/Aggregate formula
    By QSGuy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2019, 09:13 AM
  5. [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
  6. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  7. An Aggregate and Index Formula Issue
    By francoiscj1 in forum Excel General
    Replies: 5
    Last Post: 11-19-2018, 09:08 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