Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default Subtotal < 0

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Subtotal < 0

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(10 9,$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.

--
(please remember to click yes if replies you receive are helpful to you)


"Tufail" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Subtotal < 0

=SUMPRODUCT(SUBTOTAL(109,OFFSET(J10,ROW($J$11:$J$3 000)-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)

"Tufail" wrote in message
...
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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default Subtotal < 0

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

"SeanC UK" wrote:

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(10 9,$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.

--
(please remember to click yes if replies you receive are helpful to you)


"Tufail" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default Subtotal < 0

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

"Bob Phillips" wrote:

=SUMPRODUCT(SUBTOTAL(109,OFFSET(J10,ROW($J$11:$J$3 000)-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)

"Tufail" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtotal To Include Item Description On Subtotal Line Tickfarmer Excel Discussion (Misc queries) 2 February 23rd 10 07:56 PM
sort macro, subtotal and add lines after subtotal David Excel Discussion (Misc queries) 1 August 29th 09 10:56 AM
pasting to subtotal lines without replacing hidden -non-subtotal l harleydiva67 Excel Discussion (Misc queries) 1 October 12th 06 06:02 PM
Bolding the subtotal lines automaticlly When using the Subtotal fu 06Speed6 New Users to Excel 2 October 5th 06 03:52 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


All times are GMT +1. The time now is 10:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"