SUMIFS with less than & more than

stepan1987

Board Regular
Joined
May 6, 2011
Messages
92
Hi guys,
I have a range of figures with a range of dates. I also have to cells where I input starting date and end date. I need my sumifs formula sum all the values between two dates.
Now I have the following:
=SUMIFS('Trade Search Results'!Y:Y;'Trade Search Results'!D:D;'Portfolio stats'!B16;'Trade Search Results'!AN:AN;"<=$L$3";'Trade Search Results'!AN:AN;">=$L$2")

where Y:Y are values
D:D is a range with company names and B16 is the needed company
AN:AN is a range of dates
L2 is start date
L3 is end date

Now it keeps looking for dates that are equal or less that "$L$3" and equal or more than "$L$2", not the date in the cell.

How can I change it?

Thanks!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi,

Try
"<="&$L$3 instead of "<=$L$3"
and
">="&$L$2 instead of ">=$L$2"

HTH

M.
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,548
Members
452,927
Latest member
rows and columns

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