Forum Discussion
IF statement only filling out first cell
- Jun 13, 2022
What version of Excel are you using? The dynamic array functionality you saw and are trying to use was introduce in 2021 I believe so if you have an older version you will need to do the drag down technique. In order to not get erroneous values when you drag down use the$ character to "lock" particular reference parts like: $A2:$A5 will lock column A even if you copy it right or left while A$2:A$5 will lock rows 2-5 even if you copy up or down and $A$2:$A$5 will lock both rows and column.
That said in your formula you just need =IF(D2>30, "Old", "Yound") and drag down.
What version of Excel are you using? The dynamic array functionality you saw and are trying to use was introduce in 2021 I believe so if you have an older version you will need to do the drag down technique. In order to not get erroneous values when you drag down use the$ character to "lock" particular reference parts like: $A2:$A5 will lock column A even if you copy it right or left while A$2:A$5 will lock rows 2-5 even if you copy up or down and $A$2:$A$5 will lock both rows and column.
That said in your formula you just need =IF(D2>30, "Old", "Yound") and drag down.