EXCEL: Change dates that occur in a range across months into the last month of the range -


i work retail company, , receive daily excel report including skus on order , 'ship date', can span day of month. need generalize these ship dates "delivery months", or month receipt goods @ our fulfillment center. example, sku ship date falling between 1/15/17 , 2/15/17 have delivery month of 2/17, etc.

i've tried playing around month() function haven't gotten anywhere.

with data in column a, in b1 enter:

=if(day(a1)<15,date(year(a1),month(a1),1),date(year(a1),month(a1)+1,1)) 

and copy down:

enter image description here

format column b suit needs.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -