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!
 

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.
Too bad you didn't include DA. I can't paste your formulas.

I cannot reproduce your problem. I suspect that your numbers are displayed as integers, but are not really integers. So if you have a value like 114.99999999 it is going to show up as 105-114.
$scratch.xlsm
ABCDEFGHIJK
1IntegersNot IntegersNot Integers but Formatted as Integers
2105105-114104.99995-10410595-10400-84
3106105-114105.999105-114106105-1148585-94
4107105-114106.999105-114107105-1149595-104
5108105-114107.999105-114108105-114105105-114
6109105-114108.999105-114109105-114115115-124
7110105-114109.999105-114110105-114125125-134
8111105-114110.999105-114111105-114135135+
9112105-114111.999105-114112105-114
10113105-114112.999105-114113105-114
11114105-114113.999105-114114105-114
12115115-124114.999105-114==>115105-114
13116115-124115.999115-124116115-124
14117115-124116.999115-124117115-124
15118115-124117.999115-124118115-124
Input
Cell Formulas
RangeFormula
A2:A15A2=SEQUENCE(14,1,105,1)
B2:B15,H2:H15,E2:E15B2=XLOOKUP(A2#,Input!$J$2:$J$8,Input!$K$2:$K$8,,-1)
D2:D15,G2:G15D2=SEQUENCE(14,1,105,1)-0.001
Dynamic array formulas.
 
Upvote 0
Could you show what you have in the DA column on the SortData sheet?
Bonus Rating Template - Master Dummy Test.xlsx
DADBDC
20.0550-84
30.0550-84
40.0550-84
50.0550-84
60.0550-84
70.0550-84
80.2200-84
90.2200-84
100.2200-84
110.2200-84
120.2200-84
130.2200-84
140.2200-84
150.2200-84
160.2200-84
170.2200-84
180.2200-84
190.2200-84
200.2200-84
210.2200-84
SortData
Cell Formulas
RangeFormula
DA2:DA1922DA2=IF(OR('Rpt 2 V'!B2="",'Rpt 2 V'!B4=""), CE2#, DROP(CHOOSECOLS(CQ2#,8),1))
DB2:DB1922DB2=DA2#*100
DC2:DC1922DC2=VLOOKUP(DB2#,Input!J2:K8,2)
Dynamic array formulas.


DA column is another spilled array. It is one of column from an array. Thanks,
 
Upvote 0
That would be good - best to use a file sharing platform such as Dropbox, Google Drive etc. Just remeber to share the file with anyone with the link - and post the link here.
thank you.
 
Upvote 0
@kevin9999

Sorry, I guess I can't share the file. I tried to use nested IF and it works now, but just a bit complicated. Thanks for your help.
I wish I can share the file with you so to know the truth of this issue. Actually, based on your previous comment, I did go back to the original data and ensure that was not a text. The result stayed the same, no change, no fix. :(
 
Upvote 0
Last thing I can suggest is to check if the a 115 in DA = Input!J6. Does it return TRUE or FALSE?
 
Upvote 0

Forum statistics

Threads
1,226,049
Messages
6,188,567
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