+ Reply to Thread
Results 1 to 6 of 6

Using countif and text functions to get total for a given month

  1. #1
    Forum Contributor
    Join Date
    05-17-2010
    Location
    Nigeria, Owerri
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    254

    Using countif and text functions to get total for a given month

    Hello All,

    Please in the attached file, I want to calculate monthly actual in the MONTHLY ACTUAL column of the sheet named "ANALYSIS" from the populated sheet named "REGISTRATION". I've tried using a combination of COUNTIF and TEXT functions but I'm not getting the desired result. What did I get wrong? Check my formular in the attached.


    Regards.
    Attached Files Attached Files
    Last edited by [email protected]; 05-19-2017 at 06:23 AM.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Using countif and text functions to get total for a given month

    Try

    C4
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag down!!
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Contributor
    Join Date
    05-17-2010
    Location
    Nigeria, Owerri
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    254
    Hello ,
    Thanks for your reply. The formula you suggested worked well until I expanded the range to 25000 cells. The result is not correct when the range is expanded. Please check the attached.
    Regard
    Attached Files Attached Files

  4. #4
    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
    28,208

    Re: Using countif and text functions to get total for a given month

    Try

    =SUMPRODUCT(--(TEXT('ZONE PINS PERFORMANCE DETAILS'!$D$5:$D$25000,"mmm")=Sheet1!A4)*('ZONE PINS PERFORMANCE DETAILS'!$D$5:$D$25000<>""))

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Using countif and text functions to get total for a given month

    PHP Code: 
    The result is not correct when the range is expanded
    Please give specific details.

    Secondly, from "May" to "Dec" no data in sheet "ZONE PINS PERFORMANCE DETAILS"


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: Using countif and text functions to get total for a given month

    Or:

    =SUMPRODUCT(--(TEXT('ZONE PINS PERFORMANCE DETAILS'!$D$5:$D$25000,"mmmyyyy")=A4&2017))

+ 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: 5
    Last Post: 12-08-2016, 04:24 AM
  2. [SOLVED] Using COUNTIF to total occurrences in a month
    By trickyvic in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-12-2016, 02:47 PM
  3. Replies: 3
    Last Post: 07-16-2014, 02:53 PM
  4. use COUNTIF to total BOLD TEXT??
    By Brainless_in_Boston in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-23-2013, 09:26 AM
  5. [SOLVED] Multiple CountIf Statement using TEXT and MONTH
    By GonzoSS in forum Excel General
    Replies: 2
    Last Post: 09-20-2012, 03:11 AM
  6. [SOLVED] How to put last month name through Text & Month functions
    By vishnu01445 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-23-2012, 03:08 PM
  7. TEXT and MONTH Functions
    By aikorei in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2007, 03:14 PM

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