Hi
I figured out how to use the IsError function this morning to help me find errors in the vlookup.
So now what I am hoping to do is find all of the cells NEXT to the error,(using a simple offset), which in this case are stock tickers, and then list them out in a new range/area off to the side.
I am just having trouble figuring out how to nest another If statement inside the one already built to then paste the offset value to another place.
Recently new at this, so 9x out of 10 i've been able to solution by looking and testing, but still not great with looping and nesting if's.
Any help is appreciated.
The Excel sheet looks something like:
Col B Col C
AAPL $100
ABT $ 50
CAT #N/A
DE $40
I need to capture CAT since it has no price and paste it in Column F.
I figured out how to use the IsError function this morning to help me find errors in the vlookup.
So now what I am hoping to do is find all of the cells NEXT to the error,(using a simple offset), which in this case are stock tickers, and then list them out in a new range/area off to the side.
I am just having trouble figuring out how to nest another If statement inside the one already built to then paste the offset value to another place.
Recently new at this, so 9x out of 10 i've been able to solution by looking and testing, but still not great with looping and nesting if's.
Any help is appreciated.
Code:
Sub Test2()
Dim Cell As Range
Dim CellRange As Range
Set CellRange = Range("C1:C4")
For Each Cell In CellRange
If IsError(Cell) Then
Cell.Offset(0, -1).Copy
End If
Next Cell
End Sub
The Excel sheet looks something like:
Col B Col C
AAPL $100
ABT $ 50
CAT #N/A
DE $40
I need to capture CAT since it has no price and paste it in Column F.