sumifs

esadmin

New Member
Joined
Nov 30, 2010
Messages
3
I am trying to write a formula where there are 2 criteria, and they are dates, drawn from cells. This is what I wrote, using the formula wizard;

=SUMIFS(E46:W46,E5:W5,"<=ZG$49",E5:W5,">=ZG$52")

What I am trying to do is get the formula to examine E5:W5 and see if it is before the date in cell ZG49 or after the date in cell ZG52. I thought I could do this, using the greater than or less than function. Someone else said the quotes should be only around the mathematical portion like this "<=" or this ">=", but when I tried doing this, the formula wizard said it was invalid as a criteria.

Ideally, I want the formula to be able to change, based on me changing the dates in the 2 cells. I feel like this is simple, but every way I tried it, it wasn't working. Shouldn't the dates operate as numbers?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Welcome to the board.

Try

=SUMIFS(E46:W46,E5:W5,"<="&ZG$49,E5:W5,">="&ZG$52)
 
Upvote 0

Forum statistics

Threads
1,225,156
Messages
6,183,230
Members
453,152
Latest member
ChrisMd

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