Check if Number Exist in Row Range

ibmy

Board Regular
Joined
Mar 4, 2020
Messages
134
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Sample of 100+k rows data:
3.1.xlsb
DEFGHIJKLM
1MaxBIBexpected result :
2
31.207021.207024Max Exist
41.207021.20675
51.207021.20889
61.207021.20302
71.207021.20702
81.207031.207031Max X
91.207031.20701
101.207061.207063Max X
111.207061.20702
121.207061.20705
131.207061.20702
141.207021.20699
151.207241.207246Max Exist
161.207241.20724
171.207241.20703
181.207061.20706
191.207061.20703
201.207071.20707
211.207071.20707
221.207071.20703
231.207071.20707
241.207071.207031Max Exist
251.207101.20707
261.207121.20712
Sheet4

Data start at row 3.

Range = Start Range : Row x+1 -> End Range : Row x + Value in Column H
Example in Row 3:
H3 value is 4 so check number in D3 (1.20702) in F4:F7 (Start Range : Row 3+1=4 -> End Range : Row 3+4=7)
Result in Column M, Row 3, M3 "Max Exist" (1.20702 exist in F7). If number do not exist, result is "Max X"
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
@Akuini , the code produce result all "Max X"
It works on my side:
Book1
DEFGHIJKLM
1MaxBIB
2
3120.702120.7024Max Exist
4120.702120.675
5120.702120.889
6120.702120.302
7120.702120.702
8120.703120.7031Max X
9120.703120.701
10120.706120.7063Max X
11120.706120.702
12120.706120.705
13120.706120.702
14120.702120.699
15120.724120.7246Max Exist
16120.724120.724
17120.724120.703
18120.706120.706
19120.706120.703
20120.707120.707
21120.707120.707
22120.707120.703
23120.707120.707
24120.707120.7031Max Exist
2512.071120.707
26120.712120.712
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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