Dragging formula down while increasing only 1 criteria

Princeper

New Member
Joined
Feb 6, 2022
Messages
2
Office Version
  1. 2021
Platform
  1. Windows
Hi, I have this simple formula:

=SUMIF(Transacties!T:T, "=7", Transacties!S:S)

It seems impossible to drag it around. When I wanna drag to the right, the "=7" stay the same, but the increments in T and S are not good ( I need steps of 5)
When I drag it down, I cant make it to increase only the 7 to an 8, then a 9, then a 10 etc.

Is there any solution to make it and increase by 1 when dragged down? Its a lot of work by hand ;-)
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi.
Try:
VBA Code:
=SUMIF(Transacties!$T:$T, "="&ROW(A7), Transacties!$S:$S)

or just
VBA Code:
=SUMIF(Transacties!$T:$T,ROW(A7), Transacties!$S:$S)
 
Upvote 0
As you have xl 2021 you could also use
Excel Formula:
=SUMIF(Transacties!T:T,SEQUENCE(4,,7),Transacties!S:S)
& it will automatically spill down just change the 4 to however many criteria you have
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
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