Min Year in an Array

P

PAL

I am looking at an array and trying to return the earliest year. I have
tried this:

{=IF(Export!$A$2:$A$282=A3,YEAR(MIN(Export!$L$2:$L$282,"")))}

Column A is checking the array for a specific name. If it finds it, I would
like the output to be the YEAR of the earliest date in L.

As output, I get either "#VALUE!" or "FALSE".

Thanks.
 
T

T. Valko

Try this array formula** :

=MIN(IF(Export!$A$2:$A$282=A3,YEAR(Export!$L$2:$L$282)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

If A3 is not found in Export!$A$2:$A$282 the formula will return 0.
 
P

PAL

Thanks. This works fine however sometimes there are a few blank values that
come up in column L and causes the output to be 1900. Is there away to make
them blanks? Specifically, ignore the blanks.

Have a good weekend.
 
M

Max

PAL said:
.. sometimes there are a few blank values that come up in column L
and causes the output to be 1900. Is there away to make them blanks?
Specifically, ignore the blanks.

Try adding the check on "col L > 0" like this, array-entered:
=MIN(IF((Export!$A$2:$A$283=A3)*(Export!$L$2:$L$283>0),YEAR(Export!$L$2:$L$283)))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top