Find end of values in a column

ThomasOES

Board Regular
Joined
Aug 29, 2017
Messages
174
I would like to find the first cell in a column different from the rest

For instance column "Z" has hundreds of rows with the cell value "Fe"

I want to select the first cell in the column different from "Fe"

I set the range of the first instance of "Fe" as bastart and was trying this code

Code:
[FONT=Verdana]Range(bastart, bastart.End(xlDown)).Find (cell.Value <> "Fe").select[/FONT]

I didnt think it would work, but something similar is what I'm looking for.

Any help would be appreciated

Tom
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Try this

Code:
Sub FindValue()
  Dim i As Long
  For i = 2 To Range("Z" & Rows.Count).End(xlUp).Row
    If LCase(Cells(i, "Z").Value) <> LCase("Fe") Then
      Cells(i, "Z").Select
      Exit For
    End If
  Next
End Sub
 
Upvote 0
Dante
I've been extremely busy with other work. I'll let you know soon if your code works for me.
Thanks
Tom
 
Upvote 0
No problem, let me know if you have any questions. ;)
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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