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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,219
Messages
6,123,691
Members
449,117
Latest member
Aaagu

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