View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sheeloo[_4_] Sheeloo[_4_] is offline
external usenet poster
 
Posts: 225
Default Even or Odd Year Function

What is the format of the cell being returned by VLOOKUP...

When you put the VLOOKUP in A1 and do =YEAR(A1), Year gets the value as
formatted by A1...
In =YEAR(VLOOKUP...) you it gets the value as returned by VLOOKUP...

If you have a date in A1 you can get wheter year is even or odd by using the
formula
=IF(MOD(YEAR(A1),2)=0,"Even","Odd")

"Dave H" wrote:


I am trying to use the Year Function =Year(A1). If A1 is actually a
vlookup when I place the fubction in cell B1 it works fine. However if
I place =Year(vlookup(C1,Table,3,false)) in cell A1 it no longer works
correctly. Any ideas or suggestions. I am trying to come up with a
formula that determines whether the year of a date is odd or even.




--
Dave H