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!

[TABLE="width: 203"]
<tbody>[TR]
[TD="width: 68, bgcolor: transparent"]Start Date[/TD]
[TD="width: 75, bgcolor: transparent"]End Date[/TD]
[TD="width: 64, bgcolor: transparent"]Percent[/TD]
[TD="width: 64, bgcolor: transparent"]January[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1/31/2019[/TD]
[TD="bgcolor: transparent, align: right"]11/25/2019[/TD]
[TD="bgcolor: transparent, align: right"]20%[/TD]
[TD="bgcolor: transparent"]If A1 & B1 are within January then
20%

[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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