+ Reply to Thread
Results 1 to 4 of 4

Formula to count (in a whole number ie 1,2,3) from 1 column, based on another column

  1. #1
    Registered User
    Join Date
    01-28-2018
    Location
    Arkansas
    MS-Off Ver
    MS 2016
    Posts
    10

    Formula to count (in a whole number ie 1,2,3) from 1 column, based on another column

    So, my sheet has a row that gets populated every time an item is used. The user must enter the 'date used', 'duration of time checked out' and other categories that aren't important.

    What I'm wondering is, in a different cell corresponding with each month of the year, can I get a count (in a whole number ie 1,2,3) when someone enters a 'duration'?

    For example, someone goes to check out a truck. They enter 1 Jan in the 'date used' column. Then they enter 2.5 hours in the 'duration of time checked out' column. In another cell corresponding to the month of Jan, can I have it return a count
    for each time someone entered a 'duration' time. I don't need the total hours counted, I've already done this in another cell. What I need is to get a count every time someone enters a 'duration' in there. The next time someone enters another line item, and enters a 'duration', that number would go to "2" and so on.

    I need this because there will be multiple individuals checking out trucks at different times, and I am trying to keep track of how many times employee 1 checks out the truck in the month of Jan, or Feb or any month, along with employee 2, or 3...each employee has their own column and would put the 'duration' in their applicable column, and the total count would go against them in that other cell according to what month they entered in 'date used'.
    Attached Files Attached Files
    Last edited by texhater; 02-14-2018 at 12:35 AM. Reason: attaching excel

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,762

    Re: Formula to count (in a whole number ie 1,2,3) from 1 column, based on another column

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-28-2018
    Location
    Arkansas
    MS-Off Ver
    MS 2016
    Posts
    10

    Re: Formula to count (in a whole number ie 1,2,3) from 1 column, based on another column

    excel is attached

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,043

    Re: Formula to count (in a whole number ie 1,2,3) from 1 column, based on another column

    Utilizing the present layout try the following.
    1) Paste the following formula into cell D508: =SUMPRODUCT((MONTH($C7:$C500)=1)*(ISNUMBER(E7:E500)))
    2) Drag the fill handle over to cell F508
    3) Copy the formula that is in cell D508 from the formula bar and paste the formula into cell G508, then change the 1 to a 2 i.e. =SUMPRODUCT((MONTH($C7:$C500)=2)*(ISNUMBER(E7:E500)))
    4) Drag the fill handle over to cell I508
    5) Repeat this procedure for each month.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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: 12
    Last Post: 01-16-2016, 10:13 AM
  2. Replies: 3
    Last Post: 06-26-2015, 12:50 PM
  3. [SOLVED] Count the number of items sold in one column based on the quantity in another column
    By mike_m1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-20-2013, 05:48 AM
  4. [SOLVED] Count the number of unigue numbers based on number in another column.
    By ksmith4809 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2013, 09:11 AM
  5. How to count number of values in one column based on another column value?
    By Howard Gale in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 01-16-2013, 07:15 PM
  6. Replies: 6
    Last Post: 11-18-2012, 09:15 AM
  7. Replies: 9
    Last Post: 06-08-2012, 06:22 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