4
1
I see people had this problem 10 year ago and it's still not fixed. Or maybe I just don't know how to use this feature.
In my sheet I have these named ranges:
A1 - "name1"
B1 - "name2"
C1 - "name3"
In some other 3 cells I have these formulas:
=A1
=A1+B1
=COUNT(A1:C1)
After running Apply Names... I expect to have this:
=name1
=name1+name2
=COUNT(name1:name3)
I never get that no matter what options I choose. Moreover, usually my formulas become completely ruined...
=name1
=name1
=name1
How could I get the result I need?
I am knowledgeable in VBA, so I tried to design a solution to this problem using VBA, but the code was not working either.
I'm using Excel 2013, 32-bit (MS Office Professional Plus). OS - Windows 7 Enterprise, 64-bit.
1I'm getting the same problem as you. You're not alone! – Andi Mohr – 2015-12-03T13:03:06.197
What versions of excel are you using? OP and @AndiMohr – Raystafarian – 2015-12-03T13:07:05.250
@Raystafarian I'm on Excel 2013 (Office Pro Plus 2013) on 64bit Windows 7 Pro. – Andi Mohr – 2015-12-03T13:09:12.787
I added to my answer I cannot reproduce with excel 2007 on windows 7, this is what I have at work. I'll try to vpn home.. – Raystafarian – 2015-12-03T13:10:43.887
2All right, I used 2013 w7 and added it to my answer. Same issue. 10 years ago was excel 2003 though.. @AndiMohr – Raystafarian – 2015-12-03T13:17:37.017
1
It seems a number have people have flagged this as a bug in Excel 2010 & 2013. One suggestion I've found is to install the freeware Name Manager tool from Jan Karel Pieterse.
– Andi Mohr – 2015-12-03T15:22:21.2231
@AndiMohr thank's for the link to the MS Answers site. It's also here with indication it was posted to the partners site, but I don't have access to that. We may just have to accept it
– Raystafarian – 2015-12-03T17:40:23.8901I added excel 2016 to my answer - very strange. @AndiMohr – Raystafarian – 2015-12-04T10:07:45.023
@ZygD This is the first time I'd even noticed
Apply Names
was a thing. Whenever I've had to swap cell references for named ranges like this in the past, I've usedFind and Replace
. Is there a reason this wouldn't work for you? – Andi Mohr – 2015-12-04T11:46:23.6671Added another answer with a VBA solution. It has some limitations, but it should work. @AndiMohr – Raystafarian – 2015-12-04T14:26:56.420
1
In my macro solution I link to my question over on code review, it seems the best option for a work-around would probably be regex. I'm not a regex guru by any means. I think Excellll has decent experience with regex (and excel), but most likely you'll find a better workaround over on stack overflow.
– Raystafarian – 2015-12-06T10:14:18.303