Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default Min Year in an Array

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Min Year in an Array

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.

--
Biff
Microsoft Excel MVP


"PAL" wrote in message
...
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.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default Min Year in an Array

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.

"T. Valko" wrote:

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.

--
Biff
Microsoft Excel MVP


"PAL" wrote in message
...
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.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Min Year in an Array

"PAL" wrote:
.. 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$28 30),YEAR(Export!$L$2:$L$283)))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

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
need formula 4 %change on both neg and pos movemnt year to year co suesolotel Excel Discussion (Misc queries) 4 January 13th 08 12:19 AM
Combination Graph with current year and prior year sales JanW Charts and Charting in Excel 2 April 5th 07 09:20 PM
how to calculate $1000/year at 5% for 25 years showing each year HELP! Setting up and Configuration of Excel 0 July 25th 06 12:58 AM
trying to get day/month/year froamt while user enters year only RADIOOZ New Users to Excel 3 June 7th 06 05:30 AM
How to compare current year to prior year in bar chart? substring Charts and Charting in Excel 4 May 12th 05 07:04 PM


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