+ Reply to Thread
Results 1 to 5 of 5

Lock Named Range in Formula

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    Home
    MS-Off Ver
    Excel 2013
    Posts
    3

    Question Lock Named Range in Formula

    This is my first post, and I'm a total noob in Excel
    So, I want something that will lock a named range, which is for cell, it would be the $ sign, like: $A$1

    Let's say I have dummy pivot table named Table_Flower.accdb4 with some column (left to right):
    Name
    Genus
    Species
    Color
    Price
    Then I made this formula in another sheet
    Please Login or Register  to view this content.
    The problem is that, when I drag the formula to the left or right side, the named range also moves. It will be like
    Please Login or Register  to view this content.
    and so on

    So, is there a way to lock the named range?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Lock Named Range in Formula

    Hi and welcome to the forum

    A named range is 1 that you actually give a name to through the Name Range Manager, and it looks like thats not what you have done?

    $ is used to absolute a cell reference, locking it so that when copied, it doesnt change.. it comes in 3 different "flavors...

    $A$1 absolutes the entire cell reference, it will not chance when copied down or across
    $A1 absolutes only the column, "A" will not change when copied across, but "1" WILL change when copied down
    A$1 absolutes only the row, "1" will not change when copied down, but "A" will change when copied across


    what exactly are you trying to do, because there are other functions in 2013 that have to a large extent replaced the need to use sumproduct?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lock Named Range in Formula

    Which range do you want to make absolute? Name? Price? Or both?

    Let's assume you want to make both absolute:

    =COUNTIFS(Table_Flower.accdb4[[Name]:[Name]],M$3,Table_Flower.accdb4[[Price]:[Price]],$A7)/M$5
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    08-21-2013
    Location
    Home
    MS-Off Ver
    Excel 2013
    Posts
    3

    Cool yayyy

    Quote Originally Posted by Tony Valko View Post
    Which range do you want to make absolute? Name? Price? Or both?

    Let's assume you want to make both absolute:

    =COUNTIFS(Table_Flower.accdb4[[Name]:[Name]],M$3,Table_Flower.accdb4[[Price]:[Price]],$A7)/M$5
    GYAAAA It works! It works! Waaah thank you, thank you so very much!
    Every range, and it worked well for all!
    Oh Hero, again, thank you so very much! :'D

    Quote Originally Posted by FDibbins View Post
    Hi and welcome to the forum

    A named range is 1 that you actually give a name to through the Name Range Manager, and it looks like thats not what you have done?

    $ is used to absolute a cell reference, locking it so that when copied, it doesnt change.. it comes in 3 different "flavors...

    $A$1 absolutes the entire cell reference, it will not chance when copied down or across
    $A1 absolutes only the column, "A" will not change when copied across, but "1" WILL change when copied down
    A$1 absolutes only the row, "1" will not change when copied down, but "A" will change when copied across


    what exactly are you trying to do, because there are other functions in 2013 that have to a large extent replaced the need to use sumproduct?
    Hi!

    Hooo so that's Named Range. I thought that every range that has name is categorized as Named Range, so I thought a column of a table must be one of them >.< Thank you so much for your correction!

    Yes I know the using of $, thank you so much for the explanation

    hmmm... what I wanna do... I'm so confused to tell it in words, so that's why I used an example and formula.
    So, I wanna get the number of row where some column's value of the row matches a particular cell.
    If it's being said in SQL, more or less it will be:
    Please Login or Register  to view this content.
    googling and googling, I found that SUMPRODUCT can do that
    If you know another way to do that in Excel 2013, that would be very good, but judging from some condition, for now I think (maybe) that's enough




    Thank you so much for all the reply! The problem is solved!
    Waaah I'm so happy with the fast response :')

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: yayyy

    You're welcome. Thanks for the feedback!

+ 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. Adding row to a named range-updating the named range address
    By kjsconv in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-12-2013, 11:22 PM
  2. Lock Named range from table while dragging formula
    By praveen_khm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2013, 10:19 AM
  3. Replies: 1
    Last Post: 02-27-2013, 12:00 AM
  4. [SOLVED] Determine what Named Range the Target Address is and return Named Range Name
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2012, 10:49 PM
  5. [SOLVED] Formula for named range
    By TUNGANA KURMA RAJU in forum Excel General
    Replies: 2
    Last Post: 07-01-2006, 12:45 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