+ Reply to Thread
Results 1 to 8 of 8

Count Function

  1. #1
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Count Function

    Hi,

    Please need assistance on the count and countif functions.

    In my data attached i want results in column A to be the Count of the Truck numbers (as 1) in column D when the Date Changes.

    that is the truck numbers should be uniquely counted as 1 per each date.

    Please find attached file.

    Thanks.

    Count Function Help.xlsx

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count Function

    Would you manually enter the results you expect to see in column A so that we can understand your goal. It's not entirely clear to me.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Count Function

    see below image,

    once the date change every unique truck number is counted as 1 in column A and duplicates as 0



    Attachment 660442

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count Function

    WOuld you upload the workbook rather than a picture (which isn't there anyway). Pictures are raley much use and we always prefer the workbook

  5. #5
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Count Function

    ok Richard
    have manually feed the result as i want it pls assist to formulate it.


    Attachment 660482

  6. #6
    Forum Contributor
    Join Date
    11-10-2017
    Location
    INDIA
    MS-Off Ver
    365
    Posts
    184

    Re: Count Function

    Check this out!


    Just paste the formula where ever you need to calculate the count.
    For both case with and without date
    Attached Files Attached Files
    Last edited by Sunny18pc; 01-31-2020 at 07:02 AM.
    *If you wish you click on *,a way to say ThankYou

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count Function

    Would you just check what I think is a typo.

    In A60 you show 0 although the truck number has changed since the truck in D6 has changed form D59

    If that's the case and it is a typo and should be 1, then in A3 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But looking back to your original where you say "the truck numbers should be uniquely counted as 1 per each date." that could be implied to mean that you are only counting 1 every time the date changes which would be inconsistent with the values you are currently showing in column A

  8. #8
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Count Function

    Thank you it worked nice

+ 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. function to count the average, check if not empty, then count
    By doudou in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-06-2019, 06:55 AM
  2. Replies: 17
    Last Post: 04-11-2016, 11:14 PM
  3. User defined function- count color and count only visible rows
    By marsjanik1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2016, 03:05 PM
  4. How to count text entered with ALT+ENTER using a count function
    By bethy1234 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-29-2015, 02:41 PM
  5. [SOLVED] COUNT function does not count values beginning with text
    By PeteABC123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2013, 06:38 PM
  6. [SOLVED] Count If Function To Count Frequency Of Long Numbers
    By RowanB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2013, 05:18 AM
  7. Using the COUNT function to count letters generated by an IF function
    By SMErickson7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-28-2013, 12:02 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