Find end of values in a column

ThomasOES

Board Regular
Joined
Aug 29, 2017
Messages
129
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
 

Some videos you may like

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,594
Office Version
  1. 2007
Platform
  1. Windows
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
 

ThomasOES

Board Regular
Joined
Aug 29, 2017
Messages
129
Dante
I've been extremely busy with other work. I'll let you know soon if your code works for me.
Thanks
Tom
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,594
Office Version
  1. 2007
Platform
  1. Windows
No problem, let me know if you have any questions. ;)
 

Watch MrExcel Video

Forum statistics

Threads
1,123,310
Messages
5,600,879
Members
414,413
Latest member
Sinbin

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
Top