Writing formula using Names from Name Manager

GregM

New Member
Joined
Jan 15, 2005
Messages
14
Hello friends! Unfortunately I am not permitted to upload the sample spreadsheet so I'll describe it.
I am practicing with a formula from a test table with Qtr1-Qtr4 on top and NE,SE,NW,SW on the left, Totals at the far right and bottom with sample numbers in the cells.
I have saved the Names in Name Manager so I can use =SUM(NW) and SUM(Qtr2) for example to list the Totals of those rows and columns.
My question is: How can I write a formula to address individual cells?
I want to subtract C2(Qtr2@NE) from D2(Qtr3@NE).
I would think
Code:
=SUM(Sheet1!NE[Qtr2] - Sheet1!NE[Qtr3])
would work, but not the case.
I don't want to have to use
Code:
=C2-D2
because I'm trying to learn to use the NAMES.
Any help will be appreciated. Thanks!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Which version of Excel are you on?
It is not possible to created named range with names Qtr1,Qtr2,Qtr3,Qtr4
 
Upvote 0
I used 3 different named ranges
Regions (A2:A5)
Quarter (B1:E1)
Data (B2:E5)
and this formula (using Index and Match) in E8
=INDEX(Data,MATCH(A8,Regions,0),MATCH(B8,Quarters,0))

Excel 2016 (Windows) 32 bit
A
B
C
D
E
F
1
Quarter1Quarter2Quarter3Quarter4
2
NEABCD
3
SEEFGH
4
NWIJKL
5
SWMNOP
6
7
RegionQuarter
8
SEQuarter3G =INDEX(Data,MATCH(A8,Regions,0),MATCH(B8,Quarters,0))
Sheet: Sheet9
 
Upvote 0
Another option

Excel 2013/2016
ABCDEF
1Column1qrt1qtr2qtr3
2ne1232
3nw456
4sw789
Sheet1
Cell Formulas
RangeFormula
F2=SUM(ne qtr2_)
Named Ranges
NameRefers ToCells
ne=Sheet1!$B$2:$D$2
qtr2_=Table2[qtr2]
 
Upvote 0
Maybe something like this (observe the names Qtr_1, Qtr_2, ...)


A
B
C
D
E
F
1
Region​
Qtr_1​
Qtr_2​
Qtr_3​
Qtr_4​
Qtr_Total​
2
NE​
10​
12​
14​
16​
52​
3
SE​
12​
14​
16​
18​
60​
4
NW​
14​
16​
18​
20​
68​
5
SW​
16​
18​
20​
22​
76​
6
Reg_Total​
52​
60​
68​
76​
256​

<tbody>
</tbody>


You may use the intersection of named ranges, that is:
Range1 RangeB - Range1 RangeC(note the space between the two ranges)

In your case
=NE Qtr_2 - NE Qtr_3

M.
 
Last edited:
Upvote 0
Cross posted https://www.excelforum.com/excel-fo...sing-names-from-name-manager.html#post5105589

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
Thanks for pointing it out - my bad.
I didn't do it out of impatience, I did it because at that site for whatever reason I was permitted to upload a sample spreadsheet and I thought that would make it easier since I'm sure no one likes to create a table for me when I should provide it. I wasn't allowed to upload the table at this site and I appreciate the folks, like yourself who took the time to make a table to demonstrate the solution.
 
Upvote 0
Thanks for your time to reply.
You were correct and I didn't even catch it. Qtr1 was not allowed, but NameManager edited it without my knowledge by adding the underscore to make it Qtr1_.
I am Excel 2016 (Windows) 64-bit.
 
Upvote 0
Thank you FLUFF for your reply and SOLUTION to the Question/Problem.
All it took was to use a SPACE delimiter instead of putting square brackets around the second argument.
Great demonstration and explanation!
 
Upvote 0
Thank you Marcelo Branco for your reply and SOLUTION to the Question/Problem.
You demonstrated, as FLUFF did immediately before you, that all it took was to use a SPACE delimiter instead of putting square brackets around the second argument.
Great demonstration and explanation!.
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top