MAX IF not working???

KateNash

Board Regular
Joined
Sep 23, 2004
Messages
86
Hi

I have an array formula which is supposed to find the maximum code for a specific set of initials.

For example, I have codes such as

GRP1
GRP2
GRP3
SOA1
SOA2
SOA3

What I am trying to do is to automatically generate the next number in the sequence based on which group it belongs in - so if I put GRP in column C I want column D to populate the cell with GRP4 - as that's the next number in the sequence.

I thought I could do this with a lookup showing the MAX of those initials - using:

{=MAX(IF(criteria_range=criteria,values_range))}

but it doesn't seem to be working!

Any ideas or suggestions for other ways of doing this?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Is it always a three letter code? (you can't take a MAX of text values)
 
Upvote 0
try this
Excel Workbook
ABCD
1GRP1
2GRP2GRPGRP4
3GRP3
4SOA1
5SOA2
6SOA3
Sheet2
Excel 2007
Cell Formulas
RangeFormula
D2=C2&COUNTIF(A1:A6,C2&"*")+1
 
Upvote 0
If you will never have missing numbers, that is definitely the simplest! :)
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,334
Members
452,907
Latest member
Roland Deschain

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