Can't make this formula work: sum(Indirect.... Please help!

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
Hi, this could be pretty simple but cant get it to work...
B1 value = Sheet3!

Formulas i tried...

=SUM(Jan:B1&"!"&A2)
=SUM(Jan:INDIRECT($B$1&A3))
=SUM(Jan:INDIRECT($B$1)&A4)

It works when i try it this way...
=SUM(Jan:Sheet3!A4)
<TABLE style="WIDTH: 48pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=64><COLGROUP><COL style="WIDTH: 48pt" width=64><TBODY><TR style="HEIGHT: 13.5pt" height=18><TD style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 13.5pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0" height=18 width=64></TD></TR></TBODY></TABLE>
Thanks for helping in advance...
 

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.
#NAME? Error

When I evaluate the formula it show(#Name?:indirect(B1)&"A3"))
3rd step shows.
Sum(#Name?:#Ref!&"A3")
4rd step shows.
sum(#Name?:&"A3")
5rd step shows.
sum(#Name?)


I rechecked the worksheet names and it has Jan and Sheet3 too...


What could be wrong?
Is there a specific way Indirect ways...and not when cancatenated?:)


Thanks again.
 
Upvote 0
SUM(Jan:INDIRECT($B$1&"A3"))

Should work - as you had it it was adding the Value in A3 not the reference to "A3" to your string ;)


Indirect works on a string so your formula must result in a string
 
Upvote 0
When i try this way it works fine.'=SUM(Jan:Sheet3!A2)
Evaluate shows =Sum(#Name?:INDIRECT("Sheet3!'&"A3"))
i think the indirect way suggeted works cool but the this part

Jan:

i think is the issue here....


Thanks agian:)
 
Upvote 0
Must be something wrong with the named range "Jan" - check with the name manager to make sure it has not been accidentally removed. You should also check the scope and definition of Jan in the name manager - make sure it is set to Workbook and not Sheet3 or whatever - and that it refers to a cell not a range you may have to delete it and redefine it to make it work.

If Jan is in another workbook you have to fully reference it as an external link.

I just tried it and it works fine for me
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,865
Members
452,948
Latest member
UsmanAli786

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