adding cell names

sadath

Active Member
Joined
Oct 10, 2004
Messages
267
Office Version
  1. 365
Platform
  1. Windows
I have name some random names as name1, name2.... name5

to add these cells, the formula is not working

=SUMPRODUCT(INDIRECT("name"&{"1","2","3","4","5"}))
 
I still get a #REF with that formula Kris :-(
Book1
ABCDE
16308412773098835162
2text862971357966
39754244162525436
41903440
534434848
66069
7
826210
92621090526
1090526
11
12name1=Sheet1!$A$1:$A$3
13name2=Sheet1!$B$1:$B$5
14name3=Sheet1!$C$1
15name4=Sheet1!$D$1:$D$6
16name5=Sheet1!$E$1:$E$3
Sheet1


Formulas:

B8:

=SUMPRODUCT(N(INDIRECT("name"&{"1","2","3","4","5"})))

B9:

=SUM(N(INDIRECT("name"&{"1","2","3","4","5"})))

B10:

=SUMPRODUCT(SUMIF(INDIRECT("name"&ROW(INDIRECT("1:5"))),{">0","<0"}))

E9:

=SUM(A1:E6)

If the range size are different then Glenn's formula fails.

It only sums the first cell of each range.
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,838
Messages
6,174,940
Members
452,593
Latest member
Jason5710

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