SUMIF matching 2 cells

LordEvil

New Member
Joined
Oct 20, 2018
Messages
16
Good afternoon all,

I am having a problem as I modified my excel workbook and I am unable to find the sum I'm looking for. I keep getting #Value !

I have dates in cells P1 and P2, start date and end date. This is located on a sheet called Records. I have a datasheet that is full of data from 3 years on a sheet called DataBase in the same workbook.

On my worksheet called "Records" in cell N4 and O4 I have data as shown below.

N4
1st
O4
Press
P4
#Value !

<tbody>
</tbody>

I'm using this formula =SUMIFS(DataBase!H:H,DataBase!A:A,">="&$P$1,DataBase!A:A,"<="&$P$2,DataBase!S:S,O4)

Originally before I modified the page the text in O4 read "1st press". I now made a new column "N4" where I have "1st" in cell N4 and "Press" in cell O4.
How can I change this formula to have it look for N4 which will be in DataBase S:S, while also matching O4 which is located in DataBase R:R
I will be using the start date and end date as listed in the formula. I'm unsure if I need to use an "and" function or if I need to use some type of MatchIf and Sumif together. Any help would be greatly appreciated.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try this

=SUMIFS(DataBase!H:H,DataBase!A:A,">="&$P$1,DataBase!A:A,"<="&$P$2,DataBase!S:S,N4,DataBase!R:R,O4)
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,927
Members
448,533
Latest member
thietbibeboiwasaco

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