Not sure why SUMIFS isn't working here...

mysteryg45

New Member
Joined
Dec 1, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I have a sheet ("Form Responses 1") listing Date 1 and Date 2 and calculating the amount of time between them. And then in another sheet I also want to average the amount of time between Date 1 and Date 2, where Date 2 (in column H) is only in the last 6 months. (For some reason I couldn't get AVERAGEIF to work, so I'm using SUMIF/COUNTIF.) The following formula returns 0. Where am I going wrong? (I have a feeling it's to do with how I've written out the check for if the date is in the last 6 months...)

=SUMIF('Form Responses 1'!H:H,">"&TODAY()-180,'Form Responses 1'!L:L)/COUNTIF('Form Responses 1'!H:H,">"&TODAY()-180)
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi and welcome to MrExcel

How about:

Libro2
HIJKLMNO
1
2
3
424/06/20232040
5
604/07/202360
Form Responses 1
Cell Formulas
RangeFormula
O4O4=AVERAGEIF('Form Responses 1'!H:H,">"&TODAY()-180,'Form Responses 1'!L:L)
 
Upvote 0
Hi and welcome to MrExcel

How about:

Libro2
HIJKLMNO
1
2
3
424/06/20232040
5
604/07/202360
Form Responses 1
Cell Formulas
RangeFormula
O4O4=AVERAGEIF('Form Responses 1'!H:H,">"&TODAY()-180,'Form Responses 1'!L:L)
Like I said, that's not working -- it's giving me a #DIV/0! error. That's why I'm doing COUNTIF/SUMIF.
 
Upvote 0
The whole sheet is a fair deal more complicated than what I've presented here, so maybe pictures will help with a solution? There's probably something also to why AVERAGEIFS errors out. I'm just not sure if I'm missing some syntactical thing or just hindered by what I don't know about Excel...

The Form Responses 1 sheet
1701475996256.png


The other sheet that's pulling data from Form Responses 1:
1701476047379.png
 
Upvote 0
Welcome to the MrExcel board!
Is this a Google Sheets question?
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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