# SUMIFS drag down

#### tangman

##### New Member
Hi,
I have the following formula:

=SUMIFS('Future Sales'!\$N\$2:\$N\$5000,'Future Sales'!\$X\$2:\$X\$5000,"Flight Only",'Future Sales'!\$F\$2:\$F\$5000,"Apr-2019")

However i would like the date to change when i drag it down... when i drag down, i always get Apr-2019, however i would like May-2019, Jun-2019 etc...

Or is there another formula i use.

I have one tab with data on it (as per the above) and i am looking to find out how much of that data has Apr-2019 etc... on it.

### Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

#### FormR

##### MrExcel MVP
Hi, you can try like this:

=SUMIFS('Future Sales'!\$N\$2:\$N\$5000,'Future Sales'!\$X\$2:\$X\$5000,"Flight Only",'Future Sales'!\$F\$2:\$F\$5000,DATE(2019,4+(ROWS(A\$1:A1)-1),1))

For robustness, change the cell references in red to the cell in which you first enter the formula before dragging down.

#### tangman

##### New Member
Thats great, thank you! it worked.

Can i make it more interesting whereby the date in the formula is taken from another cell ? ie: it is looking at A1, A2, etc....

A B
1 Apr-19 Formula here
2 May-19 Formula here
3 Jun-19 Formula here

#### tangman

##### New Member
Thats great, thank you! it worked.

Can i make it more interesting whereby the date in the formula is taken from another cell ? ie: it is looking at A1, A2, etc....

A B
1 Apr-19 Formula here
2 May-19 Formula here
3 Jun-19 Formula here

 A B 1 Apr-19 Formula here 2 May-19 Formula here 3 Jun-19 Formula here

<colgroup><col><col><col></colgroup><tbody>
</tbody>

#### FormR

##### MrExcel MVP
Hi, that's easier. The formula for B1 referring to the date in A1 would be:

=SUMIFS('Future Sales'!\$N\$2:\$N\$5000,'Future Sales'!\$X\$2:\$X\$5000,"Flight Only",'Future Sales'!\$F\$2:\$F\$5000,A1)

#### tangman

##### New Member
that was easier than i thought as well!
thank you!

Replies
2
Views
95
Replies
3
Views
94
Replies
0
Views
171
Replies
1
Views
91
Replies
2
Views
184

1,133,761
Messages
5,660,802
Members
418,595
Latest member
PoloFacu

### 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.

### Which adblocker are you using?

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

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