Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Shortest Formula for returning Number of Days in the month of "given date"

Column "A" = Given Date (for example>2-Feb-2014) Column "B" = No. of days required in the month of given date (for example=28) Date = No. of days in that month |1-Apr-13 =30 | |4-Jul-14 =31 | |9-Jan-01 =31 | |4-Aug-12 =31 | |2-Feb-14 =28 | |9-Dec-14 =31 | |8-Aug-11 =31 | |4-Feb-12 =29 | |1-Apr-13 =30 |

user-image
Question added by Ahmed Aziz , Software Development & Testing , Innernet, Inc.
Date Posted: 2014/03/26
Hussain Marzooq
by Hussain Marzooq , human resources manager , Etc

=DAY(DATE(YEAR(A1),MONTH(A1)+1,1)-1)

Ashfaque Deshmukh
by Ashfaque Deshmukh , System Administrator , Qatari Diar

Try this   =DAY(EOMONTH(A1,0))

Kashif Sherazi
by Kashif Sherazi , Divisional Finance Manager , Almarai

Dear Friend

 

Use following formula if your date is in Cell E6

=(EOMONTH(E7,0))-(EOMONTH(E7,-1))

Please check and give your feed back

 

My e-mail is

 

Regards

 

Kashif Manzoor Sherazi

Omar Siddique
by Omar Siddique , Senior Sales & Operations Manager , Talya Tourism LLC

Eomonth(A1;0)-A1

Howida Elrasheed Awad Elkareem Mohammed
by Howida Elrasheed Awad Elkareem Mohammed , Project Associate( Administration) , United nations Development programme(UNDP)

use this formula

=DAY(DATE(YEAR(A2),MONTH(A2)+1,))

 Also i found this channel on youtube very usefeul for the ultimate usage of excel,

https://www.youtube.com/user/ExcelIsFun

good luck

FITAH MOHAMED
by FITAH MOHAMED , Financial Manager , FUEL AND ENERGY CO for transportion petroleum materials

 

simply formula is 

= Eomonth(A1;0)-A1

because eomonth determine the last day in the month  serial- the  date in cell a =

days required in the month of given date 

 

note :

better formate column B as number 

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.