Case Function Equivalent in Excel

前端 未结 12 935
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 18:29

I have an interesting challenge - I need to run a check on the following data in Excel:

|   A  -   B  -   C  -  D   |
|------|------|------|------|
|  36  |          


        
12条回答
  •  悲哀的现实
    2020-12-30 19:10

    Even if old, this seems to be a popular questions, so I'll post another solution, which I think is very elegant:

    http://fiveminutelessons.com/learn-microsoft-excel/using-multiple-if-statements-excel

    It's elegant because it uses just the IF function. Basically, it boils down to this:

    if(condition, choose/use a value from the table, if(condition, choose/use another value from the table...

    And so on

    Works beautifully, even better than HLOOKUP or VLOOOKUP

    but... Be warned - there is a limit to the number of nested if statements excel can handle.

提交回复
热议问题