Hi, I am having the oddest problem with a named range. I have made a dynamic named range, and saved it globally. The "code" is as follows:
This is probably not the best way to write this range, but in the end it was the way I could figure out how to bypass the trouble of finding the second occurence of a "Resultat ekskl. Værdireguleringer" in column, and making the named range based on this second occurence's cell address.=OFFSET(INDIRECT(CELL("address";OFFSET(INDIRECT("B"&MATCH("Resultat ekskl. Værdireguleringer";$B:$B;0));4;0;;)));0;0; MATCH("Resultat ekskl. Værdireguleringer";INDIRECT(CELL("address";OFFSET(INDIRECT("B"&MATCH("Resultat ekskl. Værdireguleringer";$B:$B;0));4;0;;))&":B1000");0);6)
Anyhow, when I use this named range in the worksheet where I made it, it works perfectly. Absolutely no problems, I can use VLOOKUP, INDEX etc. and get the correct values. But then when I want to use the same range in another sheet (same woorkbook) i just get the N/A error.
Hopefully someone here can tell me what I'm doing wrong, because its quite infuriating :D
Thanks in advance,
Pelle
Last edited by PelleCadol; 03-14-2011 at 08:20 AM.
Maybe you should specifically identify the sheetname in the named range formula before all the references to column B.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
I actually though it might be something like this as well, but when you insert the sheet name before the B's, it actually returns a #REF error. But thanks for the input, this is quite literally killing me :p
Did you try it like this?
Where 'Sheet 2' is the name of the sheet. Note that you need the apostrophes around the sheetname it it not all one word.=OFFSET(INDIRECT(CELL("address";OFFSET(INDIRECT("'Sheet 2'!B"&MATCH("Resultat ekskl. Værdireguleringer";'Sheet 2'!$B:$B;0));4;0;;)));0;0; MATCH("Resultat ekskl. Værdireguleringer";INDIRECT(CELL("address";OFFSET(INDIRECT("'Sheet 2'!B"&MATCH("Resultat ekskl. Værdireguleringer";'Sheet 2'!$B:$B;0));4;0;;))&":B1000");0);6)
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Ah! Haha, I was so caught up in my hatred, I forgot about that, thanks mate! Made my day at work a whole lot better![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks