Excel summation formula with internal variable range.

Arubal

New Member
Joined
Jul 6, 2021
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
Is it possible in excel through standard functions or macros to sum a formula/equation that has a value inside that ranges from 1 to x.

Example: Cell A1 will have a formula ( (1+2)*X)/5 where x ranges from 1 to Cell B2

So if B2 = 3 then Cell A 1 should be [((1+2)*1)/5] + [(1+2)*2)/5] + [(1+2)*3)/5] = 3.6

Thanks.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi & welcome to MrExcel.
One option would be
Excel Formula:
=SUM(((1+2)*ROW(INDIRECT("1:"&B2))/5))
 
Upvote 0
If you have Excel 365 you could try this.
Excel Formula:
=SUM((1+2)*SEQUENCE(B2,1)/5)
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,613
Members
449,090
Latest member
vivek chauhan

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