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 and Year Functions

I have multi row, multi column table. I am looking for the min value with
the formula below and want the output to be the earliest year..

{=MIN(IF((Worksheet!$A$2:$A$1967=A13)*(Worksheet!$ E$2:$E$19670),YEAR(Worksheet!$E$2:$E$1967),""))}

It works for a few rows, but for the most part I get "#value!"

Not sure why.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default MIN and Year Functions

The error is probably being generated he

YEAR(Worksheet!$E$2:$E$1967)

If your dates (or some of them) aren't true Excel dates the YEAR function
will generate a #VALUE! error where the logical test of the IF function
evaluates to TRUE.

Check your dates and make sure they are true Excel dates.

--
Biff
Microsoft Excel MVP


"PAL" wrote in message
...
I have multi row, multi column table. I am looking for the min value with
the formula below and want the output to be the earliest year..

{=MIN(IF((Worksheet!$A$2:$A$1967=A13)*(Worksheet!$ E$2:$E$19670),YEAR(Worksheet!$E$2:$E$1967),""))}

It works for a few rows, but for the most part I get "#value!"

Not sure why.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default MIN and Year Functions

Column E is reference this formula

=IF('Site Raw Data'!H2="","",'Site Raw Data'!H2). Perhaps, the empty ("") is
causing the problem.

"T. Valko" wrote:

The error is probably being generated he

YEAR(Worksheet!$E$2:$E$1967)

If your dates (or some of them) aren't true Excel dates the YEAR function
will generate a #VALUE! error where the logical test of the IF function
evaluates to TRUE.

Check your dates and make sure they are true Excel dates.

--
Biff
Microsoft Excel MVP


"PAL" wrote in message
...
I have multi row, multi column table. I am looking for the min value with
the formula below and want the output to be the earliest year..

{=MIN(IF((Worksheet!$A$2:$A$1967=A13)*(Worksheet!$ E$2:$E$19670),YEAR(Worksheet!$E$2:$E$1967),""))}

It works for a few rows, but for the most part I get "#value!"

Not sure why.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default MIN and Year Functions

Perhaps, the empty ("") is causing the problem.

Yes, it probably is.

Change this array:

(Worksheet!$E$2:$E$19670)

To:

(Worksheet!$E$2:$E$1967<"")

--
Biff
Microsoft Excel MVP


"PAL" wrote in message
...
Column E is reference this formula

=IF('Site Raw Data'!H2="","",'Site Raw Data'!H2). Perhaps, the empty ("")
is
causing the problem.

"T. Valko" wrote:

The error is probably being generated he

YEAR(Worksheet!$E$2:$E$1967)

If your dates (or some of them) aren't true Excel dates the YEAR function
will generate a #VALUE! error where the logical test of the IF function
evaluates to TRUE.

Check your dates and make sure they are true Excel dates.

--
Biff
Microsoft Excel MVP


"PAL" wrote in message
...
I have multi row, multi column table. I am looking for the min value
with
the formula below and want the output to be the earliest year..

{=MIN(IF((Worksheet!$A$2:$A$1967=A13)*(Worksheet!$ E$2:$E$19670),YEAR(Worksheet!$E$2:$E$1967),""))}

It works for a few rows, but for the most part I get "#value!"

Not sure why.






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
How do I crate a function for week of year + year in same cell. patty ann Excel Worksheet Functions 1 March 16th 08 06:34 PM
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 06:19 AM.

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"