How to change column range incrementally as row cell is dragged down?

flavgf

New Member
Joined
May 25, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I'm trying to figure out how to change the column range incrementally as the cell in column N is dragged down. I'm a little stuck.

The highlighted cells per row should equal the value in column N. The range length stays consistent but moves one to the right as the row moves down.

The value in cell N2 should equal the SUM(B2:C2) and cell N3 should equal SUM(C3:D4)

Any help would be greatly appreciate. Thank you in advance.

1653504999316.png
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi & welcome to MrExcel.
Is this for Excel, or some other spreadsheet app?
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

No need to mention you are using Excel, I only asked as your screen shot looks more like Google Sheets than Excel.

How about
Excel Formula:
=SUM(INDEX(B2:M2,ROWS(N$2:N2)+{0,1}))
This may need array entry depending on your version
 
Upvote 0
Solution
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

No need to mention you are using Excel, I only asked as your screen shot looks more like Google Sheets than Excel.

How about
Excel Formula:
=SUM(INDEX(B2:M2,ROWS(N$2:N2)+{0,1}))
This may need array entry depending on your version
Hello @Fluff, thank you for your reply.

The formula worked perfectly. Thank you - I really appreciate it. You are right - my screenshot is googlesheets. I tend to work between them but do most of the ground work on excel.

I tried it out in googlesheet but doesn't work even with an array.

Any thoughts on this?
 
Upvote 0
Regarding Sheets, no as I don't use it.
In future if you need to use a formula in both Excel & Sheets, you should make that clear, as they are often very different.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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