Hi,
I’m using excel 2016 and trying to use a formula to put specific text into a cell.
1st problem:
If I enter a date between 1 Apr and end of Jun in B3, I want A3 to show Q1
1 Jul to end of Sep - Q2
1 Oct to end of Dec - Q3
1 Jan to end of Mar - Q4
I’ve been trying the following formula in cell A3:
=IF(AND(B3>=DATEVALUE(“01/04/2023”),B3<=DATEVALUE(“30/06/2023”)),”Q1”, IF(AND(B3>=DATEVALUE(“01/07/2023”),B3<=DATEVALUE(“30/09/2023”)),”Q2”, and so on. This does work, however ever year I would need to amend the date.
Can I get the formula to do this?
2nd problem
If I then put a new date in cell C3 I want it to do the same overriding Cell B3 input. If I then put a further new date in cell D3 again I want it to do the same, overriding both cell B3 and C3.
Can this be done?
I’m using excel 2016 and trying to use a formula to put specific text into a cell.
1st problem:
If I enter a date between 1 Apr and end of Jun in B3, I want A3 to show Q1
1 Jul to end of Sep - Q2
1 Oct to end of Dec - Q3
1 Jan to end of Mar - Q4
I’ve been trying the following formula in cell A3:
=IF(AND(B3>=DATEVALUE(“01/04/2023”),B3<=DATEVALUE(“30/06/2023”)),”Q1”, IF(AND(B3>=DATEVALUE(“01/07/2023”),B3<=DATEVALUE(“30/09/2023”)),”Q2”, and so on. This does work, however ever year I would need to amend the date.
Can I get the formula to do this?
2nd problem
If I then put a new date in cell C3 I want it to do the same overriding Cell B3 input. If I then put a further new date in cell D3 again I want it to do the same, overriding both cell B3 and C3.
Can this be done?