+ Reply to Thread
Results 1 to 10 of 10

Name range based on row and collumn header

  1. #1
    Forum Contributor
    Join Date
    04-17-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    122

    Question Name range based on row and collumn header

    Good Afternoon

    I was just wondering If there is a simple way to name a range based on two criteria, I have attached the sheet as an example.

    I want the range B2:B6 to be named based on Column header B1 and row range A2, I then want Range C2:C6 to be named based on Column header C1 and row range A2, so on and so forth

    Name Range.xlsx

    is this possible?

    Thanks Dave
    Last edited by dave1983; 12-30-2015 at 12:08 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Name range based on row and collumn header

    I hate to disappoint you... but there's no sheet attached.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    04-17-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Name range based on row and collumn header

    Ha that would have been helpful, thanks for the heads up, I have updated my OP with the sheet inserted.

  4. #4
    Forum Contributor
    Join Date
    04-17-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Name range based on row and collumn header

    bump, any help would be appreciated.

  5. #5
    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,147

    Re: Name range based on row and collumn header

    I think you would need VBA to do this.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Name range based on row and collumn header

    Agreed. I did have a look at this yesterday, but nothing obvious immediately sprang to mind....

  7. #7
    Forum Contributor
    Join Date
    04-17-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Name range based on row and collumn header

    I thought that might be the case but its for someone else and I fear that VBA may just be to daunting for them.

  8. #8
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Name range based on row and collumn header

    If you intend to use just a single dynamic named range at a time you could define it as

    =OFFSET(INDEX($B$2:$C$11,MATCH(Month,$A$2:$A$11,0),MATCH(Test,$B$1:$C$1,0)),0,0,5,1))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  9. #9
    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,147

    Re: Name range based on row and collumn header

    See attached which creates the named ranges. Note that embedded blanks are not allowed to "Test 1" is now "Test1"
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    04-17-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Name range based on row and collumn header

    thanks for these suggestions, I will take them away and see what will be best.

+ 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] Find a collumn in a dynamic sheet and select the entire collumn
    By Armand0 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2014, 11:20 AM
  2. Macro to sum range based on a header
    By hotwax in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-01-2013, 05:21 PM
  3. [SOLVED] Look up in a range based on value entered and the get the value and the header
    By asifdawood in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-17-2013, 01:47 PM
  4. Range Select Based on Column Header
    By Nospmas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2013, 11:27 AM
  5. Replies: 2
    Last Post: 10-13-2012, 03:30 AM
  6. Replies: 3
    Last Post: 06-09-2009, 07:23 AM
  7. How do I set a dynamic range based on the column header?
    By gimiv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2007, 03:25 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