Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
example: cell a2=05-May-2007 and cell B2=2007-08
Assuming the financial year runs from 1-Apr (this year) to 31 Mar (next year), then one way to test for it, in say C2: =AND(A2=DATE(LEFT(B2,SEARCH("-",B2)-1),4,1),A2<DATE(LEFT(B2,SEARCH("-",B2)-1)+1,4,1)) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "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. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you both of you.Both are great...
"JE McGimpsey" wrote: 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I get Excel to automatically calculate salaries actually received in financial year? | Excel Discussion (Misc queries) | |||
year function and financial years | Excel Worksheet Functions | |||
Year-to-date year to date formula | Excel Worksheet Functions | |||
How to compare current year to prior year in bar chart? | Charts and Charting in Excel | |||
Weeknum Year by Year Compare | Charts and Charting in Excel |