+ Reply to Thread
Results 1 to 9 of 9

Creating a formula in Name Manager

  1. #1
    Registered User
    Join Date
    07-10-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    17

    Creating a formula in Name Manager

    The following formula is meant to create a range of the last payroll listing using the payroll date as a filter. After each payday, the list of those who were paid is added to an ongoing list. The data is sorted in order to ensure that all common dates are together. The formula works fine when placed in a cell.

    ="Listing!A"&(COUNTA(Listing!Z:Z)-COUNTIF(Listing!Z:Z,INDIRECT("listing!Z"&COUNTA(Listing!Z:Z))))&":Z"&COUNTA(Listing!Z:Z)

    However, when I copy it as is into the Name Manager, naming it 'myRng'; nothing when using the following formula

    =IFERROR(VLOOKUP(A2,INDIRECT(myRng),6,FALSE),"Not Listed"). Here I am comparing the payroll listing to a listing of authorized positions and their respective pay grades. A tool to be used to make sure raises remain within budget.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Creating a formula in Name Manager

    your formula returns a range address so you must use the INDIRECT function in the Name Manager in order to get the range referenced. As in:
    Please Login or Register  to view this content.
    Hopes this helps
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: Creating a formula in Name Manager

    Hi,
    I'd assume you've selected your range and named it in either the name box or name manager?

    Now I may be missing the point entirely here but:

    However, when I copy it as is into the Name Manager, naming it 'myRng'; nothing when using the following formula
    If you're trying to create a dynamic range/filter condition within name manager, I don't believe (and I hope someone will correct me if wrong) that you can do anything other than select and name a range.

    If I was doing something like this, I'd extract this list to an empty worksheet and either use vba to resize the range or create a table. The table size should automatically resize with the data.

    If you create a table and enter a formula in the first row, as far as I can remember, it will copy it down the column automatically.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Creating a formula in Name Manager

    I had no problem using your formulae if they are located on another worksheet. I filled an area of the Listing worksheet with garbage data and had dates running down column A. The formulae seem to work just fine.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    07-10-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Creating a formula in Name Manager

    ScreenShot.JPG
    Pierre, regrettably it did not work. After using your formula I followed your line of thinking in reverse and removed the INDIRECT function in the lookup formula. That did not work. The screen shot shows the setup that works. Really spinning my wheels on this one.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Creating a formula in Name Manager

    It looks like you have your formulae within the range that is defined. I found that this messed things up badly. That is why I moved the formulae and to a second worksheet and they worked properly. Your reference to A2 if the formula is on the Listing worksheet will not work correctly.

    See the workbook that I uploaded in message #4

  7. #7
    Registered User
    Join Date
    07-10-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Creating a formula in Name Manager

    newdoverman. Yes, it work! But now I need to understand why. I substituted me data into your sheet and it worked. Will check my vlookup formulae before putting up the solved prefix.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Creating a formula in Name Manager

    Quote Originally Posted by BuZZarD73 View Post
    If you're trying to create a dynamic range/filter condition within name manager, I don't believe (and I hope someone will correct me if wrong) that you can do anything other than select and name a range.
    You can create a named range without having selected any cells within the workbook or worksheet. The name is just a name that refers to a range of cells, a formula etc. These ranges can be dynamic as is the case here. The ranges in this problem are from column A to column Z. The width is from column A to column Z and the depth of the range is determined by the COUNTA on column Z.

  9. #9
    Registered User
    Join Date
    07-10-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Creating a formula in Name Manager

    For those who may read this post. The reason why this component of my workbook was not working is that I failed to assign absolute cell references where appropriate in the Name Manager.

+ 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 refresh Formula in Name Manager?
    By Bobbii in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-15-2014, 05:29 AM
  2. [SOLVED] problem copying images by name manager and match formula
    By dabaron in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-04-2014, 08:48 AM
  3. [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
  4. [SOLVED] Creating Scenarios and Scenario Manager
    By Louise in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2005, 10:05 AM
  5. Creating separate reports for each Project Manager
    By Lorie in forum Excel General
    Replies: 4
    Last Post: 06-15-2005, 10:05 AM

Tags for this Thread

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