Set cell to first day of the financial year

jaguar23

New Member
Joined
Jun 18, 2005
Messages
17
I have a column that has many different dates in it (Column A). Based on the date in that column I want Column B to show the first date of the financial year that Column A falls into.

For instance, if cell A1 shows 13/07/2010 I want cell B2 to show 01/07/2010.

What formula would I use?

Thanks!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I'm assuming your definition of financial year is July 1st to June 31st...

Try

=LOOKUP(A1,DATE(ROW(1900:2100),7,1))
 
Upvote 0
B2="01"&MID(TEXT(A1,"dd/mm/e"),3,8)
++++++++
B2=TEXT(DATE(YEAR(A1),MONTH(A1),1),"dd/mm/e")
 
Last edited:
Upvote 0
I'm assuming your definition of financial year is July 1st to June 31st...

Try

=LOOKUP(A1,DATE(ROW(1900:2100),7,1))

Thanks. However I slightly changed it to include the dollar signs ($) for the ROW reference as the formula was copied down for various rows.

Another quick one - how would I then get it to display the last day of the finacial year?
 
Upvote 0
first day

=DATE(YEAR(A1)-1,MONTH(A1)+MOD((6-MONTH(A1)),12),31)

Last day

=DATE(YEAR(A1),MONTH(A1)+MOD((6-MONTH(A1)),12),30)

HTH
 
Upvote 0
Try

=EDATE(LOOKUP($A1,DATE(ROW(1900:2100),6,30)),12)

EDATE requires the Analysis toolpack from Tools - Addins.
This is already installed in XL2007 and higher

Also, for performance improvement, you might change the
1900:2100 to numbers reflecting the earliest and latest years that might appear in your dataset, like 1980:2020 or something like that.
The fewer rows in the reference the better.


Hope that helps.
 
Upvote 0
Thanks all. I ended up using the following for the last day of the financial year:

=DATE(YEAR(A1)+1,6,30)
 
Upvote 0
If your date is 4/12/2010 your result will return 6/30/2011. I would expect 6/30/2010.

Please advise

I meant to write it as cell B1 rather than A1.

So my final data looks like this:

A1: 13/07/2010

B1: =LOOKUP(A1,DATE(ROW(1900:2100),7,1)) - this produces 1/07/2010

C1: =DATE(YEAR(B1)+1,6,30) - this produces 30/06/2011
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top