Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello,
I am trying to return the Min in one column, based on criteria in 2 other columns. Example: Title Region Pay SM NJ $10 SM PA $11 SM NJ $9 I want to return the min value for the title "SM" in "NJ", which in this small example would be $9. I will eventually need to get the Average and Max as well. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Use a helper column:
In D2 enter: =IF(AND(A2="SM",B2="NJ"),C2,"") and copy down Then just use: =MIN(D2:D100) or =MAX(D2:D100) or =AVERAGE(D2:D100) -- Gary''s Student - gsnu200774 "John" wrote: Hello, I am trying to return the Min in one column, based on criteria in 2 other columns. Example: Title Region Pay SM NJ $10 SM PA $11 SM NJ $9 I want to return the min value for the title "SM" in "NJ", which in this small example would be $9. I will eventually need to get the Average and Max as well. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try these array formulas** :
Min: =MIN(IF((A2:A4="SM")*(B2:B4="NJ")*(C2:C4<""),C2:C 4)) Max: =MAX(IF((A2:A4="SM")*(B2:B4="NJ"),C2:C4)) Average: =AVERAGE(IF((A2:A4="SM")*(B2:B4="NJ")*(C2:C4<""), C2:C4)) ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER) -- Biff Microsoft Excel MVP "John" wrote in message ... Hello, I am trying to return the Min in one column, based on criteria in 2 other columns. Example: Title Region Pay SM NJ $10 SM PA $11 SM NJ $9 I want to return the min value for the title "SM" in "NJ", which in this small example would be $9. I will eventually need to get the Average and Max as well. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Worked perfectly! Thanks!
"T. Valko" wrote: Try these array formulas** : Min: =MIN(IF((A2:A4="SM")*(B2:B4="NJ")*(C2:C4<""),C2:C 4)) Max: =MAX(IF((A2:A4="SM")*(B2:B4="NJ"),C2:C4)) Average: =AVERAGE(IF((A2:A4="SM")*(B2:B4="NJ")*(C2:C4<""), C2:C4)) ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER) -- Biff Microsoft Excel MVP "John" wrote in message ... Hello, I am trying to return the Min in one column, based on criteria in 2 other columns. Example: Title Region Pay SM NJ $10 SM PA $11 SM NJ $9 I want to return the min value for the title "SM" in "NJ", which in this small example would be $9. I will eventually need to get the Average and Max as well. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're welcome. Thanks for the feedback!
-- Biff Microsoft Excel MVP "John" wrote in message ... Worked perfectly! Thanks! "T. Valko" wrote: Try these array formulas** : Min: =MIN(IF((A2:A4="SM")*(B2:B4="NJ")*(C2:C4<""),C2:C 4)) Max: =MAX(IF((A2:A4="SM")*(B2:B4="NJ"),C2:C4)) Average: =AVERAGE(IF((A2:A4="SM")*(B2:B4="NJ")*(C2:C4<""), C2:C4)) ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER) -- Biff Microsoft Excel MVP "John" wrote in message ... Hello, I am trying to return the Min in one column, based on criteria in 2 other columns. Example: Title Region Pay SM NJ $10 SM PA $11 SM NJ $9 I want to return the min value for the title "SM" in "NJ", which in this small example would be $9. I will eventually need to get the Average and Max as well. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to return a result from 2 conditions? | Excel Worksheet Functions | |||
shade cells based on conditions - i have more than 3 conditions | Excel Worksheet Functions | |||
Counting based upon 2 conditions that are text based | Excel Discussion (Misc queries) | |||
How do I return a value based on multiple possible conditions? | Excel Worksheet Functions | |||
Formula to return cell contents based on multiple conditions | Excel Worksheet Functions |