Index and Match formula translated to VBA

Mikeymike_W

Board Regular
Joined
Feb 25, 2016
Messages
171
Hi All,

Thanks in advance for any help you can give.

I have a form in which i have the following formula linking a cell to another workbook to extract a value using the formula:

=IFERROR(IF((INDEX(FIPCDNumber1,MATCH(PID,PIDFIP2,0)))=0,"",(INDEX(FIPCDNumber1,MATCH(PID,PIDFIP2,0)))),"")

FIPCDNumber1='FIP.xlsm'!DATATable[CD Number]
PID=cell within the form
PIDFIP2='FIP.xlsm'!DATATable[PID]

Everytime the form opens it comes with the update links error. This form will be sent externally so i cant have this.
I have a user form which i use to assign certain details and i thought i could have a command button which could activate the link to the other workbook and extract the info which the formula was used for and have it populate a textbox on the user form.
This way the error may not appear and is still easy enough to use.

Any help on how to do this or any better ideas would be welcome too!!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,215,410
Messages
6,124,752
Members
449,186
Latest member
HBryant

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