+ Reply to Thread
Results 1 to 5 of 5

NEED! Formula to calculate a conditional average of cells in multiple rows

  1. #1
    Registered User
    Join Date
    05-08-2018
    Location
    USA
    MS-Off Ver
    2013
    Posts
    2

    NEED! Formula to calculate a conditional average of cells in multiple rows

    Help needed! I'm trying to create a calculator of sorts for work that is aiming to compare and old vs new commission system. It consists of a table with two calendar months side by side, if that makes sense. The purpose is to track daily output. This new commission system brings about the potential to bonus on a daily basis, and I want to make a formula that would accurately represent your current daily bonus as you fill it in day-by-day. My best stab so far has been trying to use some sort of =AVERAGEIF function, making the condition that the cell has to be ">0" (WHICH IS IMPORTANT, because the tool is meant to be filled in daily, and grow daily....this data is supposed to represent a projection based off of the culmination of all previous work) so its not accounting for days people haven't worked yet, or days where a bonus was not reached. My problem is in defining the range. As you can see the "Pot. Bonus" cells I'm trying to reference are structured within a calendar month format and cannot be easily defined as a range. I have tried creating a dynamic range (CTRL+ selecting each cell, and naming it in the cell name bar) and using that as my range in the formula....the formula recognizes the dynamic range, but it still pumps out a #VALUE! error.

    I'm sure there's an Excel guru with way more knowledge than me out there somewhere who can help me!

    Example1.PNG

    Exampe2.PNG

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: NEED! Formula to calculate a conditional average of cells in multiple rows

    Pictures are useless
    attach example desensitized excel file



    In attached Excel file try not to use:
    • merged cells
    • password protection
    • unnecessary formatting like: colours, borders, aligning another than default, etc...
    • unnecessary zooming/grouping/freezeing
    You have words to logically describe the problem

    To attach an Excel file to your post,
    • desensitize data
    • remeber that your example should reflect structure and type of data
    • click Go Advanced,
    • scroll down until you see Manage Attachments,
    • click that and select Browse,
    • select your file and click Open,
    • click Upload and you will see your attachment below Upload Files from a website
    • click Close this window,
    • click Submit reply

    After that you should see attachment in your post

  3. #3
    Registered User
    Join Date
    05-08-2018
    Location
    USA
    MS-Off Ver
    2013
    Posts
    2

    Re: NEED! Formula to calculate a conditional average of cells in multiple rows

    Sorry, this is my first time posting on this forum...wasn't sure how those images were going to come out to be honest haha. Thank you for the instructions on uploading the sheet; I hope this is more help!
    Attached Files Attached Files

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

    Re: NEED! Formula to calculate a conditional average of cells in multiple rows

    Pl show how you arrive results manually.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,148

    Re: NEED! Formula to calculate a conditional average of cells in multiple rows

    For your various totals use

    in T36 (as example)

    =SUMIFS($R$4:$AD$30,$Q$4:$AC$30,$S36)

    in Y36

    =SUMIFS($R$4:$AD$30,$Q$4:$AC$30,"Pot. Bonus")


    What is your AVERAGEIFS formula ???

+ 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. Replies: 5
    Last Post: 04-06-2018, 12:48 AM
  2. Replies: 0
    Last Post: 06-19-2017, 09:14 PM
  3. [SOLVED] Formula to calculate an average based on conditional values
    By flashiel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-23-2017, 12:37 AM
  4. [SOLVED] Formula to calculate multiple cells in multiple rows
    By Dougie12. in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2014, 09:07 AM
  5. Replies: 5
    Last Post: 11-08-2013, 05:57 AM
  6. Replies: 0
    Last Post: 08-12-2013, 01:20 PM
  7. Replies: 8
    Last Post: 03-21-2008, 12:09 PM

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