vlookup

itazmia

New Member
Joined
Sep 3, 2023
Messages
6
Office Version
  1. 2021
Platform
  1. Windows
Hello,

I am looking for a way to average all the numbers that begin with 1 in my lookup table where i have been given a number like 1.4. If i was given the number of 2.3 i would be looking to average all of the numbers starting with 2 in my lookup table. How would i do this?

Is it possible to create a range so that when i performed a lookup i could say i want the average of the numbers between 1.01 and 1.99

1693752879012.png
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi & welcome to MrExcel.
I have no idea where your data is, but try it like
Excel Formula:
=AVERAGEIFS(C:C,B:B,">="&INT(G6),B:B,"<"&INT(G6)+1)
 
Upvote 0
Hi & welcome to MrExcel.
I have no idea where your data is, but try it like
Excel Formula:
=AVERAGEIFS(C:C,B:B,">="&INT(G6),B:B,"<"&INT(G6)+1)
Hi, thanks for replying i have updated my question to show where the data is
 
Upvote 0
Have you changed the ranges to suit your data?
 
Upvote 0
You have the ranges the wrong way round, it should be
Excel Formula:
=AVERAGEIFS(H7:H17,G7:G17,">"&INT(L9),G7:G17,"<"&INT(L9)+1)
 
Upvote 0
Solution
You have the ranges the wrong way round, it should be
Excel Formula:
=AVERAGEIFS(H7:H17,G7:G17,">"&INT(L9),G7:G17,"<"&INT(L9)+1)
That is perfect that works. Thank you so much for your help :):):)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,217
Messages
6,123,670
Members
449,115
Latest member
punka6

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