+ Reply to Thread
Results 1 to 7 of 7

Selecting Specific Data By Dates

  1. #1
    Registered User
    Join Date
    08-08-2016
    Location
    United States
    MS-Off Ver
    15.24
    Posts
    4

    Question Selecting Specific Data By Dates

    I would like to quantify quarterly data. My formula is currently set to identify a specific date registered, and then sum up all numbers by that date. For example, if the specified date is "7/25/16" all data for that date is automatically added together. However, I'm not sure how to set up the function so that it reads all dates in this quarter. Attached are screen shots/dummy copies for better understanding. Thank you!
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Selecting Specific Data By Dates

    I don't see any functions in the Excel file you attached.

    But, if you are looking to find the Quarter for a given date, you could use the 'Choose' and 'Month' functions:

    =CHOOSE(MONTH(Cell_With_Date_Value),"Q1","Q1","Q1","Q2","Q2","Q2","Q3","Q3","Q3","Q4","Q4","Q4")

    Basically, that would assign a value like Q1 to any date from Jan,Feb,Mar etc. Could add a column for quarter and then use that in your function somehow?
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,707

    Re: Selecting Specific Data By Dates

    Try

    =SUMIFS($I$2:$I$1008,D$2:D$1008,A1041,A$2:A$1008,">="&$A$1040,A$2:A$1008,"<="&EOMONTH($A$1040,2))
    Last edited by JohnTopley; 08-08-2016 at 01:57 PM.

  4. #4
    Registered User
    Join Date
    08-08-2016
    Location
    United States
    MS-Off Ver
    15.24
    Posts
    4

    Re: Selecting Specific Data By Dates

    Quote Originally Posted by GeneralDisarray View Post
    I don't see any functions in the Excel file you attached.

    But, if you are looking to find the Quarter for a given date, you could use the 'Choose' and 'Month' functions:

    =CHOOSE(MONTH(Cell_With_Date_Value),"Q1","Q1","Q1","Q2","Q2","Q2","Q3","Q3","Q3","Q4","Q4","Q4")

    Basically, that would assign a value like Q1 to any date from Jan,Feb,Mar etc. Could add a column for quarter and then use that in your function somehow?
    Thanks i'll give it a try!

  5. #5
    Registered User
    Join Date
    08-08-2016
    Location
    United States
    MS-Off Ver
    15.24
    Posts
    4

    Re: Selecting Specific Data By Dates

    Quote Originally Posted by JohnTopley View Post
    Try

    =SUMIFS($I$2:$I$1008,D$2:D$1008,A1041,A$2:A$1008,">="&$A$1040,A$2:A$1008,"<="&EOMONTH($A$1040,0))
    Appreciate the insight, JohnTopley. This looks like it may have worked. Can you explain what the function is saying? Not sure what <="&EOMONTH($A$1040,0))[/QUOTE] is doing. thank you!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,707

    Re: Selecting Specific Data By Dates

    For Quarter should be:

    <="&EOMONTH($A$1040,2)

    What is saying is add 2 months to your data in $A$1040 and then calculate the End of Month Date.

    So if A1040 = 4/7/2016, then add 2 months to give 9 then take the end of this month i.e 30/09/2016 (UK date formats!)

  7. #7
    Registered User
    Join Date
    08-08-2016
    Location
    United States
    MS-Off Ver
    15.24
    Posts
    4

    Re: Selecting Specific Data By Dates

    Everyone has been great. Shout out to JohnTopley for the fix!

+ 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] Selecting all data in specific columns without selecting adjacent column.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2014, 02:20 AM
  2. Selecting all data in specific columns without selecting adjacent column.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2014, 03:50 PM
  3. [SOLVED] Selecting specific data out of a large list
    By colourxpalette in forum Excel General
    Replies: 3
    Last Post: 05-24-2012, 05:05 PM
  4. Selecting Data from a specific date range
    By drakk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-25-2012, 04:30 AM
  5. Selecting Data from one table to another between dates
    By junior420 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-04-2011, 07:11 PM
  6. Selecting data bettween dates...
    By noliveira in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2008, 08:09 AM
  7. [SOLVED] Selecting Specific Data within a Table
    By Huge Peanuts in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-21-2006, 12:15 PM
  8. Replies: 1
    Last Post: 09-26-2005, 08:05 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