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"}))
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
adding cell name

I have named some random cells as name1, name2.... name5

to add these cells, the formula is not working

=SUMPRODUCT(INDIRECT("name"&{"1","2","3","4","5"}))
 
Upvote 0
Hi Sadath

I can't seem to get this to work either. Maybe someone else will have an idea how to. Do you need to have different names for all these cells - or could you just call all of them "Name1" say (ie select all the relevant cells and then go Insert>Name>Define and give them a name)?
 
Upvote 0
Hmm, following my own link in the link provided by Jon, it seems that Domenic (MrExcel formula wizard) has also had problems with a similar situation.

Fascinating...
 
Upvote 0
How about:
Code:
=SUMPRODUCT(N(INDIRECT("name"&{"1","2","3","4","5"})))
 
Upvote 0
Of course, it does help to actually have a cell named "Name1" when running the formula. Worked like a charm Kris :-D

EDIT: Glenn - your formula was a thing of beauty too ;-)
 
Upvote 0

Forum statistics

Threads
1,223,838
Messages
6,174,942
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