Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Spreadsheets (https://www.askmehelpdesk.com/forumdisplay.php?f=395)
-   -   how to count and sum a range of number (https://www.askmehelpdesk.com/showthread.php?t=730003)

  • Jan 24, 2013, 10:30 AM
    fcf
    how to count and sum a range of number
    I have a range of numbers that contain hours worked
    I need to calculate the total of 20 days worked
    not every cell in the range has a value, so I will need to keep adding vaules
    till I reach 20 days worked
    I have tried count, countif, but I cannot make it keep checking cells for values, and stop when it has 20 values to sum
  • Jan 25, 2013, 12:12 PM
    JBeaucaire
    Click GO ADVANCED and use the paperclip icon to post up a copy of your workbook. Make sure the workbook demonstrates your desired results mocked up manually, highlight the cells you're trying to automate.
  • Jan 25, 2013, 01:39 PM
    fcf
    1 Attachment(s)
    Quote:

    Originally Posted by JBeaucaire View Post
    Click GO ADVANCED and use the paperclip icon to post up a copy of your workbook. Make sure the workbook demonstrates your desired results mocked up manually, highlight the cells you're trying to automate.

    Hi I have attached a file hope that it explains what I am looking for
  • Jan 26, 2013, 10:27 PM
    JBeaucaire
    Try this in T4, then copy to the right:

    =SUM(OFFSET(S$6, , , , -10-COUNTIF(J6:S6, ""))) / 10
  • Jan 28, 2013, 06:40 AM
    fcf
    Hi
    This is close to what I need, but it does not count back the 10 working days.
    We have
    16:s6 as the days that need to be checked for hours.
    N6 does not have any hours so the formaula should count add from I6:s6
  • Jan 28, 2013, 08:53 AM
    JBeaucaire
    So try:

    =SUM(OFFSET(S$6, , , , -10-COUNTIF(J6:S6, 0))) / 10
  • Jan 28, 2013, 09:18 AM
    fcf
    this is working for me. The issue is now how to add a new range if you need it as in my example

    =SUM(OFFSET('warehouse-drivers'!S30,, -20-COUNTIF('warehouse-drivers'!C30:S30,"")))/20


    the range of C30:S30 is a total of 17 days,, so I need to go to the previous month and look at an additiona 3+ days to get the total of the last 20 days worked.

    the range I need to add to the formula is
    'warehouse-drivers'!W5:AG5

    thanks for your help with this I am much further along with your assistance.
  • Jan 29, 2013, 01:51 AM
    JBeaucaire
    Spanning raw data over multiple sheets in an incorrect data storage method. I'm not going to pursue that method with you.

    I suggest you move your data storage process onto a single sheet. You're using COLUMNS in a way most people use rows since there are far more rows typically.

    I would suggest you consider moving to a standard single-sheet data storage method, and then use a second sheet to draw information out of that single sheet.
  • Jan 30, 2013, 09:28 AM
    fcf
    1 Attachment(s)
    Quote:

    Originally Posted by JBeaucaire View Post
    Spanning raw data over multiple sheets in an incorrect data storage method. I'm not going to pursue that method with you.

    I suggest you move your data storage process onto a single sheet. You're using COLUMNS in a way most people use rows since there are far more rows typically.

    I would suggest you consider moving to a standard single-sheet data storage method, and then use a second sheet to draw information out of that single sheet.

    Hi I have changed the layout as you suggested, please let me know if
    I have the format correct. I am now dealing with #ref error
  • Jan 31, 2013, 03:26 PM
    JBeaucaire
    1 Attachment(s)
    This is how I would do this:

  • All times are GMT -7. The time now is 02:45 AM.