Named Formula Usage in VBA

terryb3582

New Member
Joined
Sep 2, 2011
Messages
4
I have a Named Formula in Excel 2007 called "CodeLookup" (ie CodeLookup refers to =ISNA(IF.........) that references a Product code value in a cell and then uses VLOOKUP on another worksheet in the same workbook to return a secondary product code. How can I do it all in one step? Can I do it in one step?

How do you reference a Named Formula in VBA that varies with each cell?

C4=702 (Which is the Primary Product code)
How can I look up "702" in the lookup table and then write that value to cell C4?

If I paste my formula "CodeLookup" in A4, it references C4 and returns the secondary product to cell A4. I then have to copy/Paste the value into C4.

Can it be done in one step or does it have to be a two step process?

I'm a total newbie on this Excel VBA stuff!!! ....but it's very interesting!!

Thanks in advance for any feedback,

Terry
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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