Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-07-2017, 09:16 AM
JacquesW JacquesW is offline Is it possible to put a formula in a table column header to define the name of the column? Windows 10 Is it possible to put a formula in a table column header to define the name of the column? Office 2013
Novice
Is it possible to put a formula in a table column header to define the name of the column?
 
Join Date: Jan 2012
Posts: 21
JacquesW is on a distinguished road
Default

Below is a sample of the spreadsheet with the cells that matter.
It is the same columns per selected month.
In this case for the months of May 2016 to April 2017 (previous 12 months).

The file is generated as csv and mailed to me. The data I copy into de pre-defined table in this sheet.
In this example, row 31 contains the variables that were queryed containing the months (highlighted in yellow).
I quote this in cell C1 with the formula: = V.LOOKUP("Calendar Year / Month"; A:B; 2; FALSE) I have inserted rows 2 and 3 to generate the correct column header names.
Row 2 contains solid text that refers to the type given in the column.
Row 3 contains a formula that queries the month from cell C1 and merges with the value from row 2.
For example, the formula in row 3 for cell C3 is: = PART($C$1; 1; 3) & C2 => result is MEI_% (its Dutch for MAI).
This is the name I want to give to this column header for use in pivot tables.
Because the values shift each month, cell C3 will result in JUN_% next month.
One way to get the column headings right in the cells is the following:
The formula results of the cells C3 through C?? Paste as values in cells D3 through D??
That works, but if I can, I'd rather work faster and prevent mistakes.
For example, if you forget to copy the names to row 4, there are wrong names in the pivot tables and that is not the intention of course.

Hope this helps to get a solution.

If things are not clear, please let me know.
cheers, Jacques
Attached Files
File Type: xlsx Vraag over formules in kolomkoppen van een tabel.xlsx (72.2 KB, 17 views)
Reply With Quote
 

Tags
formula, table, table headers



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with dragging a formula and changing a reference column as I drag the formula. LupeB Excel 1 10-22-2015 03:02 PM
Is it possible to put a formula in a table column header to define the name of the column? documents saved with double column revert to single column when re-opened danw Word 6 04-08-2015 06:24 AM
How can I temporarily break a 3 column format in order to type a single column paragraph William P Word 1 01-04-2015 06:40 PM
VBA column header vs first row text vthomeschoolmom Excel Programming 1 03-10-2012 02:05 AM
Lost Column header Policy Peddler Outlook 1 06-05-2009 07:57 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft