Using INDIRECT function in a TABLE

Heathy65

New Member
Joined
Oct 17, 2017
Messages
3
I have an example table in worksheet (just as an example to demonstrate my query).

The table is called Table1 and has 2 columns Col1 & Col2, Col1 containing different integer values.

In a cell outside of the table (E2) I have this text: Table1[@[Col1]]

Then in Col2 of the table I have this formula: =INDIRECT($E$2,0)

This then causes the values in Col1 to be shown in Col2 as expected.

However if I wanted to perform some mathematical operation on the Col1 (e.g. "/2") so that Col2 then shows "half-values" I am having an issue.

I assumed I would just need to edit the text in E2 to be Table1[@[Col1]]/2 but that gives an error, so I guess I'm doing something stupid. My desire is to have my formula in a single cell (E2) rather than expanding the basic INDIRECT function which is in all the cells in the table column (Col2).

Any help/guidance appreciated.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
You will need to change the Indirect function to
Excel Formula:
=INDIRECT($E$2,0)/2
 
Upvote 0
No, the value in E2 must evaluate to a range.
 
Upvote 0
You could use EVALUATE instead of INDIRECT, as long as it's OK to save the workbook in macro-enabled format?
 
Upvote 0

Forum statistics

Threads
1,215,011
Messages
6,122,677
Members
449,092
Latest member
tayo4dgacorbanget

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