+ Reply to Thread
Results 1 to 5 of 5

SUMIF, ignoring blanks and find earliest date ignoring blanks

  1. #1
    Registered User
    Join Date
    06-19-2019
    Location
    Devon, UK
    MS-Off Ver
    2010
    Posts
    15

    SUMIF, ignoring blanks and find earliest date ignoring blanks

    Hi everyone,

    My latest question revolves around summing the total of parts required and showing the earliest requirement date.

    I have a table (TABLE A) with 3 columns: Part, Demand, Req. Date (requirement).

    In a separate table (TABLE B), I want to show the total demand for each part and the earliest requirement date for that part.

    Please see attached workbook.

    You will see on Table A, that there are blank dates, real dates, and the generic 00/01/1900 date. the table source information will always be like this and at the moment I cannot alter it.

    The first thing I want to do in Table B is show the total demand for the part where the date is [B][U]not[B][U] either blank or "00/01/1900".
    Secondly, in column G, I want to show the earliest requirement date for the part, ignoring any blanks and 00/01/1900's.

    As you will see from the sheet called "WHAT I HAVE" - it isn't working out!

    I have tried putting various if & and statements if the formulas to try to exclude lines where the date is blank, but nothing works - so it is time to turn to the experts (you guys!).


    Any help more than gratefully received!


    many thanks
    Chris
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,539

    Re: SUMIF, ignoring blanks and find earliest date ignoring blanks

    1. =SUMIFS($B$6:$B$14,$C$6:$C$14,">"&0,$A$6:$A$14,E6)

    2. =IF(MIN(IF($A$6:$A$14=E6,IF($C$6:$C$14>0,$C$6:$C$14)))=0,"",MIN(IF($A$6:$A$14=E6,IF($C$6:$C$14>0,$C$6:$C$14))))

    .. .confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,755

    Re: SUMIF, ignoring blanks and find earliest date ignoring blanks

    How about
    =IFERROR(AGGREGATE(15,6,$C$5:$C$13/(($C$5:$C$13>0)*($A$5:$A$13=E5)),1),"")

  4. #4
    Registered User
    Join Date
    06-19-2019
    Location
    Devon, UK
    MS-Off Ver
    2010
    Posts
    15

    Re: SUMIF, ignoring blanks and find earliest date ignoring blanks

    Thanks to both your super fast replies!

    Ali - both of those work a charm; thank you very much for your help.

    Chris

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,539

    Re: SUMIF, ignoring blanks and find earliest date ignoring blanks

    Glad to have helped.

+ 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. BLANKS (Not Really Blanks) AND Rearrange ignoring blanks
    By shivspatil in forum Excel General
    Replies: 4
    Last Post: 02-02-2018, 08:28 AM
  2. [SOLVED] Data Cleanup - ignoring blanks, ignoring rows with string values etc.
    By Huyaku in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2015, 08:17 AM
  3. Find missing data in columns ignoring blanks, separated by semicolon
    By Cboggie in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-28-2014, 10:04 PM
  4. Find average of K nearest neighbours ignoring blanks
    By tucanj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2013, 10:01 PM
  5. [SOLVED] Ignoring blanks (again)
    By jswainson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-12-2012, 07:47 AM
  6. [SOLVED] Ignoring blanks
    By jswainson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-09-2012, 02:14 PM
  7. Excel 2007 : Find next 'less than' value, ignoring blanks
    By samtoucan in forum Excel General
    Replies: 4
    Last Post: 12-12-2009, 07:43 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