GEOMEAN IF for specific date range

vbaisdaxing

New Member
Joined
Aug 23, 2017
Messages
12
dateamt
1/1/022
1/1/036
1/1/054
1/1/107
1/1/111
1/1/132
1/1/155
1/1/177

<tbody>
</tbody>

Hello,

I was wondering if it is possible to utilize a geomean function based on a specific date selection? For example, the data that is located within 1/1/10 - 1/1/13. Any thoughts or suggestions would be greatly appreciated.

thank you in advance.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Array-enter (press ctrl+shift+Enter instead of just Enter) a formula of the following form:

=GEOMEAN(IF(A2:A9 >= DATE(2010,1,1), IF(A2:A9 <= DATE(2013,1,1), B2:B9)))
 
Last edited:
Upvote 0
thank you joeu2004. Greatly appreciated. I thought i could figure it out with the how you set up the formula. but i was wondering how would you write the formula if you had a name column added. For example all entries with the name=A and the date range of 1/1/10 - 1/1/13 ? Thank you very much once again. I earlier tried
"=GEOMEAN(IF(AND(A2:A9 >= DATE(2010,1,1),B2:B9 = "A"), IF(AND(A2:A9 <= DATE(2013,1,1),B2:B9="A"), C2:C9)))"

datenameamt
1/1/02a2
1/1/03b6
1/1/05a4
1/1/10b7
1/1/11a1
1/1/13a2
1/1/15b5
1/1/17a7

<tbody>
</tbody>
 
Upvote 0
how would you write the formula if you had a name column added. [....] I earlier tried
=GEOMEAN(IF(AND(A2:A9 >= DATE(2010,1,1),B2:B9 = "A"), IF(AND(A2:A9 <= DATE(2013,1,1),B2:B9="A"), C2:C9)))


Array-enter (press ctrl+shift+Enter instead of just Enter) a formula of the following form:

=GEOMEAN(IF(B2:B9 = "A", IF(A2:A9 >= DATE(2010,1,1), IF(A2:A9 <= DATE(2013,1,1), C2:C9))))
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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