Error: unable to get the match property of the worksheet function class

punno

New Member
Joined
Apr 23, 2019
Messages
8
Dear Good People,

I am having this error message: unable to get the match property of the worksheet function class. Below is my code where iam getting These Problem. Let me know what should i corret.Thanks

For i = 15 To 1000
If Worksheets("Sheet1").Cells(0 + i, 6) > 3 Then
'Worksheets("Sheet1").Cells(0 + i, 7) = "=INDEX('Known issues'!$A$3:$H$1000,MATCH('Known issues'!H28,'Known issues'!$F$3:$F$10,0),3)"
Worksheets("Shet1").Cells(0 + i, 7).Value = Application.WorksheetFunction.Index(Sheets("Known issues").Range("$A$3:$H$1000"), Application.WorksheetFunction.Match(Sheets("Known issues").Cells(i - 12, 8).Value, Sheets("Known issues").Range("$F$3:$F$10"), 0), 3)
End If
Next i




Best Regards,
Punno
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Welcome to Mr Excellll

Revisit this part of your code line...

Worksheets("Shet1")
 
Upvote 0
Hi,
Thaks for the reply. That was mistake while posting. The roblem is still there. Let me post again:

For i = 15 To 1000
If Worksheets("Sheet1").Cells(0 + i, 6) > 3 Then

Worksheets("Sheet1").Cells(0 + i, 7).Value = Application.WorksheetFunction.Index(Sheets("Known issues").Range("$A$3:$H$1000"), Application.WorksheetFunction.Match(Sheets("Known issues").Cells(i - 12, 8).Value, Sheets("Known issues").Range("$F$3:$F$10"), 0), 3)
 
Upvote 0
I took your line out of the loop and it works for me, so there may be something wrong elsewhere in your code.
Code:
Sub test1()
Worksheets("Sheet1").Cells(15, 7).Value = Application.WorksheetFunction.Index(Sheets("Known issues").Range("$A$3:$H$1000"), Application.WorksheetFunction.Match(Sheets("Known issues").Cells(15 - 12, 8).Value, Sheets("Known issues").Range("$F$3:$F$10"), 0), 3)
End Sub
 
Upvote 0
That error means that the value in
Code:
Cells(i - 12, 8)
cannot be found in the lookup range
 
Upvote 0
That error means that the value in
Code:
Cells(i - 12, 8)
cannot be found in the lookup range

Actually it is in the range. And it gives me the right result but then it gives me this error message. Not sure where i went erong
 
Upvote 0
If it gave you the right result, then you would not have got an error.
Check the value in that cell after you get the error.
 
Upvote 0
If it gave you the right result, then you would not have got an error.
Check the value in that cell after you get the error.

It was supposed to pickup some comments for specific condition. But after it put the comment for the condition in a cell , it cannot put the comment for other cell where the condition met.
 
Upvote 0
What is the value of i when the code fails?
 
Upvote 0

Forum statistics

Threads
1,223,757
Messages
6,174,327
Members
452,555
Latest member
colc007

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