VB Code or Formula

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
@Vishaal
You will stand a better chance of getting help, if you tell us what you are trying to do.
A lot of members either cannot, or will not, download files for security reasons.
There are some add-ins available here https://www.mrexcel.com/forum/about-board/508133-attachments.html that will enable you to post a small amount of sample data to the board



Excel 2007 32 bit
A
B
2
2​
we need to check the digit of row number 2,3 and 4 in next rows (Row No. 2,3,4 and value is 2,5,6 - we will check 2,5 and 6 from row no. 5 and when we get the any digit 2,5 and 6 we will highlight that row
3
5​
4
6​
5
8​
6
9​
7
3​
8
5​
9
2
We will again start the same thing from here, I mean we will check the digit 2,5 and 3 from row no. 10
10
6​
11
7​
12
9​
13
6​
14
4​
15
1​
16
4​
17
4​
18
7​
19
2
We will again start the same thing from here, I mean we will check the digit 2,7 and 4 from row no. 20
20
9​
21
5​
22
4
We will again start the same thing from here, I mean we will check the digit 4,5 and 9 from row no. 23
23
3​
24
8​
25
9
26
27
28
29
30
31
We also need the report after how many row the digit comes, I mean in the above row answer is
32
After 5 row = 1 (You can check the digit of row no. 2,3,4 comes after five row and it is 2)
33
After 10 row = 1 (You can check the digit of row no. 9,8,3 comes after 10 row and it is 2)
34
After 3 row = 2 (You can check the digit of row no. 19,18,17 (Number are 2,7,4) which comes on row no. 22 & digit of row no.22,21,20 whic comes on row no. 25 after five row)
Sheet: Sheet1
 
Upvote 0
tried to post as you describe but its not looking good due to file is coming on full screen, well try to update a good file next time.

any solution.....
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,019
Members
448,938
Latest member
Aaliya13

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