Array Formula

Welsh Mark3

Board Regular
Joined
Apr 7, 2014
Messages
164
Office Version
  1. 365
I'm trying to use a formula to bring me the most recent date (Column N) from a range of account numbers (Column A) = A2. I have about 18000 rows with 7500 different account numbers.

This formula =MAX(IF(A:A=A2,N:N)) brings me back the highest value from the entire range but appears the if the statement is not working.

I think I need an array formula such as below. However when I enter control + shift + enter nothing happens.

{=MAX(IF(A:A=A2,N:N))}

Help is appreciated
 
This
=MAX(IF(A2=A:A,N:N))
and this
=MAX(IF(A:A=A2,N:N))

are both exactly the same formula, so there is something funny going on if one returns a result & one doesn't.
That said you should never use entire columns in array functions, try limiting it like
=MAX(IF(A2:A20000=A2,N2:N20000))

Can you also post a sample of your data using the XL2BB add-in.

Book1
ABCDEFGHIJKLMNOPQRS
1CSUIDExpiry ValueEnd DateGroupLast Contact DateLast Contact DaysUsersLast Login DateCompany Reports Used - UserCompany Reports Used - User (Last30Days)Company Reports Used - CustomerFormula 1Formula 2
235019225333944196PA43938.65124308/17/2017040008/19/202008/19/2020
335019225333944196PA43938.65124308/12/20204006740008/19/202008/19/2020
4730948123375044377PA44054.388508/19/202023519947308/19/202008/19/2020
5730948123375044377PA44054.388508/14/2020211447308/19/202008/19/2020
6730948123375044377PA44054.388508/17/20201048047308/19/202008/19/2020
7730948123375044377PA44054.388506/17/2020047308/19/202008/19/2020
8730948123375044377PA44054.388506/17/2020047308/19/202008/19/2020
92505879692544367CRT44013.4449108/18/202046334608/19/202008/19/2020
1070597188177044206PA44056.486108/18/20205145108/19/202008/19/2020
1111157732140044206MyCreditsafe43830.37232103/25/20201108/19/202008/19/2020
12106998763160044271CRT44053.739107/16/20203308/19/202008/19/2020
1369830478120044222CRT44047.5215108/13/202037103708/19/202008/19/2020
14705012411670044271CRT Field43959.491031108/18/20200208/19/202008/19/2020
15705012411670044271CRT Field43959.491031105/01/20201208/19/202008/19/2020
16705012411670044271CRT Field43959.49103110208/19/202008/19/2020
17705012411670044271CRT Field43959.491031103/23/20200208/19/202008/19/2020
18705012411670044271CRT Field43959.491031102/25/20200208/19/202008/19/2020
19705012411670044271CRT Field43959.491031112/31/20190208/19/202008/19/2020
20705012411670044271CRT Field43959.491031107/15/20200208/19/202008/19/2020
21705012411670044271CRT Field43959.491031106/28/20180208/19/202008/19/2020
22705012411670044271CRT Field43959.491031103/12/20200208/19/202008/19/2020
23705012411670044271CRT Field43959.491031108/14/20201208/19/202008/19/2020
24705012411670044271CRT Field43959.491031108/14/20201208/19/202008/19/2020
2511275570660044202CRT44029.5133302/13/2020714208/19/202008/19/2020
2610968849040044347CRT44043.5519108/14/202074708/19/202008/19/2020
2770834114150044343CRT44042.5720307/21/202045408/19/202008/19/2020
2870834114150044343CRT44042.5720308/16/20190408/19/202008/19/2020
2970834114150044343CRT44042.5720308/16/20190408/19/202008/19/2020
30110274473304944316PA44061.481207/21/2020642008/19/202008/19/2020
Sheet1
Cell Formulas
RangeFormula
R2:R30R2=MAX(IF(A2=$A$2:$A$150,$N$2:$N$150))
S2:S30S2=MAX(IF($A$2:$A$150=A2,$N$2:$N$150))
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
You haven't confirmed either of those formula with Ctrl Shift Enter.
Select R2 then press F2 then press Ctrl Shift Enter & the formula should then get the {} around it, once you've done that drag the formula down.
 
Upvote 0
You haven't confirmed either of those formula with Ctrl Shift Enter.
Select R2 then press F2 then press Ctrl Shift Enter & the formula should then get the {} around it, once you've done that drag the formula down.
Perfect - Thank you
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,807
Messages
6,127,005
Members
449,351
Latest member
Sylvine

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