#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Minimum IF

I have a colum of values, from which i need to find the minimum. However i
only want it to refer to those which have a specifc value in the adjacent
column. i.e.

A B
1 3 1
2 2 1
3 5 2
4 6 2
5 4 3
6 1 1

Minimum for "B=1" 1
Minimum for "B=2" 5
Minimum for "B=3" 4

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Minimum IF

Put the value of B that you are interested in in cell C1, and this array*
formula in D1:

=MIN(IF(B$1:B$6=C1,A$1:A$6,10E10))

You can change the ranges if you have more data.

* As this is an array formula, then once you have typed it in, or
subsequently amend it, you will need to commit it with CTR-SHIFT-ENTER (CSE)
rather than the usual ENTER. If you do this correctly then Excel will wrap
curly braces { } around the formula when viewed in the formula bar - you
should not type these yourself.

Change the value in C1 to see the minimum change, or put other values in C2
downwards and copy the formula down to suit.

Hope this helps.

Pete

"Jive" wrote in message
...
I have a colum of values, from which i need to find the minimum. However i
only want it to refer to those which have a specifc value in the adjacent
column. i.e.

A B
1 3 1
2 2 1
3 5 2
4 6 2
5 4 3
6 1 1

Minimum for "B=1" 1
Minimum for "B=2" 5
Minimum for "B=3" 4

Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Minimum IF

The sheet is a lot larger than my small sample and i now have something like
1000 arrows when i trace dependents from each "minimum" value. Will no doubt
increase calculation time but thank you.

"Pete_UK" wrote:

Put the value of B that you are interested in in cell C1, and this array*
formula in D1:

=MIN(IF(B$1:B$6=C1,A$1:A$6,10E10))

You can change the ranges if you have more data.

* As this is an array formula, then once you have typed it in, or
subsequently amend it, you will need to commit it with CTR-SHIFT-ENTER (CSE)
rather than the usual ENTER. If you do this correctly then Excel will wrap
curly braces { } around the formula when viewed in the formula bar - you
should not type these yourself.

Change the value in C1 to see the minimum change, or put other values in C2
downwards and copy the formula down to suit.

Hope this helps.

Pete

"Jive" wrote in message
...
I have a colum of values, from which i need to find the minimum. However i
only want it to refer to those which have a specifc value in the adjacent
column. i.e.

A B
1 3 1
2 2 1
3 5 2
4 6 2
5 4 3
6 1 1

Minimum for "B=1" 1
Minimum for "B=2" 5
Minimum for "B=3" 4

Thanks in advance




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Minimum IF

You're welcome - thanks for feeding back.

Pete

On Mar 3, 5:37*pm, Jive wrote:
The sheet is a lot larger than my small sample and i now have something like
1000 arrows when i trace dependents from each "minimum" value. Will no doubt
increase calculation time but thank you.



"Pete_UK" wrote:
Put the value of B that you are interested in in cell C1, and this array*
formula in D1:


=MIN(IF(B$1:B$6=C1,A$1:A$6,10E10))


You can change the ranges if you have more data.


* As this is an array formula, then once you have typed it in, or
subsequently amend it, you will need to commit it with CTR-SHIFT-ENTER (CSE)
rather than the usual ENTER. If you do this correctly then Excel will wrap
curly braces { } around the formula when viewed in the formula bar - you
should not type these yourself.


Change the value in C1 to see the minimum change, or put other values in C2
downwards and copy the formula down to suit.


Hope this helps.


Pete


"Jive" wrote in message
...
I have a colum of values, from which i need to find the minimum. However i
only want it to refer to those which have a specifc value in the adjacent
column. i.e.


* * A * * B
1 * *3 * * 1
2 * *2 * * 1
3 * *5 * * 2
4 * *6 * * 2
5 * *4 * * 3
6 * *1 * * 1


Minimum for "B=1" 1
Minimum for "B=2" 5
Minimum for "B=3" 4


Thanks in advance- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 419
Default Minimum IF

Jive,

I think a pivot table would work nicely for this.

Put B in the Row area of the pivot table.
Put A in the Data area, then set the properties to find the minimum.

Look up pivot tables in XL's Help to learn how to use them. If you still
need help, write back for detailed instructions.

HTH,

Conan




"Jive" wrote in message
...
I have a colum of values, from which i need to find the minimum. However i
only want it to refer to those which have a specifc value in the adjacent
column. i.e.

A B
1 3 1
2 2 1
3 5 2
4 6 2
5 4 3
6 1 1

Minimum for "B=1" 1
Minimum for "B=2" 5
Minimum for "B=3" 4

Thanks in advance





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
minimum and the corresponding value dinesh kumar Excel Worksheet Functions 4 September 12th 07 08:59 PM
Minimum Value Alex Excel Worksheet Functions 2 August 1st 07 03:44 PM
How to lookup the minimum, 2nd minimum and 3rd minimum......... Mark McDonough Excel Worksheet Functions 8 July 15th 06 09:39 PM
minimum ridash Excel Worksheet Functions 4 June 23rd 06 03:00 PM
Minimum Value ceemo Excel Worksheet Functions 2 August 9th 05 06:34 PM


All times are GMT +1. The time now is 07:17 AM.

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

About Us

"It's about Microsoft Excel"