Help with sumifs formula between dates

chichaspowa

New Member
I am trying to add a column diverse conditions but getting an error when i try set the formula between 2 dates.

I placed the dates on 2 diferent cells on my sheet.

This is the formula, can someone point out if i done something wrong?
=SUMIFS('Plano Geral'!O:O;'Plano Geral'!K:K;A5;'Plano Geral'!M:M;B3;'Plano Geral'!L:L;">='fornecedores na contabilidade'!B4";'Plano Geral'!L:L;"<='fornecedores na contabilidade'!C4")</pre>

Thanks</pre>

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
maybe a little modification.....?

=SUMIFS('Plano Geral'!O:O;'Plano Geral'!K:K;A5;'Plano Geral'!M:M;B3;'Plano Geral'!L:L;">="&'fornecedores na contabilidade'!B4;'Plano Geral'!L:L;"<="&'fornecedores na contabilidade'!C4)

Thanks Weazel,

I managed to figure it out by putting the >= sign on the actual cell. That seemed to help.

Sometimes i cant remember the simplest of things...

Thanks for your help

well, I'm glad you got it working

With these type of formulas (sumif/s, countif/s etc) you can reference a cell directly if that is teh exact value you want to use. However, if you need to look for values less that (or greater than) that cell's contents, you need to wrap the < in "", and combine that with the cell ref using &. Something like...

=SUMIFS('Plano Geral'!O:O;'Plano Geral'!K:K;A5;'Plano Geral'!M:M;B3;'Plano Geral'!L:L;">="&'fornecedores na contabilidade'!B4";'Plano Geral'!L:L;"<="&'fornecedores na contabilidade'!C4")

See the bolded part

Replies
3
Views
310
Replies
5
Views
372
Replies
3
Views
279
Replies
9
Views
443
Replies
1
Views
274

1,202,976
Messages
6,052,882
Members
444,608
Latest member
Krunal_Shah

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?

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

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