Find last date of a month, given only year and month

girapas

Board Regular
Joined
Apr 20, 2004
Messages
150
In Sheet1 I enter a year and a month. Sheet2 is a database. Column A of Sheet2 filled with working dates. Among other things, I want to find the last date of the year's month entered in Sheet1, and get the cell value addressed of the column G and the same row with that last date.
Thanks in advance
 
Great! Thank you. I hope I'm not be demanding, but there's yet a slight problem. I've named public and local holidays as Holidays2012, Holidays2013 etc. to calculate the working dates. Is there any way to include that dates in the formula you gave me?

The one I proposed would need:

=WORKDAY(DATE(B1,B2+1,1),-1,INDIRECT("Holidays"&B1))
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Thanks again, both Rick Rothstein and Aladin Akyurek. The fast and effective help you provide, to all "simple excel lovers" like me, is invaluable!
Happy new year.
 
Upvote 0

Forum statistics

Threads
1,216,180
Messages
6,129,340
Members
449,505
Latest member
Alan the procrastinator

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