+ Reply to Thread
Results 1 to 12 of 12

How to increase denominator by 1?

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    United States
    MS-Off Ver
    Excel 2007, 2010
    Posts
    6

    How to increase denominator by 1?

    Hey, new here and have found answers before by a google search and wanted to join as this is a great forum.

    I am trying to keep a running total of the number of patients I see per day. I hand enter the total seen and then have the formula of (cell/#). The cell is the sum of all the cells in that row which is the number of patients. # is the number of cells. I would like the information to be UTD and thus have the denominator increase by 1 every time information is added to a new cell. So, my number of patients per day is always accurate, not diluted by an empty cell. The denominator is a constant that I count all the days I will work and enter it before hand, so only the nominator changes.

    Any ideas?

    Thank you in advance for your time

    sugarray
    Last edited by sugarray40; 01-31-2013 at 09:13 PM.

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

    Re: How to increase denominator by 1?

    Hi sugarray and welcome to the forum

    im not entirely sure what you are trying to do, but try playing around with countA() - it will count all non-empty cells
    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
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: How to increase denominator by 1?

    Do you have sample data?
    Click on star (*) below if this helps

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: How to increase denominator by 1?

    Hi
    If the number of cells you want to count are in row 2 use =COUNT(A2:A1000) which will count the number of cells containing a number. Adapt range to your needs

  5. #5
    Registered User
    Join Date
    01-31-2013
    Location
    United States
    MS-Off Ver
    Excel 2007, 2010
    Posts
    6

    Re: How to increase denominator by 1?

    Thanks Pepe Le Mokko, that worked, at least I think. I do the math on a calculator and check it.

    sample data

    The most days in a month is 31, so I have 1-31 in row 3, column B - AF. Then Row 4-14 is January - December. I then input my daily count in the corresponding date column for January. I have 9, 17, 12, 18, 9, 18, 23, 21, 11, 20, 25,7, 12, 18, 20, 10 and today is blank. I need the denominator to then increase by 1 each time I enter data in a cell in that row. The above COUNT worked great. Let me try it for other cells, as I work in 2 different places and want to separate that data too.

    =AH3/(COUNT(B3:AF3)) => this works perfect, but is both work sites together.

    So, now how do I separate the data:

    =(D3+H3+I3+K3+O3+P3+R3+W3+Y3+AC3+AD3+AF3)/COUNT(D3+H3+I3+K3+O3+P3+R3+W3+Y3+AC3+AD3+AF3). These are the cells corresponding to one site, but when I put it in there to count them for the denominator, it is way off. I did have () around COUNT as well, but that didn't change it. Tried [] and that didn't work either, just got an error.

    Thank you!!

    sugarray
    Last edited by sugarray40; 01-31-2013 at 04:43 PM.

  6. #6
    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,939

    Re: How to increase denominator by 1?

    count() will only count numbers, it will ignore text and blank cells, thats why I suggested countA()...it will caount everything except blank/empty cells

    Do the cells you are counting have the same - or at least - similar headings? If so, you could maybe use sumifS() and countifS() instead, based on the headings.

    It will be far easier to help you if 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.
    Last edited by FDibbins; 01-31-2013 at 04:46 PM.

  7. #7
    Registered User
    Join Date
    01-31-2013
    Location
    United States
    MS-Off Ver
    Excel 2007, 2010
    Posts
    6

    Re: How to increase denominator by 1?

    Quote Originally Posted by FDibbins View Post
    count() will only count numbers, it will ignore text and blank cells, thats why I suggested countA()...it will caount everything except blank/empty cells
    I understand that, and in my sheet there are numbers there. I just don't understand why it won't count just the cells I ask it to count? Does it have to be a range of consecutive cells?

  8. #8
    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,939

    Re: How to increase denominator by 1?

    no it doesnt. are you sure the numbers are actually numbers/values, and not text that just looks like a number?

    test with =isnumber() FALSE indicated text

  9. #9
    Registered User
    Join Date
    01-31-2013
    Location
    United States
    MS-Off Ver
    Excel 2007, 2010
    Posts
    6

    Re: How to increase denominator by 1?

    will try again
    Last edited by sugarray40; 01-31-2013 at 08:48 PM.

  10. #10
    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,939

    Re: How to increase denominator by 1?

    Please dont upload pictures

  11. #11
    Registered User
    Join Date
    01-31-2013
    Location
    United States
    MS-Off Ver
    Excel 2007, 2010
    Posts
    6

    Re: How to increase denominator by 1?

    Here is my sheet.

    Thanks again for all the help!

    sugarray
    Attached Images Attached Images

  12. #12
    Registered User
    Join Date
    01-31-2013
    Location
    United States
    MS-Off Ver
    Excel 2007, 2010
    Posts
    6

    Re: How to increase denominator by 1?

    Figured it out, just had to put commas in where the + is and works like a beauty. Thanks! You guys are awesome!!

    Sugarray

+ 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