Auto Increment

Ragarm13

New Member
Joined
Mar 25, 2018
Messages
19
I have this formula, =SUMIFS($D30:$D100,$C30:$C100,4,$F30:$F100,2), where I want only the number 4 to increment when i drag across a row.
I am unsure how to make this happen.

Heath
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Ragarm13, Good morning.

Try to use:
Code:
[COLOR=#333333]=SUMIFS($D30:$D100,$C30:$C100,[/COLOR][B][COLOR=#ff0000]ROW($A4)[/COLOR][/B][COLOR=#333333],$F30:$F100,2)[/COLOR]

Is that what you want?

I hope it helps.
 
Upvote 0
What I'm asking may not be possible, but the 4 is not a reference to a cell. :confused:
Ragarm13, Good morning.

Try to use:
Code:
[COLOR=#333333]=SUMIFS($D30:$D100,$C30:$C100,[/COLOR][B][COLOR=#ff0000]ROW($A4)[/COLOR][/B][COLOR=#333333],$F30:$F100,2)[/COLOR]

Is that what you want?

I hope it helps.
 
Upvote 0
I think you need

=SUMIFS($D30:$D100,$C30:$C100,COLUMN(D$1),$F30:$F100,2)

If you want to "increment when i drag across a row".
Please note that COLUMN(D$1) returns the number 4 not a cell reference.
 
Upvote 0
Ragarm13,

Have you tested whether the formula does what you want?

The Row($A4) function acts as an automatic numerator.

Please, test the suggested formula and then tell us if it worked the way you wanted it to.
 
Upvote 0
@ Marcílio_Lobão, the original post still says "increment when i drag across a row" not down the column ;)
 
Last edited:
Upvote 0
MARK858, Good morning.

You're absolutely right.
I reversed the direction of the function.


Your formula uses the function appropriate for the user's request.

Thank you for the warning.


Have a nice day!
 
Upvote 0
@MARK858 and @Marcílio_Lobão, thank you both for this information. MARK858, this work perfectly, thank you. I did not realize that the formula =COLUMN(??) returned an actual numeric value.
I think you need



If you want to "increment when i drag across a row".
Please note that COLUMN(D$1) returns the number 4 not a cell reference.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

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