+ Reply to Thread
Results 1 to 4 of 4

Trouble with Formula in a Table

  1. #1
    Registered User
    Join Date
    11-25-2015
    Location
    London,England
    MS-Off Ver
    2010
    Posts
    2

    Trouble with Formula in a Table

    So I monitor my own stat's at work with a table I've created within Excel.

    This provides the following for me:
    row's in which I can enter a '1' or higher
    Total at the end of each row (simply adds together the row)
    CPH - Current Per Hour (takes the total(s) from the previous boxes for that row and any above it to work out overall average
    End of Shift Total and CPH which divides my overall total by 9.5 (length of shift)

    The problem I have is once I take my lunch the CPH totals on each row following are incorrect due to the Lunch row not being excluded from the formulas.

    What I am trying to do is amend the formula so that if 'L' is entered into that row it is excluded from that and following rows - this should in turn mean that for the following rows the CPH will then be correct.

    Is this possible?

    At the moment I have:

    =AVERAGE(Q1:Q2/1)

    The '1' increases by 1 each row to cover the total time in the office up to 11 as I do an 11 hour shift total.

    I have a programming background but my Excel knowledge is weak - I was thinking I could use an IF/OR statement e.g. =IF(Q1:Q2=L,"Lunch"(AVERAGE(Q1:Q2/1) but this doesn't work.

    Attached is what I'm working with and also includes example figures + Lunch hour - As you can see the hour following my lunch the CPH row is including the Lunch hour in working out my Average - this means it is lower then the actual figure which should be '10'

    Thanks

    Tally Table.xlsx
    Last edited by O'Donnell; 11-26-2015 at 12:14 AM. Reason: Added file to be viewed, think I've included everything needed now

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Trouble with Formula in a Table

    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 use the paperclip icon to open the upload window.

    View Pic
    Quang PT

  3. #3
    Registered User
    Join Date
    11-25-2015
    Location
    London,England
    MS-Off Ver
    2010
    Posts
    2

    Re: Trouble with Formula in a Table

    I think I've added everything you were after - could be wrong lol - let me know if more is required

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Trouble with Formula in a Table

    ARRAY Formula in 2nd Row , then drag down
    =SUM($Q$2:$Q2)/(ROWS($B$2:$B2)-SUM(--(ISTEXT($B$2:$B2))))
    Attached Files Attached Files

+ 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. PowerPivot Table trouble
    By gkleos718 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-04-2015, 01:24 PM
  2. [SOLVED] Trouble with time value from pivot table in an IF formula
    By mrteater in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-08-2015, 12:01 PM
  3. trouble sorting pivot table
    By Execut1ve in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-29-2014, 08:49 AM
  4. Table issues, reverse lookup help with my workbook
    By chambersj in forum Excel General
    Replies: 3
    Last Post: 05-22-2012, 07:23 AM
  5. Trouble Using Pivot Table off a DNR
    By Research RN in forum Excel General
    Replies: 7
    Last Post: 01-09-2009, 12:03 PM
  6. Trouble sorting a table???
    By FISH in forum Excel General
    Replies: 2
    Last Post: 09-27-2005, 05:05 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