?
Solved

List quarters in row

Posted on 2011-09-14
4
Medium Priority
?
281 Views
Last Modified: 2012-05-12
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
Comment
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
  • Learn & ask questions
4 Comments
 
LVL 24

Accepted Solution

by:
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

by:barry houdini
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

by:viralypatel
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

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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

765 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