Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Conditional Min Value

If I have data like the following:

Name Month Sales
Bob June 500
Bob July 700
Bob April 600
Jane June 300
Jane July 900

Is there a way to return the value of an individual's smallest sales number
from the list? The number of times any person's name appears varies and
isn't necessarily sorted by Name.

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Conditional Min Value

With
Your posted sample data in A1:C6

Try one of these:
D1: =SUMPRODUCT(MIN((A2:A6="bob")*C2:C6+(A2:A6<"bob") *10^99))
(Commit that formula by just pressing [enter]

or this ARRAY FORMULA
D1: =MIN(IF(A2:A6="Bob",C2:C6,10^99))

Note: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].

Instead of typing "Bob", you could also just reference a cell containing the
name to find.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"VictorMuraw" wrote:

If I have data like the following:

Name Month Sales
Bob June 500
Bob July 700
Bob April 600
Jane June 300
Jane July 900

Is there a way to return the value of an individual's smallest sales number
from the list? The number of times any person's name appears varies and
isn't necessarily sorted by Name.

Thanks,

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Conditional Min Value

Yes - it worked. I went with the Array option as the first one looked a
little out of my league. Thanks.

"Ron Coderre" wrote:

With
Your posted sample data in A1:C6

Try one of these:
D1: =SUMPRODUCT(MIN((A2:A6="bob")*C2:C6+(A2:A6<"bob") *10^99))
(Commit that formula by just pressing [enter]

or this ARRAY FORMULA
D1: =MIN(IF(A2:A6="Bob",C2:C6,10^99))

Note: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].

Instead of typing "Bob", you could also just reference a cell containing the
name to find.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"VictorMuraw" wrote:

If I have data like the following:

Name Month Sales
Bob June 500
Bob July 700
Bob April 600
Jane June 300
Jane July 900

Is there a way to return the value of an individual's smallest sales number
from the list? The number of times any person's name appears varies and
isn't necessarily sorted by Name.

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
Keeping conditional formatting when sorting Andrea A Excel Discussion (Misc queries) 0 April 4th 06 03:00 PM
Conditional Formatting when inserting a row zahoulik Excel Worksheet Functions 2 January 7th 06 03:01 PM
Conditional Format Not Working KMH Excel Discussion (Misc queries) 0 December 22nd 05 05:32 PM
Conditional formula - language needed gamebird Excel Worksheet Functions 7 October 10th 05 11:48 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


All times are GMT +1. The time now is 06:08 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"