CountIFs between a certain range and whether a number is +ive or -ive

scolty1985

Board Regular
Joined
Sep 16, 2009
Messages
88
I've set up a CountIFs to check how many values were between an initial time and a final time.

=COUNTIFS($R$8:$R$10067,"<="&W8,$R$8:$R$10067, ">"&V8)

I now have a column which has either +1 or -1. I want to split the value returned from the above CountIFs so that i know how many have +1 or -1. Is this possible?

ie so if the Initial time was 00:00:00 and Final Time was 00:00:05

+ ive count = 7

- ive count = 7

jCfSCdp.png
 

Excel Facts

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

=COUNTIFS($R$8:$R$10067,"<="&W8,$R$8:$R$10067, ">"&V8,$O$8:$O$10067,1)
and
=COUNTIFS($R$8:$R$10067,"<="&W8,$R$8:$R$10067, ">"&V8,$O$8:$O$10067,-1)
 
Upvote 0
Works like a charm, thanks very much. I got some odd results initially but im assuming its because there is millisecond data in the original data, but im not sure how to display that.
 
Upvote 0

Forum statistics

Threads
1,217,357
Messages
6,136,082
Members
449,990
Latest member
orthodmd

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