Most Urgent----CONVERT FORMULA INTO CODE

fari1

Active Member
Joined
May 29, 2011
Messages
362
Hi, i want to convert my below formula to code, which loop through entire column A and bring me those rows which contain 10-(along with there can be anything).
Code:
=INDEX($A$2:$A$401,MATCH("10-*",$A$2:$A$401,0))

urgent help is required
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Would it help to filter the data to show cells in the column that begin with "10-"?

Do you need the data to appear elsewhere?

Is column A the only populated column?
 
Upvote 0
Hi, i want to convert my below formula to code, which loop through entire column A and bring me those rows which contain 10-(along with there can be anything).
Code:
=INDEX($A$2:$A$401,MATCH("10-*",$A$2:$A$401,0))

urgent help is required

If you want to pass the result of this variable then use:
Code:
MyValue = Evaluate("=INDEX($A$2:$A$401,MATCH(" & Chr(34) & "10-*" & Chr(34) & ",$A$2:$A$401,0))")
 
Upvote 0
That is VBA code, where myValue is a variable. I have put code tags around it.
 
Upvote 0

Forum statistics

Threads
1,224,502
Messages
6,179,126
Members
452,890
Latest member
Nikhil Ramesh

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