View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default How to compare a date with financial year

One way:

Since you didn't tell us when your financial year starts, I'll assume
it's 1 April to 31 March. Adjust (e.g., the 3) as necessary.

=IF(YEAR(DATE(YEAR(A2),MONTH(A2)-3,1)) = --LEFT(B2,4),"B2 Financial
Year", "Not B2 Financial Year")




In article ,
TUNGANA KURMA RAJU wrote:

I have a date in a cell and financial year in another cell.How to compare
whether that date exists in that financial year?.
example: cell a2=05-May-2007 and cell B2=2007-08.
What function will tell that a2 date exists in b2 financial year.