Mean between 2 lookedup values

whitealbum

New Member
Joined
Apr 2, 2019
Messages
5
Hi everyone,

I have a 2 row data set with over 100 cells. The first row contains time values, the second row a numeric value.
I have to find 2 given time values in the first row, and the I need to get the mean between the numeric values under the found values. But here is the tricky part: the mean should not only be based on those 2 found numeric values, but also it should include all numeric values between those 2 values.
i work with live data, so all values can change every day.

I used Hlookup to return the 2 numeric values, but I have no idea how to include all those other numeric values between them...to get the mean.

I hope this challenge can be solved by anyone.

Kind regards
 

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,216
Office Version
  1. 365
Platform
  1. Windows
Hi. So the average between the two times? Are the times in order?
 

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,216
Office Version
  1. 365
Platform
  1. Windows
Try this as an example with your times in column A, times in column B and the start time in D2 and end time in E2:

=AVERAGEIFS(B:B,A:A,">="&D2,A:A,"<="&E2)
 

whitealbum

New Member
Joined
Apr 2, 2019
Messages
5

ADVERTISEMENT

It does return a value, but it is not the mean I am looking for. The mean I got is 1040.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,232
Messages
5,594,956
Members
413,954
Latest member
mrsandy

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
Top