Copy cell if start and end dates are in current month

MSDVA

New Member
Joined
Apr 16, 2019
Messages
3
I want to enter a value from a cell if the start and end date fall within the current month. I've tried some if/and statements and other formulas, but I have been unable to get the solution for the below scenario:

Any help is greatly appreciated!

Start DateEnd DatePercentJanuary
1/31/201911/25/201920%If A1 & B1 are within January then
20%


<tbody>
</tbody>
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Thanks!

I was able to get it to work by modifying to this:

=IF(AND(MONTH($E44)&YEAR($E44)<=MONTH(K$10)&YEAR(K$10),MONTH($G44)&YEAR($G44)>=MONTH(K$10)&YEAR(K$10)), $J44,"No Estimate")

However I'm getting false positives when the start or end date is outside of the current year.

Any advice?
 
Upvote 0
How about
=IF(AND(EOMONTH(E44,-1)+1>=EOMONTH(K10,-1)+1,EOMONTH(G44,0)<=EOMONTH(K10,0)),"OK")
 
Upvote 0

Forum statistics

Threads
1,213,560
Messages
6,114,306
Members
448,564
Latest member
ED38

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