Link to home
Start Free TrialLog in
Avatar of Pete Winter
Pete WinterFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Excel formula Edit

I have the below code with groups the previous column by a number.

=IF(COUNTIF($D$1:$D2,$D2)=1,MAX($E$1:E1)+1,INDEX($E$1:E1,MATCH($D2,$D$1:$D1,0),1))

Open in new window


Currently is starts to with "1". How do I change it to another number?
Avatar of Rgonzo1971
Rgonzo1971

Hi,

without data I suppose by changing the bold ones

IF(COUNTIF($D$1:$D2,$D2)=1,MAX($E$1:E1)+1,INDEX($E$1:E1,MATCH($D2,$D$1:$D1,0),1))

and maybe the +1 after MAX

Regards
Avatar of Pete Winter

ASKER

Thanks, but that gives me a #N/A error. Do you need to see the data?
Yes could you send a dummy no real data
Dummy data attached.
Dummy data attached.
Dummy-Data.xls
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect. Many thanks