Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to do a fill series in Excel

Posted on 2013-11-20
7
Medium Priority
?
308 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:SASnewbie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 35

Assisted Solution

by:mvidas
mvidas earned 1600 total points
ID: 39662871
Hi SASN,

Enter the following formula in row 1 somewhere, then fill down through row 450:
=INT((ROW()+2)/3)&"_"&SUBSTITUTE(MOD(ROW(),3),"0","3")

Open in new window

Matt
0
 
LVL 13

Expert Comment

by:Shanan212
ID: 39662876
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

0
 
LVL 35

Assisted Solution

by:mvidas
mvidas earned 1600 total points
ID: 39662891
Shanan,

That will work as long as the first digit is only one character long. Change the LEFT(A1,1) part to include a FIND function to find the placement of the _
=IF(--RIGHT(A1,1)=3,--LEFT(A1,FIND("_",A1)-1)+1,--LEFT(A1,FIND("_",A1)-1))&"_"&IF(--RIGHT(A1,1)<3,--RIGHT(A1,1)+1,1)

Open in new window

0
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

 
LVL 23

Accepted Solution

by:
NBVC earned 400 total points
ID: 39662897
Try:

=MOD(INT((ROW()-ROW($A$1))/3),150)+1&"_"&MOD(ROW()-ROW($A$1),3)+1

copied down

you can change the 150 if you are going higher than that
0
 

Author Comment

by:SASnewbie
ID: 39663113
Thank you all for your very fast responses!!!
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39663283
Yes I know the question is closed  but just to shorten Matt's formula:
=INT((ROW()+2)/3)&"_"&MOD(ROW()-1,3)+1
0
 

Author Comment

by:SASnewbie
ID: 39663324
Thanks ssaqibh!
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question