formula to pull various dates within the month to one month in a certian order

Jadegirl

Board Regular
Joined
Apr 20, 2011
Messages
65
Trying to pinpoint the formula for pulling various dates in the month to one date in order of the FY so that I can create a pivot table. I place the (#) in front of the month so that the pivot table will sequence correctly.

For example, my fiscal year starts in July and I have the following:

July 7, 2010 Need to say: (1) July 2010
July 22, 2010 Need to say: (1) July 2010
July 25, 2010 Need to say: (1) July 2010
August 4, 2010 Need to say: (2) August 2010
August 8, 2010 Need to say: (2) August 2010

I have been trying a few formulas, but it isn't quite there yet. any ideas?

Thanks!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
I've moved your question to the Excel Questions forum.

Try this. If it doesn't work please advise what Excel version you are using.

Excel Workbook
AB
1
27/07/10(1) July 2010
322/07/10(1) July 2010
425/07/10(1) July 2010
54/08/10(2) August 2010
68/08/10(2) August 2010
75/09/10(3) September 2010
83/10/10(4) October 2010
931/10/10(4) October 2010
1028/11/10(5) November 2010
1126/12/10(6) December 2010
1223/01/11(7) January 2011
1320/02/11(8) February 2011
1420/03/11(9) March 2011
1517/04/11(10) April 2011
1615/05/11(11) May 2011
1712/06/11(12) June 2011
1810/07/11(1) July 2011
Dates
 
Upvote 0
Awesome - it worked. THANKS! I have been looking up a few videos on the EDATE function. I am not sure what the 6 means (EDATE(A4,6)) in the formula. Would this be the month prior? Thanks a again &much appreciation. I wish the formulas could come so quickly to me!!!!!!
 
Upvote 0
EDATE(A4,6) means the date 6 months after the date in A4.

So for a July date, 6 months later is a January date and grabbing that month gives a 1 which is what you want for July.

For a June date, 6 months later is a December date and grabbing that month gives a 12 which is what you want for June. etc

(To get the date 6 months prior you would use EDATE(A4,-6). This would actually work just as well for you in this particular case.)
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,802
Members
452,943
Latest member
Newbie4296

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