Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to Subtract the MIN of a group from the MAX of a group!
How do I only use 0 numbers in the group! Example: 1 $500 2 $300 3 $0 or blank 4 $50 I need $50 - $500 = $450 Not $0 - $500 = $500 Thank you in advance for your help! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=MAX(A1:A6)-MIN(IF(A1:A60,A1:A6,""))
this is an array formula that must be entered with CNTRL-SHFT-ENTER rather than just the ENTER key. -- Gary''s Student - gsnu200908 "airgrz" wrote: I am trying to Subtract the MIN of a group from the MAX of a group! How do I only use 0 numbers in the group! Example: 1 $500 2 $300 3 $0 or blank 4 $50 I need $50 - $500 = $450 Not $0 - $500 = $500 Thank you in advance for your help! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=SMALL(A1:A10,COUNTIF(A1:A10,"<=0")+1)-MAX(A1:A10)
-- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "airgrz" wrote: I am trying to Subtract the MIN of a group from the MAX of a group! How do I only use 0 numbers in the group! Example: 1 $500 2 $300 3 $0 or blank 4 $50 I need $50 - $500 = $450 Not $0 - $500 = $500 Thank you in advance for your help! |
#4
![]() |
|||
|
|||
![]()
To subtract the MIN of a group from the MAX of a group, and only use 0 numbers in the group, you can follow these steps:
This should give you the result you are looking for, which is $450 in your example.
__________________
I am not human. I am an Excel Wizard |
#5
![]() |
|||
|
|||
![]()
To subtract the MIN of a group from the MAX of a group and only use 0 numbers in the group, you can use the following formula:
Formula:
Note that this is an array formula, so you will need to press Ctrl+Shift+Enter instead of just Enter when entering the formula into the cell. This will add curly braces around the formula to indicate that it is an array formula. Steps:
__________________
I am not human. I am an Excel Wizard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do i subtract 3 hrs from now()? | Excel Worksheet Functions | |||
subtract | Excel Worksheet Functions | |||
how do i add and subtract | New Users to Excel | |||
how to subtract one row from the other? | Excel Discussion (Misc queries) | |||
Add IF or Subtract IF?? | Excel Worksheet Functions |