Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# List quarters in row

Posted on 2011-09-14
Medium Priority
283 Views
I'm trying to automate some detail on my worksheet and I need to be able to enter the first quarter for a specific year and then have it list the quarters from that entry all the way through the last quarter of 2011.

Example:

Cell J13 = Q1-08 so I would want cell K13 to show Q2-08, etc. all the way through Q4-11.

I want to just enter the quarter/year in cell J13 and have it calculate the rest of the quarters automatically. This way I only have to enter the starting quarter and have the formulas do the rest.
0
Question by:Lawrence Salvucci
[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

LVL 24

Accepted Solution

StephenJR earned 668 total points
ID: 36535631
You could put this in K13 and drag it across as far as you'd need and then it will adjust as you change J13.

=IF(COLUMNS(\$K\$13:K13)>(11-VALUE(RIGHT(\$J\$13,2))+1)*4-1,"",IF(VALUE(MID(J13,2,1))=4,"Q1-" & TEXT(RIGHT(J13,2)+1,"00"),"Q" &MID(J13,2,1)+1&"-"&TEXT(RIGHT(J13,2),"00")))
0

LVL 50

Assisted Solution

barry houdini earned 668 total points
ID: 36535632
Try this formula in K13 copied across

=IF(J13="","","Q"&MOD(MID(J13,2,1),4)+1&TEXT(RIGHT(J13,2)+(MID(J13,2,1)="4"),"-00"))

regards, barry
0

LVL 12

Assisted Solution

viralypatel earned 664 total points
ID: 36535692
It was a really tricky formula to write ... :)
please check the attached file. You can enter the quarter in J13 and copy the formula in K13 through the row 13 to as many columns as you like. You'll get what you described above.

Qtr-in-rows.xlsx
0

LVL 1

Author Closing Comment

ID: 36536169
Thank you for all your responses. They all worked!
0

## Featured Post

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
###### Suggested Courses
Course of the Month11 days, 12 hours left to enroll