+ Reply to Thread
Results 1 to 10 of 10

couny data according to month or full year

  1. #1
    Registered User
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    98

    couny data according to month or full year

    attached my dummy Excel file that had same variables to my real one

    i am working on dashboard i want to know how many report is done within selected month(C4) or full year
    so what i need is when i select from the list what i need it automatically give me the data (D4:D7)
    Last edited by shj92922; 09-22-2018 at 05:14 AM.

  2. #2
    Registered User
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    98

    Re: count data according to month or full year

    please check this file here
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: couny data according to month or full year

    I don't understand what you're trying to do. You already have formulas that appear to be giving the correct results.

    If they are not correct then please tell us what the correct results should be.

  4. #4
    Registered User
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    98

    Re: couny data according to month or full year

    i want E4:E7 table represent full year 2018 records
    but D4:D7 table represent monthly records
    so what i want is at D4:D7 table will represent year + month depending on C4 selection
    now on current sheet if you select 2018 (C4) nothing will give you the formula only for month (forget about E4:E7 table )
    hope you understand

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: couny data according to month or full year

    So you want to be able to choose Jan 2018 or Jan 2019 (for example)?

  6. #6
    Registered User
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    98

    Re: couny data according to month or full year

    let make it simple if i choose 2018 at Cell (C4) it will give same result at E4:E7 table
    Currently it will give 0 Values for 2018
    Jan it will give me Jan records

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: couny data according to month or full year

    This assumes that sheet 2 will only ever contain data for a single year.

    =COUNTIFS(Sheet2!$A:$A,IF($C$4=2018,"<>",$C$4),Sheet2!$I:$I,"<0")

    If you have data for the same month in 2 different years in your sheet then the dropdown will need to be changed to contain real dates and the counts compared to the dates in columns C or D rather than the tet strings in column A.

  8. #8
    Registered User
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    98

    Re: couny data according to month or full year

    ok man thanks you solve it Reputation added too
    buti didnt understand this "<>" is it mean equal can you give brief answer
    thanks again

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: couny data according to month or full year

    No, that is not equal.

    The idea being that if a month is selected then the formula looks for that month in column A, if 2018 is selected then it looks for anything that is not 2018, which would be everything.

    This is one of the reasons why I said that it will not work if you have data for more than 1 year in the sheet.

  10. #10
    Registered User
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    98

    Re: couny data according to month or full year

    ok man thanks a lot now i understand

    for my sheet i make record for each year Separately so i guess your formula will work just i need to change 2018

+ 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] Convert calendar year month to fiscal year month
    By sheetnoob in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-13-2018, 03:30 AM
  2. If formula to get pivot data only when full month has passed
    By davidharper2005 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2018, 06:59 AM
  3. Lookup only Month and Year in full date
    By cschulz349 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-04-2017, 12:38 PM
  4. Running Totals from 24 hours to month, month to year without year decreasing
    By Safetyintern in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2015, 01:13 PM
  5. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  6. How to add Month-on-Month and Year-on-Year %Variance into a pivot table
    By emeritus1812 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-09-2013, 02:37 AM
  7. If Column A Month and Year = ColumnB Todays Month and Year then send email
    By HACCStaff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2013, 12:47 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