Subtotal < 0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello,
how can i get less than 0 value in subtotal, now i am trying with follow:
=SUBTOTAL(109,$J$11:$J$3000,"<0")
but it's not working.
thanks
 
Hi Tufail,

It depends on what you want the cell to display. If you want it to display
"<0" when less than zero and otherwise the total then try:

=IF(SUBTOTAL(109,$J$11:$J$3000)<0,"<0",SUBTOTAL(109,$J$11:$J$3000))

But if you only want to display less than zero or greater/equal to zero then:

IF(SUBTOTAL(109,$J$11:$J$3000)<0,"<0",">=0")

I hope this helps,

Sean.
 
=SUMPRODUCT(SUBTOTAL(109,OFFSET(J10,ROW($J$11:$J$3000)-ROW($J$10),,1)),--($J$11:$C$3000<0))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
thank you very much, that's what i was looking !

SeanC UK said:
Hi Tufail,

It depends on what you want the cell to display. If you want it to display
"<0" when less than zero and otherwise the total then try:

=IF(SUBTOTAL(109,$J$11:$J$3000)<0,"<0",SUBTOTAL(109,$J$11:$J$3000))

But if you only want to display less than zero or greater/equal to zero then:

IF(SUBTOTAL(109,$J$11:$J$3000)<0,"<0",">=0")

I hope this helps,

Sean.
 
thank you very much, that's what i was looking !

Bob Phillips said:
=SUMPRODUCT(SUBTOTAL(109,OFFSET(J10,ROW($J$11:$J$3000)-ROW($J$10),,1)),--($J$11:$C$3000<0))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Calculating subtotals 22
Subtotal GroupBy text string 2
Autofilter and subtotal 1
Subtotal function 2
Help undertanding Subtotals 2
subtotals give zero 2
Excel Subtotals 2
Absolute value 2

Back
Top