+ Reply to Thread
Results 1 to 7 of 7

SUMPRODUCT with 2 criteria from date and specific text

  1. #1
    Forum Contributor
    Join Date
    05-10-2019
    Location
    Penang, Malaysia
    MS-Off Ver
    2016
    Posts
    262

    SUMPRODUCT with 2 criteria from date and specific text

    Hi All,
    I have a worksheet with SUMPRODUCT to get total of working days & it is working fine: =SUMPRODUCT(--(TEXT($C$4:$C$35,"MMM")=$N4)*($E$3:$L$3=O$3)*$E$4:$L$35)
    Table 1: Data Source. Table 2: Data prep

    With the additions to the above, I wish to get the SUMPRODUCT working to this current & with specific text "MC". I have tried to add another arguments to the formula but returns with #VALUE!.

    Please find attachment.
    Any help is greatly appreciated

    Thank-You very much
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: SUMPRODUCT with 2 criteria from date and specific text

    deleted post, not sure I see what you want after all - the additional "MC" part.
    Last edited by Sam Capricci; 01-13-2021 at 11:43 PM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: SUMPRODUCT with 2 criteria from date and specific text

    Where is the "MC range"?
    basically, add it to SUMPRODUCT:

    =SUMPRODUCT(--(TEXT($C$4:$C$35,"MMM")=$N4)*($E$3:$L$3=O$3)*$E$4:$L$35*(MC range="MC"))

    In case "MC" is patial string in, i.e, " xxx MC xxx"
    using ISNUMBER(search("MC",MC range)) instead of (MC range="MC")
    Quang PT

  4. #4
    Forum Contributor
    Join Date
    05-10-2019
    Location
    Penang, Malaysia
    MS-Off Ver
    2016
    Posts
    262

    Re: SUMPRODUCT with 2 criteria from date and specific text

    Hi Sam,
    Thanks for responding.
    The specific text "MC" is where to make the SUMPRODUCT to calculate this to the current formula. the current formula is to calculate "1"
    eg, there are 3 "MC" & "1"from EMP1 (Table 1; Data Source), making total of 6

    Hope this answered.

    Thank-You very much.

  5. #5
    Forum Contributor
    Join Date
    05-10-2019
    Location
    Penang, Malaysia
    MS-Off Ver
    2016
    Posts
    262

    Re: SUMPRODUCT with 2 criteria from date and specific text

    Hi Bebo,
    MC is not a partial text, its specific. The correct SUMPRODUCT formula should be able to calculate MC & "1", making total of 2 (1 for MC, 1 for "1")
    I have tried your formula to O18, but it returns #VALUE!.

    Thank-You very much
    Attached Files Attached Files

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: SUMPRODUCT with 2 criteria from date and specific text

    So, counting range is mixed of text and value, with "MC" equals 1?

    If counting range contains only "MC" and 1:

    Please Login or Register  to view this content.
    Else, array formula is required:
    Please Login or Register  to view this content.
    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

  7. #7
    Forum Contributor
    Join Date
    05-10-2019
    Location
    Penang, Malaysia
    MS-Off Ver
    2016
    Posts
    262

    Re: SUMPRODUCT with 2 criteria from date and specific text

    Hi Bebo,
    just wow!!! both your solutions works!
    1. pretty simple without ctr+shift+enter, if finds any text & numbers
    2. ctr+shift+enter is required since its not SUMPRODUCT & the formula will look for a specific text for MC in that range.

    Will mark SOLVED & close this thread.

    Reputation added to bebo021999

    Thank-You very much

+ 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: 11
    Last Post: 09-02-2020, 05:57 AM
  2. [SOLVED] Use VLOOKUP and SUMPRODUCT to calculate total between time range for specific criteria
    By klavierkatze in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2020, 01:34 PM
  3. [SOLVED] Find array based on specific criteria to use in SUMPRODUCT function
    By cfrae84 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2015, 09:08 AM
  4. [SOLVED] Sumproduct with specific text
    By sandiptemkar in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-27-2013, 12:09 AM
  5. Replies: 5
    Last Post: 02-04-2013, 05:32 PM
  6. SUMIF/SUMPRODUCT/IF - 2 criteria - Date and Text
    By James T in forum Excel General
    Replies: 4
    Last Post: 05-25-2006, 03:00 PM
  7. [SOLVED] Count items when specific text and date criteria are met
    By javamom in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-24-2006, 04:35 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