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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi,

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

HTH

M.
 
Upvote 0

Forum statistics

Threads
1,214,534
Messages
6,120,084
Members
448,943
Latest member
sharmarick

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