Sum A Varying Name

elotromateo

New Member
Joined
May 19, 2010
Messages
42
Currently, I have data in column A that is referred to as the name, x (x=Sheet1!$A1). y = x^2. Column B is populated with y, so the spreadsheet looks like this.

Code:
	A	B
1	5	25
2	6	36
3	7	49
4	8	64

In another part of the sheet I sum column B and and get 174. What I would like to do is get rid of column B and go straight to the single cell with a sum. Is there a way to do this without using arrays?

(For simplicity's sake, these are neither the actual formulas or columns)
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
elotromateo,

You could use a sumproduct that has the column A range twice:
=SUMPRODUCT(A1:A4,A1:A4)

Hope that helps,
~tigeravatar
 
Upvote 0
Sorry, I should have been more obvious, these are not the actual formulas or columns. There are many columns (which is why I am looking to reduce) and the formulas are a rather long, layered if statements, but the same theory should hold since I am trying to sum a name that varies by location.
 
Upvote 0
I think the purpose of array formulas is to do exactly the sort of thing that you are asking for here. Why would you want to avoid using array formulas?
 
Upvote 0
There is a UDF that is part of the formula that does not seem to like arrays. It isn't mine and my adventures in creating and modifying functions tend to end in disaster.
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,486
Members
452,917
Latest member
MrsMSalt

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