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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -