Query

sree_31

Board Regular
Joined
Apr 18, 2002
Messages
63
I want to write an array formula which will compare two dates.
Eg : I have a range of dates in cells A3:F3
i want to see whether the month and year entered by the user exists in cell A3:F3
This message was edited by sree_31 on 2002-04-24 07:52
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
On 2002-04-19 01:05, sree_31 wrote:
I want to write an array formula which will compare two dates.
Eg : I have a range of dates in cells A3:F3
i want to see whether the month and date entered by the user exists in cell A3:F3

Lets say that A1 houses the date entry by the user in true date format:

=COUNTIF(A3:F3,A1)>0

will return TRUE if the entry exists in the target range, otherwise FALSE.
 
Upvote 0

Forum statistics

Threads
1,214,384
Messages
6,119,201
Members
448,874
Latest member
Lancelots

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