Need a formula to identify a certain time period

copleyr

Active Member
Joined
Aug 24, 2009
Messages
381
Hello all,

In column "A", I have a list of dates. I need a Vlookup formula that will look at the date and If the time period falls in between 2/1/11 and 4/30/11, I need it to say "1Q", If the time period falls in between 5/1/11 and 7/31/11, I need it to say "2Q", and resectively for the rest of the year.

Can anybody help?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Excel Workbook
ABCDEFG
1My DatesQ-TestStartEndQtr
22/1/20111Q1-Feb30-Apr1Q
32/16/20111Q1-May31-Jul2Q
43/3/20111Q1-Aug31-Oct3Q
53/18/20111Q1-Nov31-Jan4Q
64/2/20111Q
74/17/20111Q
85/2/20112Q
95/17/20112Q
106/1/20112Q
116/16/20112Q
127/1/20112Q
137/16/20112Q
147/31/20112Q
158/15/20113Q
168/30/20113Q
179/14/20113Q
189/29/20113Q
1910/14/20113Q
2010/29/20113Q
2111/13/20114Q
2211/28/20114Q
2312/13/20114Q
2412/28/20114Q
251/12/20124Q
261/27/20124Q
272/11/20124Q
Sheet1
Excel 2007
Cell Formulas
RangeFormula
B2=VLOOKUP(A2,$E$2:$G$5,3,1)
B3=VLOOKUP(A3,$E$2:$G$5,3,1)
F2=EOMONTH(E2,2)
F3=EOMONTH(E3,2)
A3=A2+15
E3=F2+1
 
Upvote 0
Hi Copleyr,

Maby this?
Code:
=IF(AND(MONTH(B1)>=2,MONTH(B1)<=4),"1Q",IF(AND(MONTH(B1)>=5,MONTH(B1)<=7),"2Q",IF(AND(MONTH(B1)>=8,MONTH(B1)<=10),"3Q",IF(OR(MONTH(B20)=11,MONTH(B20)=12,MONTH(B20)=1),"4Q"))))
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
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