Averaging column with criteria from different columns/workbooks

jciali

New Member
Joined
Jun 23, 2021
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I have two worksheets both have a date column and columns corresponding with the 24 hours of the day. One worksheet has a percentage in each hour cell and the other worksheet has a number in each hour cell. I am trying to average the numbers worksheet cells when the percentage of the corresponding date is over a certain percentage. I would like to be able to change the date range and also the percentage range. So if I set criteria as greater than 90% for the 0:00 hour in Workbook 1 Column B I would want to average Workbook 2 B3 (11), B4(11) and B7(13) and get 11.67. These workbooks have 5 years worth of dates if that makes a difference


WORKBOOK 1WORKBOOK 2
ABCABC
1
0:00​
1:00​
1
0:00​
1:00​
2
1/1/2020​
88%​
75%​
2
1/1/2020​
14​
13.75​
3
1/2/2020​
100%​
75%​
3
1/2/2020​
11​
11​
4
1/3/2020​
94%​
33%​
4
1/3/2020​
11​
11​
5
1/4/2020​
67%​
75%​
5
1/4/2020​
14​
13.75​
6
1/5/2020​
60%​
75%​
6
1/5/2020​
14​
13.75​
7
1/6/2020​
91%​
67%​
7
1/6/2020​
13​
13​
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,213,557
Messages
6,114,291
Members
448,564
Latest member
ED38

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