=Maxif

AndrewD04

New Member
Joined
Aug 24, 2017
Messages
40
Office Version
  1. 365
Hi,

I am trying to get the maximum number of full weeks if the name matches but it doesn't seem to work appreciate any help

Basically i have 2 tabs of data.
1st tab has
1626985763412.png

2nd tab
1626985796306.png

what i am trying to do is a Maxif formula to return the max full weeks from tab 2 in to column E in Tab one if the names match in column A of both tabs everytime i do it i get #Value or 0
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
If you have Excel version 2010 or later then you can use Power Query. Please update your profile to indicate the version you are using.

With PQ, you can Group the 2nd tab on the Agent for the Max.

Then you can join (merge in PQ terms) the two tables with a left inner join to put the Max Value in Column E. Once this is done in the PQ editor, you can then close and load to Native Excel.

If you would like specific Mcode that demos this, then post your sample data to this site using XL2BB so that we don't have to recreate your data to solve your issue.
 
Upvote 0
Is this what you want. It helps if we know what version of Excel you are using.
If your version of Excel doesn't have the MAXIFS function use the formula below which must be entered as an array with CTRL-SHIFT-ENTER.
MAX(IF(A2=Sheet2!$A$2:$A$10,Sheet2!$B$2:$B$10))

Book2
ABCDE
1AdvisorPayTMGMFull Weeks
2Agent 116
3Agent 222
4Agent 335
Sheet1
Cell Formulas
RangeFormula
E2:E4E2=MAXIFS(Sheet2!$B$2:$B$10,Sheet2!$A$2:$A$10,A2)
 
Upvote 0
Solution
Here is what Sheet2 is in the example I gave above.
Book2
AB
1AgentFull weeks
2Agent 11
3Agent 12
4Agent 13
5Agent 14
6Agent 15
7Agent 16
8Agent 21
9Agent 22
10Agent 35
Sheet2
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top