Multiple IF statements in Excel

后端 未结 2 424
日久生厌
日久生厌 2021-01-23 22:16

How can I do this in Excel with Multiple IF statements:-

\"enter

The conditions:-

2条回答
  •  生来不讨喜
    2021-01-23 22:38

    The IF function has the following structure:

    IF(logical_test, [value_if_true], [value_if_false])
    

    You can nest further IF's in the [value_if_true] and/or [value_if_false] arguments.

    In your particular case, paste this in E2 and copy-drag down:

    =IF(ISERROR(C2),IF(ISERROR(B2),D2,B2),C2)
    

    Now, this assumes that your dates are sometimes #NULL! like your question suggests, but I doubt that this is what you actually mean. Maybe you mean blank? Or some other value? If you do mean blank, then replace ISERROR with ISBLANK in the above.

提交回复
热议问题