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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
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,215,176
Messages
6,123,464
Members
449,100
Latest member
sktz

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