+ Reply to Thread
Results 1 to 3 of 3

Formula in table header not working

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Formula in table header not working

    Hello,

    I have insterted a table in the attached document and I would like to insert in theG:26 a formula:

    =CONCATENATE("VAT";" ";K25;" %")

    The problem is that instead of having the desire result: "VAT 21 %".

    I get "0". Would you know how to insert the formula in the header of a table??

    (In G22 you have the expected result)

    Many thanks,
    Graig
    Attached Files Attached Files

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Formula in table header not working

    It is not possible to use formula in header of table - I think because this will break structured reference formulas when header changes.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Formula in table header not working

    You can only use static text for column headers of tables, as they are named fields.

    You could use a bit of code to rewrite the header when the VAT rate changes:
    Please Login or Register  to view this content.
    But be careful - this may cause errors in DAX formulas which reference this field name.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Find specific value in table and return header row and header column value
    By nelwan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-30-2013, 01:35 AM
  2. [SOLVED] Extract the column header given the row header and highest value in a subset of a table
    By pguarino in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-20-2013, 02:05 AM
  3. (TABLE) Help writing formula to display column header of a result
    By scarch05 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-15-2011, 04:40 AM
  4. Working with Header and Footer
    By gilbert in forum Excel General
    Replies: 2
    Last Post: 03-24-2011, 04:36 AM
  5. [SOLVED] Why isn't my pivot table formula working?
    By Justin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-26-2005, 04:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1