How To Find Average For Number Of Entries

1. 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

2. 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. 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. Re: How To Find Average For Number Of Entries

Originally Posted by jason.b75

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. 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. Re: How To Find Average For Number Of Entries

Originally Posted by TheNewUnion
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. 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. 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. 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.

10. 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.

11. 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. 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. 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. 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. 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. Re: How To Find Average For Number Of Entries

Yep that worked, thanks Jason. Appreciate your help!

There are currently 1 users browsing this thread. (0 members and 1 guests)

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