+ Reply to Thread
Results 1 to 5 of 5

Excel formula to increase cell quarter based on "seed" value in another column

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Excel formula to increase cell quarter based on "seed" value in another column

    I routinely get quarterly data reports and different times. However, the quarters themselves are not labeled in the spreadsheet. Rather, quarters are simply labeled as a single digit and are increase by a value of 1 each time a new quarter is listed. I find out what the first quarter is, and label each quarter accordingly.

    I am looking for an Excel formula that would automatically give the quarter based on the "seed" value (e.g. if 1 is quarter 2013/1, then 5 would be quarter 2004/1).

    Attached is a spreadsheet to illustrate by issue. Column A has the numeric value, Column B is the quarter formatted as I need it. I would like to copy a formula in Column B based on a the 'seed' value in cell B2. Any ideas? Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Excel formula to increase cell quarter based on "seed" value in another column

    b2=IF(A2="","",2013+INT((A2-1)/4)&"/"&MOD(A2-1,4)+1)
    try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Re: Excel formula to increase cell quarter based on "seed" value in another column

    Thanks nflsales. The only issues is that sometimes the 1st quarter number may not be the first quarter of the calendar year (e.g. 1 could be quarter 2013/3). Can the formula be adjusted to take that into account?

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Excel formula to increase cell quarter based on "seed" value in another column

    In such case try =IF(A2="","",2013+INT((2+A2-1)/4)&"/"&MOD(2+A2-1,4)+1)

  5. #5
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Re: Excel formula to increase cell quarter based on "seed" value in another column

    Excellent. Thank you so much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] formula help: conditional format of one column based on "YES"/"NO" content of four others!
    By 10 Dollar Bill in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-20-2014, 01:59 PM
  2. Replies: 1
    Last Post: 02-04-2014, 08:43 PM
  3. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  4. Programatically save in Quarter file based on "text-date" in cell
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2012, 08:55 PM
  5. Replies: 4
    Last Post: 06-27-2012, 01:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1