Quantcast
Channel: Microsoft forum - dslreports.com
Viewing all articles
Browse latest Browse all 8524

[Excel] how to set up formula for if/then on a date range

$
0
0
I am trying to set up a formula to assign a date if that date falls within a specific quarter, but if the date does not fall in that quarter, pick the last date of the quarter...clear as mud, I know. Looking for this if possible: Example one: Column A = is blank Column B = 3/15/2014 Column C = Q1 2014 Example two: Column A = is blank Column B = 4/1/2014 Column C = Q1 2014 Writing the formula in Column A, if Column B falls between 1/1/14 and 3/31/14, then use the value in Column B in Column A (because it falls within Q1). If it does not fall between that date range, then default Column A to 3/31/14 (the last date of the quarter). So in example one, Column A would = 3/15/14 as is but in example two, Column A would = 3/31/14 (the last date in that quarter) The formula would have to be in one cell to check for date ranges of Q1, Q2 (4/1-6/30), Q3 (7/1-9/30), and Q4 (10/1-12/31) Thanks much! :)

Viewing all articles
Browse latest Browse all 8524

Trending Articles