+ Reply to Thread
Results 1 to 2 of 2

How do I set some wksht formulas to calc. manually and others to calc. automatically?

  1. #1
    Registered User
    Join Date
    05-20-2013
    Location
    Indianapolis, Indiana
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question How do I set some wksht formulas to calc. manually and others to calc. automatically?

    Hello, everyone. I'm having a problem with a scheduling tool I'm updating for a health care facility where I work. I need to track patients' visits weekly as long as they are on our caseload. I've figured out how to do that using a custom function in VBA. Here's the code:

    Function Cumulate(weekly, cumulative)
    Cumulate = weekly + cumulative
    End Function

    And here's the grid (it's a screenshot; i figured nobody would open a file with macros in it...)

    Scheduling Grid Screenshot.docx

    In the second-to-last column on the right side of the grid, I have COUNTIF functions that total the number of weekly visits each patient receives. They look like this:

    =COUNTIF(cell1:cell2, ">0")

    I need these to remain automatic for the supervisor to adjust throughout the week.

    In the last column on the right side of the grid, I have the CUMULATE functions i created in VBA that track the total cumulative visits the patients' have received since they got onto the caseload. They look like this:

    =CUMULATE(cell1,cell2)

    I need these to be manual so the supervisor can run the function at the end of each week. How do I do this?

    Thanks for any help. I'm new here, so let me know if you need any additional information.

    -Ryan

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

    Re: How do I set some wksht formulas to calc. manually and others to calc. automatically?

    Hi and welcome to the forum

    And here's the grid (it's a screenshot; i figured nobody would open a file with macros in it...)
    you thought wrong lol. Most members are unwilling to retype your data, and would also like to see what VBA you already have in your workbook
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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