Which Formula?

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,970
Office Version
  1. 2010
Platform
  1. Windows
Bit of a complicated one here

Basically, what I need to do is have V22 (Coloured in Red) look at V20 (Coloured in Green) and match the nearest result in the table contained in Y:Z

Currently showing 240.5 in V20, therefore the result in V22 should be 1.00 (Nearest match from the table in Y:Z)

HELP!!!!!!!

TIA
India Capacity Plan.xls
UVWXYZ
1ENWI-TEL1050.25
2Hours12100.50
3Days53150.75
4Sale&Purchase42084.004201.00
5Remortgage4806961.205251.25
6Total52316301.50
77351.75
8Sale&Purchase0.9983.168402.00
9Remortgage0.0009452.25
1010502.50
11Sale&PurchaseAgentsReq1.3911552.75
12RemortgageAgentsReq012603.00
13ENWITotalAgents1.3913653.25
1414703.50
15Schedulling15753.75
16Hours16804.00
17SchedullingTotal325017854.25
18Daily162.518904.50
19AverageTimePerDoc1.48Hours19954.75
20AverageDailyTime(Mins)240.521005.00
2122055.25
22SchedullingAgentsRequired23105.50
2324155.75
2425206.00
Analysis
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Shouldn't the closest value be 210, with the corresponding value being 0.50? If so, try the following formula which needs to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER...

=INDEX($Y$1:$Y$24,MATCH(MIN(ABS($X$1:$X$24-V20)),ABS($X$1:$X$24-V20),0))

Hope this helps!
 
Upvote 0
Just to be clear, if V20 contains 300, Ralph's formula will return 0.50, whereas my formula will return 0.75. Not sure which one you're looking for...
 
Upvote 0
Hi Guys!

Thanks for taking the time to look at my post

What I need is this -

If V20 = 240.5, I need the formula in V22 to look at the list contained in Y:Z and return the value which is closest to V20, from column Z

So if V20 = 240.5, the result in V22 would be 0.50, as this number is between 210 (Y2) & 315 (Y3), as its closer to 210, the result would need to be 0.50

Hope this is a little clearer?

Mark
 
Upvote 0
Two solutions have been offered. Have you tried any of them? Note that in my previous post I tried to clarify the difference between the two solutions.
 
Upvote 0
Two solutions have been offered. Have you tried any of them? Note that in my previous post I tried to clarify the difference between the two solutions.

Domenic - I tried your, but it returned the wrong value, it returned the values in Y, I need the values in Z

Ralph's appears to be working OK? :biggrin:

Boss appears to be happy, so I guess its solved?

Thanks again
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,827
Members
449,470
Latest member
Subhash Chand

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