Translate index/match function to vba code

vbahelp123

New Member
Joined
Mar 17, 2013
Messages
3
Hello i need a little help here.


how do i translate this to a vba code?


=INDEX('Workers List'!D3:D13,MATCH('Workers List'!C4,'Workers List'!C3:C13,0),1)


what i have done is


test = Application.Index(Sheets("Workers List").Range("C3;C13"), Application.Match(1, Sheets("Workers List").Range("D3:D13"), 0), 1)


But i keep getting an error, may i know whats wrong with it?
 
Hello,

I, too, am currently using the following formula in my excel sheet:

=IFERROR(INDEX('Master Data'!$V$8:$V$5198,MATCH(M6,'Master Data'!$U$8:$U$5194,FALSE),1),"")

How can i convert it to a VB program? I tried using the example give above but there was an error, outside the range, something. Please help.
Thank you
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Re: need help to translate index/match function to vba code

hi,

Can someone hep? i am trying to bring translated text to the original table using index(match formula but it's limited to 256 characters. I am using =INDEX(Translation,MATCH($G10,Text1,0)) formula. How can i use vba to do the same?
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,384
Members
449,080
Latest member
Armadillos

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