Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.newusers,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Conditional Max value

Hi,

i have 2 columns and i'm trying to calculate the conditonal maximum from
column one.

These are the columns :

47 7
44 7
71 7
58 7
214 4
22 4
54 7
1 7
45 7
21 7


and i try to find a formula that gives the maximum in column one, where
column 2 has value 7

in this case this would be 58

Marc


  #2   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.newusers,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
Default Conditional Max value

Marc,

Use the following array formula:

=MAX(IF(B1:B10=7,A1:A10,FALSE))

Change the range references to match your data.

This is an array formula, so you must press CTRL+SHIFT+ENTER rather than
just ENTER when you first enter the formula and whenever you edit it later.
If you do this properly, Excel will display the formula enclosed in curly
braces {}.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com





"Marc" wrote in message
e...
Hi,

i have 2 columns and i'm trying to calculate the conditonal maximum from
column one.

These are the columns :

47 7
44 7
71 7
58 7
214 4
22 4
54 7
1 7
45 7
21 7


and i try to find a formula that gives the maximum in column one, where
column 2 has value 7

in this case this would be 58

Marc




  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.newusers,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Conditional Max value

Woehoe, works like spagetti with an Italian.

Thanks !
Marc

"Chip Pearson" wrote in message
...
Marc,

Use the following array formula:

=MAX(IF(B1:B10=7,A1:A10,FALSE))

Change the range references to match your data.

This is an array formula, so you must press CTRL+SHIFT+ENTER rather than
just ENTER when you first enter the formula and whenever you edit it

later.
If you do this properly, Excel will display the formula enclosed in curly
braces {}.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com





"Marc" wrote in message
e...
Hi,

i have 2 columns and i'm trying to calculate the conditonal maximum from
column one.

These are the columns :

47 7
44 7
71 7
58 7
214 4
22 4
54 7
1 7
45 7
21 7


and i try to find a formula that gives the maximum in column one, where
column 2 has value 7

in this case this would be 58

Marc






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
New Conditional Format Overriding Previous Conditional Format Rene Excel Discussion (Misc queries) 3 February 27th 08 06:08 PM
Conditional Rank (or rather, Conditional Range) [email protected] Excel Worksheet Functions 6 April 16th 07 06:15 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 01:24 PM.

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"