Hi everyone,
I have one problem to solve.
I have numerical data in columns (one column is one subject) and those data are the test marks (0-5). I have 90 rows with those those marks. What I would like to do is to get numbers of every rows with same mark e.g. 3. It is important that I don't get row's number one by one. I need them in line (2, 3, 6, 9, 11, 15...)
Thank you in advance!
Nenad
try this
Sub aaa() Dim myrange As Range Dim l As Integer Dim k As Variant l = Cells(Rows.Count, "a").End(xlUp).Row Set myrange = Range("a1:b" & l) For Each k In myrange If k.Value = 3 Then Range("c1") = Range("c1") & k.Row & "," End If Next End Sub
Regards
tom1977
If You are satisfied with my solution click the small star icon on the left to say thanks.
see attatchment
Azam
If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
For prompt answer, be descriptive, concise, short, direct, and to-the-point.
Thank you a lot guys! :D I really appreciate your help! I will use second solution it is easier for me!
All Best!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks