Date In excel

kumar lama

Board Regular
Joined
May 20, 2014
Messages
84
i have one simple question.
i have date in one cell, lets say "A1"
i am making every month attendance and i have calender A2=01,B2=02,C2=03,D2=04,E2=05,......AE2=31
what i did here A2=A1 to return first date of month and all A2+1,B2+1,C2+1.............. for until end date.
its working fine if end date is 31 , but when i put date February in A1 its start return after 28 (1,2,3,)
what my question is instead of return 1,2,3 make it blank.
for ex: June month its end 30 so in 31 date i got 1 for next month instead of return 1 i want it blank.
i am not wondering if statement for 12 month.

thank you.
 

Some videos you may like

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
6,069
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
In cell AD1 =IF(MONTH(A1)=2,"",AC1+1)
In cell AE1 =IF(MONTH(A1)=2,"",AD1+1)
In cell AF1 =IF(MONTH(A1)=2,"",IF(OR(MONTH(A1)=4,MONTH(A1)=6,MONTH(A1)=9,MONTH(A1)=11),"",AE1+1))

Then copy down.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,311
Messages
5,600,886
Members
414,414
Latest member
neil_c

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top