#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default formula help

I have a list of data and I am trying to figure out how to solve the
following,
1 column shows age in days, oldest to youngest, another column contains
codes DC0 through CD9.
How can I show in another cell the oldest age of any particular code i.e.
code DC2 is 365 days.
Thanks for any help or pointers
Newberry

--
Remove DOG from email address to contact


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default formula help

Hi
With Days in column A and Codes in column B, enter in C1 the required
code and in D1

{=MAX(($B$1:$B$100=$C1)*($A$1:$A$100))}

This is an array formula, so commit or Edit with Control + Shift + Enter
(CSE) not just Enter.
Do not type the curly braces { } yourself, if you use CSE Excel will
insert them for you.

Enter other codes required in C2, C3 etc. and copy the formula down
column D accordingly.
Change ranges of A and B to suit the amount of data you have.

--
Regards

Roger Govier


"Newberry" wrote in message
...
I have a list of data and I am trying to figure out how to solve the
following,
1 column shows age in days, oldest to youngest, another column
contains codes DC0 through CD9.
How can I show in another cell the oldest age of any particular code
i.e. code DC2 is 365 days.
Thanks for any help or pointers
Newberry

--
Remove DOG from email address to contact



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default formula help

=SUMPRODUCT(MAX((B2:B100="DC2")*(A2:A100)))


"Newberry" wrote:

I have a list of data and I am trying to figure out how to solve the
following,
1 column shows age in days, oldest to youngest, another column contains
codes DC0 through CD9.
How can I show in another cell the oldest age of any particular code i.e.
code DC2 is 365 days.
Thanks for any help or pointers
Newberry

--
Remove DOG from email address to contact



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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


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

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"