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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
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.
 
Upvote 0
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
 
Upvote 0
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>
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,499
Members
449,089
Latest member
Raviguru

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