VBA code or any formula

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
543
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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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