ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I combine an if and min formula? (https://www.excelbanter.com/excel-worksheet-functions/108323-how-do-i-combine-if-min-formula.html)

Chris Snellen

How do I combine an if and min formula?
 
Problem description
# Description Activity Start End
1 Communicatieplan Write plan 1-01-06 1-06-06
1 Communicatieplan Present 1-02-06 1-05-06
2 Site As/IS Analyze Sit 1-03-06 1-01-07
2 Site As/IS Write plan 1-02-06 1-06-06
2 Site As/IS Present 1-03-06 1-05-06
3 Projectplan Analyze 1-02-06 1-01-07
3 Projectplan Write plan 1-03-06 1-06-06
3 Projectplan Review 1-02-06 1-05-06
3 Projectplan Present 1-03-06 1-01-07

I am looking for a function that can fill in the empty cells below. So, if
number 1 then the lowest overall start date and the overall last end date.
Can anyone provide
me with a function that does exactly this?

Overall Description Overall start Overall end
1 Communicationplan ? ?
2 Site As/IS ? ?
3 Projectplan ? ?


Carim

How do I combine an if and min formula?
 
Hi Chris,

If I understand correctly couldn't the VLOOKUP() function solve your
problem ?

Carim


Toppers

How do I combine an if and min formula?
 
Chris,

Try these: both entered as array formulae with Ctrl+Shift+Enter and copy down.

In the formula below, I had the "output" table data starting in row 14, so
A14=1, A15=2 etc.

For overall start ...

=MIN(IF($A$2:$A$10=$A14,$D$2:$D$10))

For overall end .....

=MAX(IF($A$2:$A$10=$A14,$E$2:$E$10))

Output table ....

Description Overall start Overall end <==row 13
1 Communicationplan 01/01/2006 01/06/2006
2 Site As/IS 01/02/2006 01/01/2007
3 Projectplan 01/02/2006 01/01/2007

You will probably have this on a separate sheet, so qualify the ranges.

For example output table in on Sheet2 , with data starting in row 2 so
formula in Sheet2 would be:

=MIN(IF(Sheet1!$A$2:$A$10=$A2,Sheet1!$D$2:$D$10))

HTH

"Chris Snellen" wrote:

Problem description
# Description Activity Start End
1 Communicatieplan Write plan 1-01-06 1-06-06
1 Communicatieplan Present 1-02-06 1-05-06
2 Site As/IS Analyze Sit 1-03-06 1-01-07
2 Site As/IS Write plan 1-02-06 1-06-06
2 Site As/IS Present 1-03-06 1-05-06
3 Projectplan Analyze 1-02-06 1-01-07
3 Projectplan Write plan 1-03-06 1-06-06
3 Projectplan Review 1-02-06 1-05-06
3 Projectplan Present 1-03-06 1-01-07

I am looking for a function that can fill in the empty cells below. So, if
number 1 then the lowest overall start date and the overall last end date.
Can anyone provide
me with a function that does exactly this?

Overall Description Overall start Overall end
1 Communicationplan ? ?
2 Site As/IS ? ?
3 Projectplan ? ?



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

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