Isolating dates in a range

richardthelionheart

Board Regular
Joined
Mar 25, 2016
Messages
95
Office Version
  1. 2016
Platform
  1. Windows
I have this list of dates in column A.
In column B I want to return 1 if in the second half of the year and 0 if any date was before 1 July 2017 including all of 2016, 2015, 2014 etc
All help greatly appreciated.
2/10/2017
25/09/17
18/09/17
24/07/17
15/07/17
5/7/2017
28/06/17
24/06/17
10/6/2017
31/05/17
17/05/17
8/4/2017
1/4/2017
4/2/2017
28/01/17

<tbody>
</tbody>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
B1 = IF(MONTH(A1)<7,0,1)

Hope this helps.

Thanks for your reply.
Yes, that would have worked except now I have discovered after applying the equation that what I see in the list is not what's behind the list. They have used varying date, text formats and it's just a mish mash of formats which appear to be uniform but are not. Will need to try to find a way.
 
Upvote 0

Forum statistics

Threads
1,216,113
Messages
6,128,905
Members
449,478
Latest member
Davenil

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