Using Cells with number ranges for calculation

Mack23

New Member
Joined
Aug 11, 2021
Messages
28
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a pivot table that has ranges of number of units. I would like to use this field for looking up a value in that range to return the average number of minutes for that unit range.
1633712684975.png


So I am going to have another column that will have values to get summed ie 50+50+100+250=450. I then would like to use that 450 value to lookup in the units column of the above table, find the cell, and then return the average minutes for that unit range. I know there are probably different ways of doing this I just wanted to avoid making two columns for the unit range and just use the pivot table ranges.

Look forward to the creative solutions,
Mack
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
So if the value is 450, the result should be 15.98, yes ?

If you are able to change your UNITS column, so that where you now have
100-299
300-499
500-699
and so on...

you have instead simply
100
300
500
and so on...

this can be achieved by a simple vlookup, such as
=vlookup(450,a1:b20,2)
assuming your table is in the range a1:b20.
Replace "450" with a cell reference, if that is the result of a formula.
 
Upvote 0
MrExcelPlayground4.xlsx
HIJKL
2TABLEThingLookup
3100-29910.155020.3
4300-49915.5
5500-69920.3
6700-89922.4
Sheet15
Cell Formulas
RangeFormula
L3L3=XLOOKUP(K3,VALUE(LEFT(H3:H6,SEARCH("-",H3:H6)-1)),I3:I6,"",-1)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,422
Messages
6,119,396
Members
448,891
Latest member
tpierce

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