gingerfauxreal
New Member
- Joined
- Sep 25, 2018
- Messages
- 4
I have been researching this nearly all day and am struggling to find a solution. I have attached a picture of the columns I am working with.
The "Age" column, which is column D, has a formula to calculate ages in years and months from the DOB given in column C. The formula in column D is as follows:
=DATEDIF(C3,TODAY(),"y")&" yrs, "&DATEDIF(C3,TODAY(),"ym")&" mos "
As you can see, when column C doesn't have any data, column D still tries to calculate an age.
I need a formula that leaves cells in column D empty when the cells in column C are empty. BUT, I also need the formula listed above to work when there is a DOB in column C. I, also, need to know how to use conditional formatting to highlight entire rows when the age is equal to or over 26.
I have fiddled with conditional formatting to no avail. I have tried creating my own formulas by tinkering with the ones I found online, and, not surprisingly, they don't work. To me this seems extremely complicated, and, at this point, I'm not even sure Excel can do such a thing.
I have more questions if this gets answered, so if you help, you may be in for the long haul. haha
Thank you.
The "Age" column, which is column D, has a formula to calculate ages in years and months from the DOB given in column C. The formula in column D is as follows:
=DATEDIF(C3,TODAY(),"y")&" yrs, "&DATEDIF(C3,TODAY(),"ym")&" mos "
As you can see, when column C doesn't have any data, column D still tries to calculate an age.
I need a formula that leaves cells in column D empty when the cells in column C are empty. BUT, I also need the formula listed above to work when there is a DOB in column C. I, also, need to know how to use conditional formatting to highlight entire rows when the age is equal to or over 26.
I have fiddled with conditional formatting to no avail. I have tried creating my own formulas by tinkering with the ones I found online, and, not surprisingly, they don't work. To me this seems extremely complicated, and, at this point, I'm not even sure Excel can do such a thing.
I have more questions if this gets answered, so if you help, you may be in for the long haul. haha
Thank you.