ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   formula help (https://www.excelbanter.com/excel-discussion-misc-queries/126024-formula-help.html)

Newberry

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



Roger Govier

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




Teethless mama

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





All times are GMT +1. The time now is 10:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com