+ Reply to Thread
Results 1 to 7 of 7

Using Indirect with Dynamic Header Name

Hybrid View

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007, 2013
    Posts
    30

    Using Indirect with Dynamic Header Name

    I am using table to create drop down lists and generally use this formula:
    =INDIRECT("TABLE NAME[HEADER]")
    However, I wany to create a bunch of column headers and want to use cell A3's contents as the name of the column header to be referenced. I can't seem to get the drop down list to work when trying this :

    INDIRECT("Ancillary[$A$3]")
    Any ideas on how to make this work in a simple way or what I am doing wrong.

    Thanks

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,995

    Re: Using Indirect with Dynamic Header Name

    Please upload your workbook sample with expected result.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007, 2013
    Posts
    30

    Re: Using Indirect with Dynamic Header Name

    Have attached a spreadsheet as an example.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,995

    Re: Using Indirect with Dynamic Header Name

    Try

    Then press Control+Shift+F3 in the selected table you will get a window called create name from selection ->>> check mark only top row then ok

    now press in A1 cell Alt->A->V->V in setting tab at allow list select list. The in source put =INDIRECT($A$3) and then ok.

    This is the way to create a dependent drop down list.

    Check the attached file.

    Hope this will help you.

  5. #5
    Registered User
    Join Date
    10-25-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007, 2013
    Posts
    30

    Re: Using Indirect with Dynamic Header Name

    Thanks, but what is the purpose of selecting cell A1?

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,995

    Re: Using Indirect with Dynamic Header Name

    Quote Originally Posted by stan101 View Post
    Thanks, but what is the purpose of selecting cell A1?
    oh sorry mistakenly I typed that A1 instead of G2

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Using Indirect with Dynamic Header Name

    Quote Originally Posted by stan101 View Post
    ....I wany to create a bunch of column headers and want to use cell A3's contents as the name of the column header to be referenced. I can't seem to get the drop down list to work when trying this...
    Thanks
    Hello Stan,

    INDIRECT is a powerful formula, but this will slow down your worksheet performance. As you said if you have many headers you must be defined name for each header in order to work INDIRECT.

    Here is alternate method.

    Press Ctrl+F3 >> New.

    Name: Headers
    Refers to:

    =Ancillary[#Headers]
    Again press Ctrl+F3

    Name: Data
    Refers to:

    =Ancillary[#Data]
    In A3 Data Validation >> List

    Source:

    =Headers
    In G2, Data Validation >> List

    Source

    =INDEX(Data,,MATCH(A3,Headers,0))
    So this way you can have as many column headers without defining individual names.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ 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. how to set dynamic header?
    By Shermaine2010 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2014, 06:47 AM
  2. Sum + Indirect using Dynamic Range
    By shocks24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2014, 04:19 PM
  3. Sumifs formula, indirect tab, and coloumn header
    By gman17295 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-10-2012, 07:44 AM
  4. Indirect with dynamic workbook name
    By nsorden in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-04-2009, 02:32 PM
  5. Indirect and Dynamic Range
    By Graham Haughs in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-03-2006, 03:40 AM
  6. [SOLVED] Dynamic Ranges using INDIRECT
    By JAP in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-22-2005, 09:00 AM
  7. Indirect and dynamic ranges
    By Sam in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2005, 03:06 AM

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