+ Reply to Thread
Results 1 to 16 of 16

How To Find Average For Number Of Entries

  1. #1
    Registered User
    Join Date
    02-03-2019
    Location
    South Australia
    MS-Off Ver
    2016 (Mac)
    Posts
    7

    How To Find Average For Number Of Entries

    Hi guys,

    New to the forum here, I have a question about an expense tracking spreadsheet I have.

    Here is a screenshot of the section I need help with:

    Screenshot 2019-02-03 20.26.14.png

    What I want to do is be able to calculate the daily average profit only for the number of days that I have data for.

    I used the function =AVERAGE(O5:O35) to get the average, but it always divides by 31 as there are 31 cells. Even though not all of them are numbers, the cells contain the formulas for determining profit when data is entered.

    How can I exclude the cells that don't have any data in them from the dividing number the average is calculated from?

    Appreciate any help,

    Thanks,

    Ryan
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    12-11-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 365
    Posts
    70

    Re: How To Find Average For Number Of Entries

    Try an AVERAGEIF, something like this should do it I think
    Please Login or Register  to view this content.
    Possibly changing >= to > if you want to ignore the $0

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How To Find Average For Number Of Entries

    Welcome to Excel Forum!

    Try

    =AVERAGEIF(O5:O35,">0",O5:O35)

    The empty cells do actually contain numbers, $ - represents a zero value, if the cells were empty then they would be excluded from the average.

  4. #4
    Registered User
    Join Date
    02-03-2019
    Location
    South Australia
    MS-Off Ver
    2016 (Mac)
    Posts
    7

    Re: How To Find Average For Number Of Entries

    Quote Originally Posted by jason.b75 View Post

    Try

    =AVERAGEIF(O5:O35,">0",O5:O35)
    Thanks. This works however I need to account for numbers below zero as well for when daily spend exceeds revenue.

    How would I add <0 to that formula?

  5. #5
    Registered User
    Join Date
    12-11-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 365
    Posts
    70

    Re: How To Find Average For Number Of Entries

    That's a good question actually, what if net result is $0, would you want to include that?

    I suppose that you will always have Total Revenue so you could just "validate" with the column, then average Daily Profit, like this =AVERAGEIF(M1:M10,">0",O1:O10)

  6. #6
    Registered User
    Join Date
    02-03-2019
    Location
    South Australia
    MS-Off Ver
    2016 (Mac)
    Posts
    7

    Re: How To Find Average For Number Of Entries

    Quote Originally Posted by TheNewUnion View Post
    That's a good question actually, what if net result is $0, would you want to include that?
    Yeah ideally I would like to be able to track profit, loss as well as when net is $0. I'm using this for advertising campaigns and sometimes the campaign will pause for a day or two, meaning that net profit will be zero but I would still like that included.

  7. #7
    Registered User
    Join Date
    12-11-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 365
    Posts
    70

    Re: How To Find Average For Number Of Entries

    If there is always a Revenue or always a cost, you can use that in this formula =AVERAGEIF(M1:M10,">0",O1:O10)
    Just change the bit in bold to whichever column you want to use (e.g. profit or cost) and then you will get the average of the Daily Profit column whenever there is a value in e.g. Total Revenue

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

    Re: How To Find Average For Number Of Entries

    @ryan
    Please don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    For normal conversational replies, try using the QUICK REPLY box below.

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How To Find Average For Number Of Entries

    Assuming that days when the campaign is paused will have zero revenue as well, you might need to look at the source of the data rather than this table.

    What formula do you have in the cell that shows a daily profit of $39.03?

    @Pepe - I only see partial posts quoted, not whole ones.
    Last edited by jason.b75; 02-03-2019 at 06:59 AM.

  10. #10
    Registered User
    Join Date
    02-03-2019
    Location
    South Australia
    MS-Off Ver
    2016 (Mac)
    Posts
    7

    Re: How To Find Average For Number Of Entries

    Jason here is the formula:

    Screenshot 2019-02-03 21.58.12.png

    I figured out that I'll just manually adjust the cell range for the average function as new data is entered like so:

    Screenshot 2019-02-03 21.57.05.png

    Would be cool to have it automatically adjust as new data is entered but not the end of the world.

    Thanks for your help everyone.

  11. #11
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How To Find Average For Number Of Entries

    Do M5 and N5 contain formulas as well?

    To have it adjust automatically, we need to find the origin of the data to look for an empty cell (data not yet entered) or a genuine zero value when the campaign is paused.

  12. #12
    Registered User
    Join Date
    02-03-2019
    Location
    South Australia
    MS-Off Ver
    2016 (Mac)
    Posts
    7

    Re: How To Find Average For Number Of Entries

    Yep here's what's happening. Data is entered manually in the ad spend and revenue sections on the left:

    Screenshot 2019-02-04 00.48.22.png

  13. #13
    Registered User
    Join Date
    02-03-2019
    Location
    South Australia
    MS-Off Ver
    2016 (Mac)
    Posts
    7

    Re: How To Find Average For Number Of Entries

    My bad, you can see the formula in this one:

    Screenshot 2019-02-04 00.49.41.png

  14. #14
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How To Find Average For Number Of Entries

    It looks like you're pre-filling zero values on future dates, the simple way would be to leave those blank until you have actaul data to enter, then check for non-bank rows in one of those columns to control the average.

    =AVERAGEIF(B5:B35,"<>",O5:O35)

    You could try it based on date, but as you only have days entered in column A, it would trip up if you look back at the previous month(s) at any point.

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

    Re: How To Find Average For Number Of Entries

    Attach a sample workbook (not a picture or pasted copy). 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 then scroll down to Manage Attachments to open the upload window.

  16. #16
    Registered User
    Join Date
    02-03-2019
    Location
    South Australia
    MS-Off Ver
    2016 (Mac)
    Posts
    7

    Re: How To Find Average For Number Of Entries

    Yep that worked, thanks Jason. Appreciate your help!

+ 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. Average number of Blank Cells between entries in a Range
    By skydavis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2016, 11:27 AM
  2. Replies: 15
    Last Post: 05-26-2016, 11:52 PM
  3. [SOLVED] Need to Find one of possible enteries out of a larger number of entries and move to next
    By bfresh84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2015, 11:11 AM
  4. Four week rolling average with varying number of entries
    By timorian in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2015, 09:48 PM
  5. [SOLVED] Find Average, Return Column Header of Number Closest To Average
    By djmyers in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-07-2013, 04:19 PM
  6. [SOLVED] How to find average in groups of 3 entries
    By jimboryan in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 05-24-2013, 02:18 AM
  7. How to find duplicate entries over a number of spreadsheets.
    By GlenH3294 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2013, 02:14 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