Hi
I learnt about the intersector operator with named ranges from Excel Magic Trick number 7 from Excelisfun (http://youtu.be/L6Ow1wLfw2Q)
I am using Excel 2007.
In the example in the above link, none of the names in the top row and left column have any spaces within the text. So when Excel creates the name, the indirect function can be used to reference the range without problem.
I tried this on a different spreadsheet in which the table I created the various named ranges from had spaces within the text eg "ABC Limited" and "Profit on sale".
In the name manager, I can see that the names are created with underscores in place of the space eg "Profit_on_sale" and "ABC_Limited". Due to this, when I use the indirect function to make reference to the named range when I wan't to return the intersection of 2 ranges, I get a REF error.
My solution was to remove all spaces from my column and row labels before creating the named ranges.
Is there a function/method to get around this problem without editing the column and row labels?
Thanks in advance
GDH
I learnt about the intersector operator with named ranges from Excel Magic Trick number 7 from Excelisfun (http://youtu.be/L6Ow1wLfw2Q)
I am using Excel 2007.
In the example in the above link, none of the names in the top row and left column have any spaces within the text. So when Excel creates the name, the indirect function can be used to reference the range without problem.
I tried this on a different spreadsheet in which the table I created the various named ranges from had spaces within the text eg "ABC Limited" and "Profit on sale".
In the name manager, I can see that the names are created with underscores in place of the space eg "Profit_on_sale" and "ABC_Limited". Due to this, when I use the indirect function to make reference to the named range when I wan't to return the intersection of 2 ranges, I get a REF error.
My solution was to remove all spaces from my column and row labels before creating the named ranges.
Is there a function/method to get around this problem without editing the column and row labels?
Thanks in advance
GDH