Average if but exclude rows with today's date

GREGRACH

New Member
Joined
Mar 8, 2017
Messages
19
Office Version
  1. 365
Platform
  1. MacOS
Hi All,

I want to average the dollar amounts in a column but I need to exclude those columns that have a zero dollar value and I also need to exclude rows that have today's date. I am lost as to how to do this and any advice would be hugely appreciated!

A B C D
1 Job 222 Joe Bloggs 9/3/17 $587.00
2 Job 223 Mary Simms 10/2/16 $522.00
3 Job 224 Jim Timm 13/3/16 $800.00 etc


I want to average column D but I want to exclude the dates in column C that are today's date. I also need to exclude any blank cells from column D.

Thanks in advance!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try this - change the ranges to suit:

Code:
=AVERAGEIF(C1:C20,"<>"&TODAY(),D1:D20)
 
Upvote 0
Thank you so much for this! Worked perfectly. If you don't mind answering another question......If I were to do the opposite with the date and only want it to select rows with less than todays date, what do I need to change the &TODAY() to?


Try this - change the ranges to suit:

Code:
=AVERAGEIF(C1:C20,"<>"&TODAY(),D1:D20)
 
Upvote 0
Thank you so much for this! Worked perfectly. If you don't mind answering another question......If I were to do the opposite with the date and only want it to select rows with less than todays date, what do I need to change the &TODAY() to?
You are welcome.

For your other question try:
Code:
=AVERAGEIF(C1:C20,"<"&TODAY(),D1:D20)
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,684
Members
449,116
Latest member
HypnoFant

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top