Help on putting a number into a range

tana

New Member
Joined
Jan 22, 2021
Messages
49
Office Version
  1. 365
Platform
  1. Windows
Hi,
Can someone help me with this? I am trying to put a number into corresponding range. My range table is like this:

Bonus Rating Template - Master Dummy Test a.xlsx
JK
200-84
38585-94
49595-104
5105105-114
6115115-124
7125125-134
8135135+
Input


When I put each number into the range, it seems to have problems starting at 115.

Bonus Rating Template - Master Dummy Test a.xlsx
DBDC
2200-84
3200-84
4200-84
5200-84
6200-84
7200-84
8200-84
9400-84
10400-84
11400-84
12400-84
13400-84
14600-84
15600-84
16600-84
17600-84
18600-84
19600-84
20600-84
21600-84
22600-84
23600-84
24600-84
25600-84
26600-84
27600-84
28600-84
29600-84
30750-84
31750-84
32800-84
33800-84
34800-84
35800-84
36800-84
37800-84
38800-84
39800-84
40800-84
41800-84
428585-94
438585-94
448585-94
458585-94
468585-94
478585-94
488585-94
498585-94
508585-94
518585-94
528585-94
539595-104
549595-104
559595-104
569595-104
579595-104
589595-104
599595-104
609595-104
619595-104
629595-104
639595-104
649595-104
659595-104
669595-104
679595-104
689595-104
699595-104
709595-104
719595-104
729595-104
739595-104
749595-104
759595-104
769595-104
779595-104
789595-104
799595-104
8010095-104
8110095-104
8210095-104
8310095-104
8410095-104
8510095-104
8610095-104
8710095-104
8810095-104
8910095-104
9010095-104
9110095-104
9210095-104
9310095-104
9410095-104
9510095-104
9610095-104
9710095-104
9810095-104
9910095-104
10010095-104
10110095-104
10210095-104
10310095-104
10410095-104
10510095-104
10610095-104
10710095-104
10810095-104
10910095-104
11010095-104
11110095-104
11210095-104
11310095-104
11410095-104
11510095-104
11610095-104
11710095-104
11810095-104
11910095-104
12010095-104
12110095-104
12210095-104
123105105-114
124105105-114
125105105-114
126105105-114
127105105-114
128105105-114
129105105-114
130105105-114
131110105-114
132110105-114
133110105-114
134110105-114
135110105-114
136110105-114
137110105-114
138110105-114
139110105-114
140110105-114
141110105-114
142110105-114
143110105-114
144110105-114
145110105-114
146110105-114
147110105-114
148110105-114
149110105-114
150110105-114
151110105-114
152110105-114
153110105-114
154110105-114
155110105-114
156110105-114
157110105-114
158110105-114
159110105-114
160110105-114
161110105-114
162110105-114
163115105-114
164115105-114
165115105-114
166115105-114
167115105-114
168115105-114
169115105-114
170115105-114
171115105-114
172115105-114
173115105-114
174115105-114
175115105-114
176115105-114
177115105-114
178115105-114
179115105-114
180115105-114
181115105-114
182115105-114
183115105-114
184115105-114
185115105-114
186115105-114
187115105-114
188115105-114
189115105-114
190115105-114
191115105-114
192115105-114
193115105-114
194115105-114
195115105-114
196115105-114
197115105-114
198115105-114
199115105-114
200115105-114
201115105-114
202115105-114
203115105-114
204115105-114
205115105-114
206115105-114
207115105-114
208120115-124
209120115-124
210120115-124
211120115-124
212120115-124
213120115-124
214120115-124
215120115-124
216120115-124
217120115-124
218120115-124
219120115-124
220120115-124
221120115-124
222120115-124
223120115-124
224120115-124
225120115-124
226120115-124
227120115-124
228120115-124
229120115-124
230120115-124
231120115-124
232120115-124
233120115-124
234120115-124
235120115-124
236120115-124
237120115-124
238120115-124
239120115-124
240120115-124
241120115-124
242120115-124
243120115-124
244120115-124
245130125-134
246130125-134
247135135+
248145135+
249145135+
250145135+
251145135+
252145135+
253145135+
254145135+
255145135+
256145135+
257145135+
258145135+
259145135+
260145135+
261145135+
262145135+
263145135+
264145135+
265145135+
266145135+
267145135+
268145135+
269145135+
270145135+
271145135+
272145135+
273145135+
274145135+
SortData
Cell Formulas
RangeFormula
DB2:DB274DB2=DA2#*100
DC2:DC274DC2=XLOOKUP(DB2#,Input!$J$2:$J$8,Input!$K$2:$K$8,,-1)
Dynamic array formulas.


1737946758483.png


I expected 115 is in the range of "115-124" rather than "105-114", I have tried to use vlookup as well, but same issue. Thanks!
 
Great discussion! And great suggestions as well.

Peter's initial suggestion =VLOOKUP(ROUND(DB2#,10),Input!J2:K8,2) works.

Thanks for all the help!!! Appreciated!
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
No, if you did what I suggested in your yellow cell and now get the wrong answer, try this.
Select that yellow cell with the formula, Copy it and use Paste Special (Values) to put the value back in the same yellow cell where the formula was.
The cell now contains a number, not a formula, but the result is still incorrect.

It is about how Excel, running on a machine, does not and cannot always do everything exactly as a human would do. See here for some further reading.
Also look at (& try for yourself) the 3 calculations shown in this post that all give exactly the same result if I do them manually myself, but not when Excel does them. :eek:
Rounding the input cell will give a correct result....

find bracket.xlsx
DEFG
10achievement115bracket115-124
110850-84
12859585-94
139510595-104
14105115105-114
15115125115-124
16125135125-134
Input
Cell Formulas
RangeFormula
G10G10=VLOOKUP(E10,E11#,3,TRUE)
E10E10=ROUND(1.15*100,0)
E11:G16E11=LET( achieve,E10, bonusbracket, B1:B7, upper,A1:A7, lower,DROP(VSTACK(0,upper),-1), DROP(HSTACK(lower, upper, DROP(VSTACK(0,bonusbracket),-1)),1) )
Dynamic array formulas.
 
Upvote 0
Rounding the input cell will give a correct result....
Yes, that's why I suggested it back in post #13. ;)

Great discussion! And great suggestions as well.

Peter's initial suggestion =VLOOKUP(ROUND(DB2#,10),Input!J2:K8,2) works.

Thanks for all the help!!! Appreciated!
You are welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,226,049
Messages
6,188,566
Members
453,484
Latest member
jlo1673

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