+ Reply to Thread
Results 1 to 5 of 5

Counting cells that contain a numerical range when Criteria is met

  1. #1
    Registered User
    Join Date
    10-14-2011
    Location
    Billings, Montana
    MS-Off Ver
    Excel 2007
    Posts
    3

    Counting cells that contain a numerical range when Criteria is met

    Greetings everyone. Basically, I am trying to capture the following information from our caseworker caseloads, "When the case is open, those cases will be counted under the appropriate column of open days in which they fall under which are: 45-90, 91-185, 186-364, 365+ This information is being entered in a summary sheet, which is the last tab following each individual's caseload log indicated by preceding separate tabs, all in the same workbook. Note: The individual sheets/logs contain a drop down list for either "open" or "closed" in column G in reference to cases.

    This is my formula for the 45-90 days in the summary sheet: =IF(JONES!G3:G36,"Open",+COUNTIF(JONES!L3:L36,">=45")-COUNTIF(JONES!L3:L36,">90")) This formula works perfect for 1 individual only. When I cut and paste the formula to another caseworker, it comes back as #value and states a value in the set is of the wrong data type, even though it is a perfect copy from the cell I copied it from. I tried manually typing it in to no avail. It seems I have tried everything. Please help if you can. Thank you.

  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,938

    Re: Counting cells that contain a numerical range when Criteria is met

    hi and welcome to the forum

    i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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
    10-14-2011
    Location
    Billings, Montana
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Counting cells that contain a numerical range when Criteria is met

    Thanks so much. I will do that before the day is over

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Counting cells that contain a numerical range when Criteria is met

    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Registered User
    Join Date
    10-14-2011
    Location
    Billings, Montana
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Counting cells that contain a numerical range when Criteria is met

    Thanks folks! I got the formula.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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