Use formula to name table columns

sjrpdx

New Member
Joined
Jul 11, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
The workbook is an annual budget prep file that has multiple sheets summarizing to Sheet1. Sheets are identical, except that all sheets, EXCEPT for Sheet1 (the summary) are tables. The row on Sheet1 that "looks" like a header consists of 12 columns containing the date of the end of each month in the budget year. Jan 31 is entered in the first cell and the other 11 are updated via = EOMONTH(cell-to-left, 1)... Resulting in Jan-24 Feb 24 Mar 24, etc.

As I said, the other sheets (which represent departmental budgets that summarize to Sheet1) are identical to Sheet1 EXCEPT they are tables (so I can unpivot the data and have departmental budget for import into Power BI).

Question: Is it possible to enter a formula that will grab the value of each "header cell" from Sheet1 to update the table column header's names in the departmental budget sheets? If the dept sheets weren't tables it would obviously be easy, but when I enter a normal formula (e.g., =Sheet1!C3), a File Explorer window opens entitled "Update Values: Sheet1".

Thanks,
Steve
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi & Welcome to MrExcel.

Can you post the data along with some manually typed expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Here are three sheets to demo the question...
Book1.xlsx
BCDEFGHIJKLMN
3AccountJan-24Feb-24Mar-24Apr-24May-24Jun-24Jul-24Aug-24Sep-24Oct-24Nov-24Dec-24
4Gen Rev100,00015,000
5Rental Rev55,00064,000
6Misc Rev4,000600
Dept2
 
Upvote 0
Looks like it only kept the last copied range. Here's Sheet1
Book1.xlsx
BCDEFGHIJKLMNOPQRS
3AccountJan-24Feb-24Mar-24Apr-24May-24Jun-24Jul-24Aug-24Sep-24Oct-24Nov-24Dec-24
4Gen Rev200,00030,000
5Rental Rev110,000128,000
6Misc Rev8,0001,200
7Total318,000159,200
8
9
10This sheet summarizes the data in matching cells from Dept1 & Dept2 sheets.
11It is NOT a table, but the corresponding areas in the other 2 sheets ARE tables (for use in Power BI).
12I've used formulas on this sheet for the cell values in D3-N3 so I can enter the Jan 31 date (in C3) for the year to be budgeted and the "header-like"cell values update automatically.
13What I'd like to do is pull the date from C3 and have it automatically create the column names for the headers in the tables on the other two sheets.
14 That way the user doesn't have to recreate the table column names each year.
15
16Normal cell referencing formulas (like I used on this page) don't work for the table columns.
Summary
Cell Formulas
RangeFormula
D3:N3D3=EOMONTH(C3,1)
C4:D6C4=SUM(Dept1!C4,Dept2!C4)
C7:D7C7=SUM(C4:C6)
 
Upvote 0
And the sheet for Dept1
Book1.xlsx
BCDEFGHIJKLMN
4Gen Rev100,00015,000
5Rental Rev55,00064,000
6Misc Rev4,000600
Dept1
 
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,668
Members
452,992
Latest member
TokugawaIesuma

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