If date in cell occurs between 2 dates

djaldente

New Member
Joined
Mar 21, 2017
Messages
27
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I need a formula to determine whether a date listed in an adjacent column occurs between the 1st and the 15th of the current month or the 16th and the 31st of the current month.

Thanks in advance
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Is this what you mean?

BTW, I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

20 11 16.xlsm
BC
1DateResult
225-Nov-20Second half
313-Nov-20First half
425-Oct-20N/A
501-Dec-20N/A
605-Nov-18N/A
716-Nov-20Second half
Check date
Cell Formulas
RangeFormula
C2:C7C2=IF(TEXT(B2,"my")=TEXT(TODAY(),"my"),IF(DAY(B2)<16,"First half","Second half"),"N/A")
 
Upvote 0
Is this what you mean?

BTW, I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

20 11 16.xlsm
BC
1DateResult
225-Nov-20Second half
313-Nov-20First half
425-Oct-20N/A
501-Dec-20N/A
605-Nov-18N/A
716-Nov-20Second half
Check date
Cell Formulas
RangeFormula
C2:C7C2=IF(TEXT(B2,"my")=TEXT(TODAY(),"my"),IF(DAY(B2)<16,"First half","Second half"),"N/A")
Thanks Mate,

That is pretty much it, though its actually any month not the current month.

My apologies, cheers
 
Upvote 0
Ah, I was misled by ..

.. but anyway, you just needed a snippet of that formula by the sound of it?
VBA Code:
=IF(DAY(B2)<16,"First half","Second half")
Yea I know, sorry mate.

Thanks very much
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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