+ Reply to Thread
Results 1 to 8 of 8

Countifs with nest left

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Countifs with nest left

    hi im trying to do a count if with two dates, but i need to add a left formula and the dates im counting has a time after it and the date im using as a reference doesnt.

    Here my formula which would work if the dates im looking up didnt have time in the same cell.

    =COUNTIFS($A:$A,H3,$B:$B,H3,$C:$C,I3)

    I have also attached the example.

    I know how to do left and right but i dont know where to put it within a formula.
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Countifs with nest left

    Hi

    Try

    =SUMPRODUCT((INT(A6:A1000)=H3)*(C6:C1000=I3))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Countifs with nest left

    Hi,

    Try with SUMPRODUCT:

    =SUMPRODUCT((INT($A$6:$A$40)=H3)*(INT($B$6:$B$40)=H3)*($C$6:$C$40=I3))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Countifs with nest left

    can i left be used as i can get my head around left, although i am going to look into that INT

  5. #5
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Countifs with nest left

    Ive never seen INT before, i will need to add a few more columns to the formula as well, will that be the best formula to use?

    What does INT mean?

    Many thanks

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Countifs with nest left

    INT() returns only the integer portion of a number. Since dates in Excel use the day as its base unit, INT(date) will return the days portion only.

    Regards

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Countifs with nest left

    When the dates have times you effectively need to check that they are >= H3 and < H3+1 to check that they are some time in H3 so you can use COUNTIFS like this

    =COUNTIFS($A:$A,">="&H3,$B:$B,">="&H3,$A:$A,"<"&H3+1,$B:$B,"<"&H3+1,$C:$C,I3)
    Audere est facere

+ 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] How to nest a left function within a sumif function?
    By LisaK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2017, 09:21 AM
  2. [SOLVED] Nest LEFT in VLOOKUP producing error
    By msawyer in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-07-2012, 07:26 PM
  3. [SOLVED] Excel 2007 : COUNTIFS with LEFT - workaround needed
    By dip11 in forum Excel General
    Replies: 3
    Last Post: 05-09-2012, 09:24 AM
  4. [SOLVED] HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION
    By CHAIM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION
    By CHAIM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 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