Formula help needed

zilla37

New Member
Joined
Dec 15, 2008
Messages
42
I am working with dates that need to have the fiscal calendar period generated beside the date column.
I am just not sure of the formula, I have been trying and cant seem to solve it.

( formula would be in cells C2 to C37 )

For example if the dates in cell B2 to B37 are between 04/01/2009 to 04/28/2009 place the result as 1. ( 1 would = the period number )

if the dates in cell B2 to B37 are between 05/01/2009 to 05/30/2009 place the result as 2.

And so on, would this be one long formula as you have to enter if's for all of the fiscal periods?
Is there a way to join the dates in cells instead of separate cells?

Any help would be appreciated.

http://imageshack.us/photo/my-images/269/24240990.png/

link to file

http://www.megaupload.com/?d=2T7BV8WL

24240990.png
24240990.png
u%3E


24240990.png
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
In C2 insert:
Code:
=IF(MONTH(B2) < 4,MONTH(B2)+9,MONTH(B2)-3)
and drag down to C37.
See how you go with this.
 
Upvote 0
If you are willing to rearrange the way you organize your Period Range you can solve your problem with the Vlookup function. Below is an example of how to reorganize the dates. I added bounds to the Period range so the return value would be clear not just N/A's
Excel Workbook
BCDE
1Picked DatePeriodPeriod RangePeriod number
2Mar 31, 2009Before PeriodsJan 1, 1900Before Periods
3Apr 1, 20091Apr 1, 20091
4Apr 28, 20091Apr 29, 2009Between Periods
5Apr 30, 2009Between PeriodsMay 1, 20092
6May 19, 20092May 31, 2009After Periods
Sheet1
Excel 2010
Cell Formulas
RangeFormula
C2=VLOOKUP(B2,$D$2:$E$6,2,TRUE)
Table Created With MrExcel HTML Maker

The lookup table will have to be sorted ascending, chronological in this case, for the above to work.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,833
Members
452,947
Latest member
Gerry_F

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