tangman

New Member
Joined
Mar 13, 2019
Messages
4
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.

Thanks in advance!
 

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
Joined
Aug 18, 2011
Messages
6,520
Office Version
  1. 365
Platform
  1. Windows
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
Joined
Mar 13, 2019
Messages
4
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
Joined
Mar 13, 2019
Messages
4
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

AB
1Apr-19Formula here
2May-19Formula here
3Jun-19Formula here

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

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,520
Office Version
  1. 365
Platform
  1. Windows
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)
 

Watch MrExcel Video

Forum statistics

Threads
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.
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
Top