20 11 16.xlsm | ||||
---|---|---|---|---|
B | C | |||
1 | Date | Result | ||
2 | 25-Nov-20 | Second half | ||
3 | 13-Nov-20 | First half | ||
4 | 25-Oct-20 | N/A | ||
5 | 01-Dec-20 | N/A | ||
6 | 05-Nov-18 | N/A | ||
7 | 16-Nov-20 | Second half | ||
Check date |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2:C7 | C2 | =IF(TEXT(B2,"my")=TEXT(TODAY(),"my"),IF(DAY(B2)<16,"First half","Second half"),"N/A") |
Thanks Mate,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
B C 1 Date Result 2 25-Nov-20 Second half 3 13-Nov-20 First half 4 25-Oct-20 N/A 5 01-Dec-20 N/A 6 05-Nov-18 N/A 7 16-Nov-20 Second half Check date
Cell Formulas Range Formula C2:C7 C2 =IF(TEXT(B2,"my")=TEXT(TODAY(),"my"),IF(DAY(B2)<16,"First half","Second half"),"N/A")
Ah, I was misled by ..That is pretty much it, though its actually any month not the current month.
.. but anyway, you just needed a snippet of that formula by the sound of it?between the 1st and the 15th of the current month
=IF(DAY(B2)<16,"First half","Second half")
Yea I know, sorry mate.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")