Formula in column title of a list

chs4

New Member
Joined
Mar 15, 2009
Messages
23
Hi,
I have a list with a number of columns. Each column currently has a static title but I would like to be able to make the titles refer to cells in a separate worksheet so I won't have to change the name in two places. When I type into the title cell ='Sheet1'!F33, it returns a 0 and erases the formula. Is there a way to keep a formula in the title cells or some other way to make the column names variable?
Thanks,
Chs4
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Welcome to the Board!

You can use named ranges, but it might be tedious if you have a lot.

Or let's say you have your column headers in a list in Sheet 2 from A1 to Axxx.

You can use the following formula in A1:xx1 to pull the formula across the columns event though they're listed in rows in the reference sheet:

=INDIRECT("Sheet2!A"&COLUMN())

Hope that helps,
 
Upvote 0
Hi Smitty,
Thanks for replying. That does return the correct title but the formula does not remain in the cell so if I want to change the title again from sheet2, I'd have to put in the indirect formula again. Is there any way to avoid having to do this? I also tried the name thing and when I type in =nameofcell in the column title cell, it just returns a 0, regardless of what value is in the named cell.
Thanks,
Chs4
 
Upvote 0
That does return the correct title but the formula does not remain in the cell so if I want to change the title again from sheet2, I'd have to put in the indirect formula again. Is there any way to avoid having to do this?

Do you maybe have calculation set to Manual? That's about all I can think that would keep the formula from updating, INDIRECT or not, noting that in testing just now it works fine for me.
 
Upvote 0
The calculations aren't set to manual because all of the other calculations update normally. Plus, the formula goes away completely, not just keeps the old value. Thanks for your input Smitty. I'll keep looking.
-Chs4
 
Upvote 0
The calculations aren't set to manual because all of the other calculations update normally. Plus, the formula goes away completely, not just keeps the old value. Thanks for your input Smitty. I'll keep looking.
-Chs4

If the list under question is a list constructed with Data|List|Create List, the field names probably just by design cannot be calculations.
 
Upvote 0
That is how the list was created. Is there another way?

The other way is just not to use Data|List|Create List. You'll have to simulate any List functionality that you need, such (a) as automatic copying down of the formulas, (b)automatic adjusting of the ranges the formulas refer to, etc. The former requires VBA, the latter dynamic named ranges.
 
Upvote 0

Forum statistics

Threads
1,207,090
Messages
6,076,520
Members
446,211
Latest member
b306750

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