VBA code or any formula

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
Hi
I have a sheet where we have 15 values in a row
22
44
23
44
55
48
58
32
52
29
33
44
25
56
55
Now i want to know how many times 20 to 30 come in row 1 to 15 in continuing.
And
If i want to put a value, how can, i mean
If 10 to 20 comes in first row then A grade
Again If 10 to 20 comes in second row then B grade
If 10 to 20 not comes in in third row then C grade
If 10 to 20 not comes in fifth row then D grade

Formula will check the continuing of come 20 to 30 or not and It will check and give grade if 20 to 30 comes after 2 day, it will put e grade, if its come after 3 day then f grade
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Now i want to know how many times 20 to 30 come in row 1 to 15 in continuing.

I hope this helps

Excel Workbook
AB
1
2224
344
423
544
655
748
858
932
1052
1129
1233
1344
1425
1556
1655
Hoja11
 
Upvote 0
Thanks bro, point one solved, pls help in other point also
 
Upvote 0
You're welcome.

You can give examples of what you expect at each point
 
Upvote 0
Thanks again bro...

I want this
Pls check the given sheet where we have 14 values in a row,
Row no. 22 40
1. 44 0
3. 23 60
4. 44 0
5. 34 60
6. 29 40
7. 29 40
8. 41 0
9. 52 0
10. 29 80
11. 46 0
12. 44 0
13. 48 0
14. 35 90

If u check then find that if the value between 20 to 40 come regular, a certain value 40 comes (row no. 6 &7)

And if the value between 20 to 40 come after one gap, a certain value 60 comes (row no. 1, 3, 4, 5)

And if the value between 20 to 40 come after double gap, a certain value 80 comes (row no. 8,9,10)

And if the value between 20 to 40 come after three continuing gap a certain value 90 comes (row no. 11,12,13,14)

I hope it will clear the point, pls provide any help.....bro
 
Upvote 0
Can you explain your example, do not appreciate it well, what do you have and what do you expect from the result?
You could upload some images with explanations.

You could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. If the workbook contains confidential information, you could replace it with generic data.
 
Upvote 0

Forum statistics

Threads
1,214,543
Messages
6,120,123
Members
448,947
Latest member
test111

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