Problems with showing the correct number of days in a month?! HELP!!!!

bftznk

New Member
Joined
Apr 17, 2013
Messages
16
Sometimes there are 28/29/30/31 days in a month in a year, right?! What's the simplest ways to meet the following task?

1. The Year or/and month can be change
2. Once the date is change the Week of days in different(Mon, Tue...) would also be changed correctly
3. Show correctly if there are 28/29/30/31,


57935302.jpg

:confused::confused:
Do I need to use VB,Marco or
someting else?! Plz Help!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Oh, I have also got that on another sheet on excel not sure if this help you guys to understand what I need to do :]
84253451.jpg
 
Upvote 0
For the first formulas it appears as "#NUM!#" and for the second one is blank, not sure if because I'm using excel 2007?!
 
Upvote 0
Hello,

With the year (2013) in A1 and the month (2) in B1, use the following formulas:

A3 =DATE(A1,B1,1)
B3, copied all the way to AE3:
=IF(ISERROR(IF(A3+1 > EOMONTH(A3,0),"",A3+1)),"",IF(A3+1 > EOMONTH(A3,0),"",A3+1))
 
Upvote 0
you need to have a year in c4 and a month number in f4.

thx, but thats not exactly what i want

1. When the month valuse changes(1-12 month) ( e.g. Feb 2013 the last day is 28th), then 29/30/31 on turn blank as well as the also the days of week (mon tue...) turn blank automatically

2. March 2013 last day 31st then 29/30/31 appear

do i need to use if function, is there such a formulas to do that ?!
Very difficult... My head is hurting -_-
 
Upvote 0
Hello,

With the year (2013) in A1 and the month (2) in B1, use the following formulas:

A3 =DATE(A1,B1,1)
B3, copied all the way to AE3:
=IF(ISERROR(IF(A3+1 > EOMONTH(A3,0),"",A3+1)),"",IF(A3+1 > EOMONTH(A3,0),"",A3+1))


It doesn't work:eek:
 
Upvote 0

Forum statistics

Threads
1,215,242
Messages
6,123,830
Members
449,127
Latest member
Cyko

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
Back
Top