Results 1 to 13 of 13

How to use named range in a formula?

Threaded View

  1. #1
    Forum Contributor
    Join Date
    05-28-2020
    Location
    Poland
    MS-Off Ver
    O365,
    Posts
    120

    How to use named range in a formula?

    Hello Everyone and happy new year,

    I came across "Name range/Define range" and as I understand it, it is a function(?) that can help simplify/shorten formulas.

    In the attached file, I have setup three sheets called Jan, Feb & Mar. In the 4.th sheet called Total, I defined Jan, Feb & Mar as "Months".

    As you can see on Sheet "Total" In Cell B3,

    Jan Sheet.jpg..................Total Sheet.jpg

    I managed to use Index together with Match formula, to receive the Total from Sheet "Jan" with the formula:

    =INDEX(Jan!B:C,MATCH("Total",Jan!B:B,0),2)

    Now I am wondering, if I can replace the reference to the location in the sheets by using the defined range, or is it even possible to use the named range to shorten a formula on such way?

    It would be a "nice to have", to avoid copying the formula and to change every time the month. Maybe it is possible?

    I tried in Cell C4 to modify the formula by replacing the cell-name with:

    "'"&Months&"'!

    and the formula then looks like this:

    =INDEX("'"&Months&"'!B:C",MATCH("Total","'"&Months&"'!B:B",0),2)

    Unfortunately, I end up with an error, so my question is, am I doing something wrong or is it even possible?

    Thank you for any help
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 02-09-2021, 03:12 AM
  2. [SOLVED] Named Range formula corruption when deleting information from range
    By JamesT1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2019, 01:59 AM
  3. Listbox displaying named range B but Adding named range A to cell
    By ikkenieikke in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-05-2018, 02:27 PM
  4. Replies: 0
    Last Post: 03-08-2016, 02:25 PM
  5. [SOLVED] Compare cells to named range and create new sheets using related named range
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2015, 03:35 PM
  6. Replies: 1
    Last Post: 02-27-2013, 12:00 AM
  7. [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

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