Share via

Help with Aggregate and Match Function

Anonymous
2025-02-07T13:49:54+00:00

I have two tables of data in one sheet. In my second table I am trying to use the aggregate match function to (1) match text in my second table to my first table and, (2) based on the match, pull the MAX value (ignoring errors) among the data set in the corresponding row among 4 specific columns.

Below is the data. As some pieces do not have data (hence the errors) I want to ignore those pieces in my final outcome (therefore using aggregate).

Key points

Data to Populate: G21:G32 (i.e., [[MAX])

Matching D21:D32 (i.e., [[Occ Name]) to B4:B15 (i.e., Table20[[Occupations]])

Data set to reference: G4:J15 (i.e., Table20[[Current Average Wage]:[2-Year Earning Potential]])

Current formula: =AGGREGATE(4,6,INDEX(Table20[[Current Average Wage]:[2-Year Earning Potential]],,MATCH([@[Occ Name]],Table20[Occupations],0)))

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2025-02-07T15:44:49+00:00

    Could you create a stripped-down copy of the workbook demonstrating the problem (without sensitive information) and make it available through one of the websites that let you upload and share a file, such as OneDrive, Google Drive, FileDropper or DropBox. Then post a link to the uploaded and shared file here.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-02-07T15:18:15+00:00

    How about

    =IFERROR(AGGREGATE(4,6,INDEX(Table20[[Current Average Wage]:[2-Year Earning Potential]],,MATCH([@[Occ Name]],Table20[Occupations],0))), "")

    Thank you for your reply! I attempted the new formula with IFERROR, however, it seems to be pulling the MAX for each column in the range when I'm hoping to get it for the 4 columns in the row that matches per the MATCH function. Below is what I got running the formula:

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2025-02-07T14:39:15+00:00

    How about

    =IFERROR(AGGREGATE(4,6,INDEX(Table20[[Current Average Wage]:[2-Year Earning Potential]],,MATCH([@[Occ Name]],Table20[Occupations],0))), "")

    Was this answer helpful?

    0 comments No comments