Sumifs with an "OR"?

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,340
Office Version
  1. 365
Platform
  1. Windows
I have Dates running down column D5:D100 In Column F I have Dates and Blanks running down F5:100 In Cell A1 I have a Date and down Column BN I have values which is my sum range.
Column D is when they started a Project. F is when they finished. If F is blank that means its still in process. I am trying to count how many projects were in process on a specific date (A1)

So in this example Projects 1,2,4 and 5 were in process. So my formula should result in a answer of 4

2/31/2019

Proj 1 2/1/2019 3/1/2019 1
Proj 2 1/1/2019 1
Proj 3 12/1/2018 2/1/2019 1
Proj 4 11/1/2018 4/1/2019 1
Proj 5 01/1/2019 3/1/2019 1
Proj 6 10/1/2018 2/1/2018 1
Proj 7 1


I started to write a SumIf but then I was baffled on how to handle the blanks.


I need a type of sumif formula that says if A1 is => than the date in D and A1 is <= then the date in F or if F is blank then sum BN
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
you could do two sumifs() and add together
I need a type of sumif formula that says if A1 is => than the date in D and A1 is <= then

=SUMIFS( BN1:BN1000, D1:D1000, "> ="&A1, F1:F1000, "< ="&A1 ) + SUMIFS( BN1:BN1000, F1:F1000, "", D1:D1000, "> ="&A1 )
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

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