excel - Convert date from 1st untill day of last month to 1'st date in month -


i have lot of cell in excell table, how can convert date in month first date of month ?

i have lot of data this

+--------+---------------------+---------------------------------+-----------------+ | |items |      date in        | convert first of month       |  date_out       | +-+------+---------------------+---------------------------------+-----------------+ |a|item 1| march 16, 2016      | march 01, 2016                  |  april 01, 2016 |  |b|item 2| march 16, 2016      | march 01, 2016                  |  april 01, 2016 | |c|item 3| january 29, 2016    | january 01, 2016                |          -      | |d|item 4| january 29, 2016    | january 01, 2016                |          -      | +-+------+---------------------+---------------------------------+-----------------+ 

i need this, coz want calculate item have days on 2 months, so, if date_in 01 january, item have free time untill march 31.

let say, item still not out until 20 april, date out = - want print like

+--------+-----------------+ | |items | date on (day) |       +--------+-----------------+ | item 1 |       0         | | item 2 |       0         | | item 3 |       20        | | item 4 |       20        | +--------+-----------------+ 

a couple of alternates few characters shorter,

=eomonth(a1, -1)+1 'or, =a1-day(a1)+1 

eomonth_plus_one

use eomonth or edate function add months.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -