+ Reply to Thread
Results 1 to 6 of 6

Formula in Name Manager

  1. #1
    Forum Contributor
    Join Date
    04-30-2010
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    215

    Formula in Name Manager

    Hello

    Im having a problem with the use of indirect and name manager. The below formula from A9 in attached file is working perfectly (it shows a row in Sheet2 by the use of indirect from Sheet1):

    =INDIRECT(A2&"!"&LEFT(ADDRESS(2,MATCH(INDIRECT("Sheet1!"&ADDRESS(3,COLUMN())),INDIRECT(INDIRECT("Sheet1!"&ADDRESS(2,COLUMN()))&"!$A$1:$F$1"),0)),2)&A6)

    I added the red colored part of the formula into the name manager to use it dynamically and called it GetColumn.

    But I cant seem to get the formula to work with the use of the named GetColumn, as this is not working: =INDIREKTE(A2&"!"&GetColumn&A6)

    Can someone please tell me what im doing wrong here?
    Attached Files Attached Files
    Last edited by Imbizile; 11-15-2017 at 08:01 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Formula in Name Manager

    Try

    =LEFT(ADDRESS(2,MATCH(INDIRECT("Sheet1!"&ADDRESS(3,COLUMN())),INDIRECT("'"&INDIRECT("Sheet1!"&ADDRESS(2,COLUMN()))&"'!$A$1:$F$1"),0),2))

  3. #3
    Forum Contributor
    Join Date
    04-30-2010
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    215

    Re: Formula in Name Manager

    Sadly didnt make a difference.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Formula in Name Manager

    See attached
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-30-2010
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    215

    Re: Formula in Name Manager

    Thank you for the response, but I think you misread my problem. The formula works, I have it in A4 as well and it shows "$B" as it should. But I have the same formula in GetColumn in the name manager and I want to replace the formula with GetColumn. So in short, the formula will show "B" if put in a cell, but if the same formula is put in GetColumn in the name manager and GetColumn is used in a cell instead of the formula, it will give an error.
    Last edited by Imbizile; 11-16-2017 at 06:49 AM.

  6. #6
    Forum Contributor
    Join Date
    04-30-2010
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    215

    Re: Formula in Name Manager

    Just to clearify the problem here:
    Putting the formula "=LEFT(ADDRESS(2,MATCH(INDIRECT("Sheet1!"&ADDRESS(3,COLUMN())),INDIRECT(INDIRECT("Sheet1!"&ADDRESS(2,COLUMN()))&"!$A$1:$F$1"),0)),2)" directly into a cell will work give the result "$B" in the cell.
    Putting the exact same formula into the name manager with a given name, for instance the name GetColumn and then putting the formula "=GetColumn" into a cell will give an error.

    It works with simple formulas, for instance I can make a formula in the name manager called SimpleFormula and set it to "=1+1" and in a cell I can put "=SimpleFormula" into and it will give the result 2. But not with the specific formula above, properly due to the dynamic colums and use of indirect.

    I added a new file to try to illustrate the issue more clearly.

    Any help would really be appreciated.
    Attached Files Attached Files

+ 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] How to fix the offset formula in Name Manager
    By Jenny_Truong in forum Excel General
    Replies: 5
    Last Post: 08-10-2016, 03:23 AM
  2. sales manager & purchase manager sheets command button error
    By rana19 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-24-2016, 07:26 AM
  3. [SOLVED] using Averageifs formula with Defined Name Manager
    By Robo Robo in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-31-2016, 05:02 PM
  4. Enter Array Formula in Name Manager and have it work
    By Jessop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2015, 02:05 PM
  5. [SOLVED] Creating a formula in Name Manager
    By BobBlooms in forum Excel General
    Replies: 8
    Last Post: 12-15-2014, 04:42 PM
  6. [SOLVED] How to refresh Formula in Name Manager?
    By Bobbii in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-15-2014, 05:29 AM
  7. [SOLVED] How to replicate a Scenario Manager Formula?
    By Ted in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-05-2006, 05:30 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