Need help to find number between multiple range

spycein

Board Regular
Joined
Mar 8, 2014
Messages
135
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone,
I have a following data table

Batch No.​
Starting​
Ending​
1 to 10​
1​
10​
11 to 20​
11​
20​
21 to 30​
21​
30​
31 to 40​
31​
40​

I am looking for a formula which would return the matched Batch no. depend on input value.
For example, if i put 15 then the result should be 11 to 20, if i put 39 then the result should be 31 to 40.
Many thanks in advance.
Best Regards,
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
LOOKUP is what you need
Book1.xlsx
ABC
1Batch No.StartingEnding
21 to 10110
311 to 201120
421 to 302130
531 to 403140
6
715
811 to 20
Sheet3
Cell Formulas
RangeFormula
B8B8=LOOKUP(B7,{1;11;21;31},{"1 to 10";"11 to 20";"21 to 30";"31 to 40"})
 
Upvote 0
Hello Everyone,
I have a following data table

Batch No.​
Starting​
Ending​
1 to 10​
1​
10​
11 to 20​
11​
20​
21 to 30​
21​
30​
31 to 40​
31​
40​


If you have that table, then
20 05 17.xlsm
ABC
1Batch No.StartingEnding
21 to 10110
311 to 201120
421 to 302130
531 to 403140
6
715
811 to 20
Batch
Cell Formulas
RangeFormula
B8B8=LOOKUP(B7,B2:B5,A2:A5)
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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