COUNTIF ?

PM1

Board Regular
Joined
Oct 28, 2005
Messages
192
I have a Sheet with 3415 lines each with a value. Overall they total £7.5m.

I'm trying to create a formula that counts the no of items >0 .AND. <25000.

I looked at doing it in a PIvot Table but could not work out how to change the result, ie 3415 should only be 200 items > 0 but <25000

Can I use Countif as well as ()AND, if so how?

Thanks in advance
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Re: Apologies?

wesimmo said:
Does the little devil thing mean i did something wrong?

Duplicate post.

Always best to stay to one, or at least provide a link to any others.
 
Upvote 0
Can I have an expansion on the SUMPRODUCT if at all possible.The formula

=SUMPRODUCT(('2305 Assets'!$N$2:$N$3416>0)*('2305 Assets'!$N$2:$N$3416<=25000)) produced an answer of 528.

Now within that 528 there is another column which records a tag beginning LN followed by 6 digits. I now need to sum how many actually have the tag, and then in the next column to this answer report on what % this is of the 528. That part I think is easy (I hope)
 
Upvote 0
PM1 said:
Can I have an expansion on the SUMPRODUCT if at all possible.The formula

=SUMPRODUCT(('2305 Assets'!$N$2:$N$3416>0)*('2305 Assets'!$N$2:$N$3416<=25000)) produced an answer of 528.

Now within that 528 there is another column which records a tag beginning LN followed by 6 digits. I now need to sum how many actually have the tag, and then in the next column to this answer report on what % this is of the 528. That part I think is easy (I hope)

The column with the tag being which column? Let's assume it's P:

=SUMPRODUCT(('2305 Assets'!$N$2:$N$3416>0)*('2305 Assets'!$N$2:$N$3416<=25000))*(LEFT('2305 Assets'!$P$2:$P$3416,2)="LN"))
 
Upvote 0
Hi Andrew,

This produced a result of 0, I tied changing the ,> values but still 0. I also noticed an extra ")" at the end was this a typo?
 
Upvote 0
Yes, that's a typo, but in the middle not at the end:

=SUMPRODUCT(('2305 Assets'!$N$2:$N$3416>0)*('2305 Assets'!$N$2:$N$3416<=25000)*(LEFT('2305 Assets'!$P$2:$P$3416,2)="LN"))
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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