Case Function Equivalent in Excel

前端 未结 12 841
被撕碎了的回忆
被撕碎了的回忆 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:18

    I used this solution to convert single letter color codes into their descriptions:

    =CHOOSE(FIND(H5,"GYR"),"Good","OK","Bad")
    

    You basically look up the element you're trying to decode in the array, then use CHOOSE() to pick the associated item. It's a little more compact than building a table for VLOOKUP().

提交回复
热议问题