+ Reply to Thread
Results 1 to 5 of 5

Need help for Count value with condition

  1. #1
    Registered User
    Join Date
    06-06-2014
    Location
    Nepal
    MS-Off Ver
    MS office professional 2016
    Posts
    90

    Need help for Count value with condition

    Here in attachment i need a help on Count a value with three different condition As below

    count "A" column if column "B" date is less then column "C" date
    Count "A" column if the date at column "B" is within 6 days from column "C" date
    Count "A" column if the date at column "B" is above 6 days from Column "C" date
    Attached Files Attached Files

  2. #2
    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
    52,936

    Re: Need help for Count value with condition

    I dont have time to spend on this right now, but take a look at using =COUNTIFS()
    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

  3. #3
    Registered User
    Join Date
    06-06-2014
    Location
    Nepal
    MS-Off Ver
    MS office professional 2016
    Posts
    90

    Re: Need help for Count value with condition

    tried but unable to input condition with dates

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Need help for Count value with condition

    Maybe..

    G2:
    =SUMPRODUCT(($A$2:$A$7=$F2)*($B$2:$B$7<$C$2:$C$7))

    H2:
    =SUMPRODUCT(($A$2:$A$7=$F2)*($B$2:$B$7<=$C$2:$C$7+6))-$G2

    I2:
    =SUMPRODUCT(($A$2:$A$7=$F2)*($B$2:$B$7>$C$2:$C$7+6))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    06-06-2014
    Location
    Nepal
    MS-Off Ver
    MS office professional 2016
    Posts
    90

    Re: Need help for Count value with condition

    Thankyou 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. [SOLVED] Unique count and output total count for IDs that meet condition
    By makaveeti in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-05-2022, 09:53 AM
  2. Formula Required to Count Rows only if condition is meet or else dont count
    By Shahbazk in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-22-2017, 08:39 AM
  3. [SOLVED] How to count a condition based on having another condition?
    By Robster in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-12-2014, 04:17 PM
  4. [SOLVED] Count with condition.
    By macov_vanbasten in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-11-2013, 01:57 PM
  5. [SOLVED] How to count with condition
    By yukioh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2012, 02:44 AM
  6. Count until a condition is met
    By SueWithQuestion in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-23-2011, 08:25 AM
  7. [SOLVED] count col-A if col-B = condition
    By Balhar in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-18-2006, 05:52 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