Forum Discussion

WillRiversxx's avatar
WillRiversxx
Copper Contributor
Jul 18, 2023
Solved

Excel - What formula do I use here?

Hi all,   Using the below information, I wanted to create a formula to automatically fill in the column E with the text I've placed in there 'Information needs to be updated' etc. when someone ente...
  • HansVogelaar's avatar
    HansVogelaar
    Jul 19, 2023

    WillRiversxx 

    If you set the horizontal alignment of columns C and D to General, you'll see that while most values are right-aligned, a few are left-aligned, indicating that Excel sees them as text values instead of as 'real' dates.

    This will cause the formula to return #VALUE!

    I have corrected these dates in the attached workbook, and changed the formula to

     

    =IF(OR(D2="",D2-C2<0),"Requires contract award (planned) / actual date to be amended",D2-C2)

Resources