Link to home
Start Free TrialLog in
Avatar of SASnewbie
SASnewbie

asked on

How to do a fill series in Excel

Hi experts,

Would you assist in providing a method to accomplish the following series in Excel?

1_1
1_2
1_3
2_1
2_2
2_3
...
150_1
150_2
150_3

Thanks
SOLUTION
Avatar of mvidas
mvidas
Flag of United States of America image

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
If A1 has "1_1", enter following in A2 and drag down

=IF(--RIGHT(A1,1)=3,--LEFT(A1,1)+1,--LEFT(A1,1))&"_"&IF(--RIGHT(A1,1)<3,--RIGHT(A1,1)+1,1)

Open in new window

SOLUTION
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
ASKER CERTIFIED SOLUTION
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
Avatar of SASnewbie
SASnewbie

ASKER

Thank you all for your very fast responses!!!
Yes I know the question is closed  but just to shorten Matt's formula:
=INT((ROW()+2)/3)&"_"&MOD(ROW()-1,3)+1
Thanks ssaqibh!