In Need of array formula help

Pat1009

Active Member
Joined
Jun 4, 2015
Messages
264
Hello Board,
I have this formula....
Code:
=SUM(COUNTIFS('Assets Open'!$N:$N,">="&U3-6,'Assets Open'!$N:$N,"<="&U3,'Assets Open'!$K:$K,{"john*smith",""}))

It counts in the sheet name Assets Open in column N and cell U3 >= -6 and cell U3 <= it counts all the john smith and any blank cells.
the blank cells need to have something in the cell to the left.
in other words, it will find all the john smith with the criteria above AND all the cells with nothing in it, as long as it has something in the cell to the left of the blank cell.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
It can be 4 different things.....
[TABLE="width: 395"]
<tbody>[TR]
[TD][TABLE="width: 395"]
<tbody>[TR]
[TD]DESKTOP SUPPORT - US - INVENTORY MGMT - HOUSTON[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[TABLE="width: 395"]
<tbody>[TR]
[TD]DESKTOP SUPPORT - US - INVENTORY MGMT - REFRESH - HOU

[TABLE="width: 395"]
<tbody>[TR]
[TD]DESKTOP SUPPORT - US - INVENTORY MGMT - REFRESH - SR[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]

[TABLE="width: 395"]
<tbody>[TR]
[TD]DESKTOP SUPPORT - US - INVENTORY MGMT - SAN RAMON[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]

[TABLE="width: 299"]
<tbody>[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[TABLE="width: 395"]
<tbody>[TR]
[TD]
[TABLE="width: 395"]
<tbody>[TR]
[TD][/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]

[TABLE="width: 395"]
<tbody>[TR]
[TD][/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 
Upvote 0
Do these occur in column J of Assets Open, that is, in the column which is on the left of column K that is tested for blank/john*smith?
 
Upvote 0
yes, But I just noticed that J could also be blank. Maybe we should use Column F
In column F, in that column is....
assigned, pending or resolved
 
Last edited:
Upvote 0
yes, But I just noticed that J could also be blank. Maybe we should use Column F
In column F, in that column is....
assigned, pending or resolved

Is this what we are after?

=SUM(COUNTIFS('Assets Open'!$F:$F,{"assigned";"pending";"resolved"},'Assets Open'!$N:$N,">="&U3-6,'Assets Open'!$N:$N,"<="&U3,'Assets Open'!$K:$K,{"john*smith",""}))
 
Upvote 0
Sorry, that did not work. I worked on this for several hours last night, nothing worked. So I decided to try a simpler approach.
I will now use 2 separate formulas. One in cell U50 and the other in cell V50.

This one in U50 works....
Code:
=COUNTIFS('Assets Open'!$N:$N,">="&U3 -6,'Assets Open'!$N:$N,"<="&U3 +3,'Assets Open'!$K:$K,"")
This one in V50 does not, it has the wrong total in the cell....
Code:
=COUNTIFS('Assets Open'!$N:$N,">="&V3 -6,'Assets Open'!$N:$N,"<="&V3 +3,'Assets Open'!$K:$K,"")
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,155
Members
453,021
Latest member
Justyna P

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