+ Reply to Thread
Results 1 to 8 of 8

Data by month while excluding blanks and text

  1. #1
    Registered User
    Join Date
    10-12-2015
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    12

    Data by month while excluding blanks and text

    Hello!

    Here is the formula I'm playing around with: =SUMPRODUCT((MONTH($A$22:$A$28)=10)*($B$22:$B$28)).

    This works fine until any textual data or blanks show up in Date Column A. What can I do to get the target cell to calculate all data for the month of October while omitting anything else?

    I've tried many things over the last few hours and I just can't get it to work. Any help would be greatly appreciated. Let me know if you need more info.

    Thank you!

    Excel Image.jpg

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,941

    Re: Data by month while excluding blanks and text

    It would help the people who might be working on this if you could "Go Advanced" and upload the file from which your screen shots are taken.

  3. #3
    Registered User
    Join Date
    10-12-2015
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    12

    Re: Data by month while excluding blanks and text

    Attempting to upload the Excel file...
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,941

    Re: Data by month while excluding blanks and text

    I put this array formula (Ctrl + Shift + Enter) in B13 and it yielded the answer that I expected.
    Please Login or Register  to view this content.
    Take a look at the modified file and see if it does what you want:
    Copy of Metrics Test.xlsx

    Let me know if you have any questions.
    Last edited by JeteMc; 10-12-2015 at 08:44 PM. Reason: explanation of formula

  5. #5
    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
    53,048

    Re: Data by month while excluding blanks and text

    I would take a different approach.

    1. Use real dates in your summary table (A4:A15)....1/1/15, 2/1/15, etc), you can format Custom "mmmm" to show the month names like you have.
    2. Use this, copied down...
    =SUMIFS($B$22:$B$28,$A$22:$A$28,">="&$H4,$A$22:$A$28,"<"&EDATE($H4,1))

    Note, I put my dates in H4:H15 to compare with your answers - you will need to adjust my formula to look at A4:A15 after you use real dates there
    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

  6. #6
    Registered User
    Join Date
    10-12-2015
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    12

    Re: Data by month while excluding blanks and text

    Perfect! This is exactly what I was looking for. I didn't know if the "IFERROR" would catch blanks, text, etc. Thank you SO, SO much! I've already tested it across different months...works great! Cheers, good human!

  7. #7
    Registered User
    Join Date
    10-12-2015
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    12

    Re: Data by month while excluding blanks and text

    I will try this method as well...always good to learn more! Thank you very much!

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,941

    Re: Data by month while excluding blanks and text

    You're welcome, and thank you for the feedback. Please take a moment to mark the thread 'Solved' using the thread tools above your first post. I am glad to see that you are investigating both methods -- Hope that you have a nice day.

+ 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] Create a list of uppercase data from a range excluding blanks and errors
    By PAexcel in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-17-2014, 01:32 PM
  2. [SOLVED] MIN value excluding blanks
    By coach.32 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2013, 04:52 PM
  3. [SOLVED] Define a range while excluding blanks
    By cowboy713 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-08-2012, 05:47 PM
  4. Linking List While Excluding Blanks
    By hgb in forum Excel General
    Replies: 5
    Last Post: 04-26-2011, 03:11 PM
  5. Averaging Text box values excluding blanks in VBA
    By nhannigan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-28-2010, 03:29 PM
  6. [SOLVED] Excluding 0s and blanks from a LINEST function
    By Disco in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-22-2009, 12:19 PM
  7. [SOLVED] Count IF excluding blanks or zeroes
    By Ash in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2006, 07:45 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