+ Reply to Thread
Results 1 to 25 of 25

Excel formula sumarizing items over quarters of year

  1. #1
    Registered User
    Join Date
    09-15-2014
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    7

    Excel formula sumarizing items over quarters of year

    Book1.xlsx

    I need to categorise the S/N by quarter.

    I don't want to input the S/N in Table 2 manually. I need a formula for it as this is only part of the data that I need to categorise.

    I need the S/N listed by the quarter they came in (Date In).



    If someone can please help.

    i have attached a photo how the result should look like in the excel file but it should be done using formulas



    If Anyone CAN Help

    THANKS
    Attached Images Attached Images
    Last edited by Scubed; 09-15-2014 at 10:28 PM.

  2. #2
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Excel formula sumarizing items over quarters of year

    Hi Scubed, welcome to forum.
    -Forum Rule-
    Post a WORKBOOK. Nobody wants to type data from a picture or paste text from your post into a spreadsheet as a prelude to helping. To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    Please upload your sample workbook, so you can easy get answer/response.
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel formula sumarizing items over quarters of year

    Can you upload a small Excel file with the data and desired results that you had in your pre-edit post? I'm not able to read *.PNG files. A workbook could be helpful.
    FR

    Edit: wenqq3 was ahead of me.

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Excel formula sumarizing items over quarters of year

    Hi,
    welcome to this forum..
    Count
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    S/N (Array formula, so Use CTRL + SHIFT + ENTER to enter the formula)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    check the attached file..
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Excel formula sumarizing items over quarters of year

    check the attached file..
    Attached Files Attached Files

  6. #6
    Forum Contributor Cerbera's Avatar
    Join Date
    07-06-2010
    Location
    Rotorua, New Zealand
    MS-Off Ver
    Excel 2007, 2013, 2016 & 365
    Posts
    137

    Re: Excel formula sumarizing items over quarters of year

    Hi Vikas,

    Like what you've done, but noticed that you have duplication of s/n records such as 77701, 77702 because they fall in months, 3,6,9,12.

    For the Quarter couldn't you use:

    =YEAR(B2)&"-"&"Q"&ROUNDUP(MONTH(B2)/3,0)

    Put that in a column down the side of your data. (The above has the first date in cell B2 and will need modifying accordingly). The advantage of putting the year first is that it's easier to sort then! You could probably build this formula into the array formula, but I'm not going to try as my brain is excel'd out at the mo!

  7. #7
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Excel formula sumarizing items over quarters of year

    Actually the trick lies in this part only...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    When entered as array formula, it returns the array {1;1;0;0;1;0;1;1;1;1;0;1;1;0;1}
    What countifs doing is that it counts each month in Range $K2, each Month in $L2 and each Date in M2 with there respective "<=" & ">=" conditions,
    and returns 1 if it fulfills the conditions..
    Same way, it test the condition for each element in Range $I$2:$I$16 and returns the array of ones and zeros ie {1;1;0;0;1;0;1;1;1;1;0;1;1;0;1}

    Then I used if condition to return the row no. of the respective true(ie 1) and False for respective 0s ..

    Small function with Column(A$1), when dragged horizontally, returns the 1st , 2nd, 3rd small row no. ..

    and Index uses this row no. to output the respective element in index provided..

    I hope I have been able to explain it well..

    Moreover, you can use FORMULA AUDITING to understand it more....

    Regards,

  8. #8
    Registered User
    Join Date
    09-15-2014
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    7

    Re: Excel formula sumarizing items over quarters of year

    is it possible that that all relevant the S/N can be just posted in just 1 cell instead of posting each S/N in different cells.

  9. #9
    Forum Contributor Cerbera's Avatar
    Join Date
    07-06-2010
    Location
    Rotorua, New Zealand
    MS-Off Ver
    Excel 2007, 2013, 2016 & 365
    Posts
    137

    Re: Excel formula sumarizing items over quarters of year

    Hi Vikas, there is duplication of S/N in different quarters though...

    duplicates.png

  10. #10
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Excel formula sumarizing items over quarters of year

    Yeah it is possible ..
    but you have to use a udf ie CONCATALL(RangeOrArray,Delimiter)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Check the attached file..
    Attached Files Attached Files
    Last edited by Vikas_Gautam; 09-15-2014 at 11:45 PM. Reason: Correction as Cerbera said..

  11. #11
    Registered User
    Join Date
    09-15-2014
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    7

    Re: Excel formula sumarizing items over quarters of year

    hey vikas
    quick question if this is possible

    if D1>1/1/2011,D18<31/3/2011 then show the corresponding S/N's from coloumn A to show up in a particular cell.

    man you are an advanced use of excel i am just a begginer

  12. #12
    Forum Contributor Cerbera's Avatar
    Join Date
    07-06-2010
    Location
    Rotorua, New Zealand
    MS-Off Ver
    Excel 2007, 2013, 2016 & 365
    Posts
    137

    Re: Excel formula sumarizing items over quarters of year

    Still got duplicates in there... but no one seems to listen to me

  13. #13
    Registered User
    Join Date
    09-15-2014
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    7

    Re: Excel formula sumarizing items over quarters of year

    cerbera could you show us how you would do it by getting rid of the duplicates mat your code is a bit easier thanks in advance

  14. #14
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Excel formula sumarizing items over quarters of year

    No its not possible with countifs.. as it demands Range as a parameter..
    however you can use array multiplication instead.. but it is slower than countifs.. thats why I prefer using countifs with some helper columns..
    However the alternative would be..
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    check the attached file..
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    09-15-2014
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    7

    Re: Excel formula sumarizing items over quarters of year

    i only requested this because i was having troble with the formulas you used before.

    i am just a beginner at excel just started a few days ago

    but then again thanks man

    sorry about the reputation thing i didnot know until you told me

  16. #16
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel formula sumarizing items over quarters of year

    Does this layout work?
    If so I'll download the file.
    The formula is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    O
    P
    Q
    R
    7
    Qtr
    Qtr
    Qtr
    Qtr
    8
    1
    2
    3
    4
    9
    77203
    10
    77204
    11
    77697
    12
    77698
    13
    77699
    14
    77700
    15
    77701
    16
    77702
    17
    77703
    18
    77717
    19
    77718
    20
    79224
    21
    79225
    22
    79226
    23
    79227
    24
    25
    #N/A
    #N/A
    #N/A
    #N/A

  17. #17
    Registered User
    Join Date
    09-15-2014
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    7

    Re: Excel formula sumarizing items over quarters of year

    what is the difference between my table and your table

    Book1 (4)_2 (1).xlsm

  18. #18
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Excel formula sumarizing items over quarters of year

    The CONCATALL Code is here in this file..
    Download it and press alt + F11
    select Module1 and you will find the code..
    Attached Files Attached Files

  19. #19
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Excel formula sumarizing items over quarters of year

    Code..
    Please Login or Register  to view this content.

  20. #20
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Excel formula sumarizing items over quarters of year

    its working now ..
    have a look...
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    09-15-2014
    Location
    sydney
    MS-Off Ver
    2010
    Posts
    7

    Re: Excel formula sumarizing items over quarters of year

    Amazing use of countifs (1).xlsx

    ok i did use the helper coloumns
    quick question
    is it possible to put all the S/N in one cell instead of putting them in individual one

    i have attcahed workbook if you can have a look

  22. #22
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Excel formula sumarizing items over quarters of year

    Without UDF..
    check the attached file..
    Attached Files Attached Files

  23. #23
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel formula sumarizing items over quarters of year

    Just testing. Can't seem to access page 2.

    edit: OK works, now.

  24. #24
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Excel formula sumarizing items over quarters of year

    THis is page 2, Flame
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  25. #25
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel formula sumarizing items over quarters of year

    Quote Originally Posted by FDibbins View Post
    THis is page 2, Flame
    So it IS!

    Got it. Used your tip. That's how post #23 got here. Thanks.

+ 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. Replies: 2
    Last Post: 11-18-2013, 12:22 PM
  2. Good lookups for quarters, year, and year to date
    By amartino44 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-06-2013, 03:41 PM
  3. Transpose Quarters from Calendar Year to Fiscal Year
    By jodiander in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-25-2013, 01:00 PM
  4. Replies: 3
    Last Post: 08-14-2009, 04:07 AM
  5. Replies: 0
    Last Post: 11-28-2007, 07:00 AM

Tags for this Thread

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