Vlookup to return formula in COL_INDEX_NUM not the data in that cell

jdefreese

New Member
Joined
Jan 21, 2021
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
Is there a way that when I enter the vlookup formula and reference COL_INDEX_NUM "2" that it returns the formula in that column and NOT the data?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi JDEFreese,

You can use FORMULATEXT, INDEX and MATCH to retrieve the formula.

JDEFreese.xlsx
ABCDE
1Mouse=SUM(E1:E2)Dog2
2Dog=1+1Cat3
3Cat#N/AMouse5
Sheet1
Cell Formulas
RangeFormula
E1E1=1+1
B1:B3B1=FORMULATEXT(INDEX($E$1:$E$3,MATCH(A1,$D$1:$D$3,0)))
E3E3=SUM(E1:E2)
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,913
Members
449,093
Latest member
dbomb1414

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