我正在製作一個計算器樣式電子表格,用於快速簡單地計算通常繁瑣的方程式,並將其簡單點擊幾下。但是,我遇到了一個障礙。硬編碼比較
在B3中,我有一個用戶可能選擇的列表。根據他們選擇的內容,其他許多單元格將更改值以顯示正確和所需的信息。
我第一次嘗試,試圖讓細胞格式化取決於B3使用的內容:
=IF(ISNUMBER(SEARCH("Plate",B3)),"Quake",ISNUMBER(SEARCH("Cloth",B3)),"Ocean",ISNUMBER(SEARCH("Leather",B3)),"Typhoon",ISNUMBER(SEARCH("Neck",B3)),"Earth",ISNUMBER(SEARCH("ring",B3)),"Earth",ISNUMBER(SEARCH("Dagger",B3)),"Mountain",ISNUMBER(SEARCH("Sword",B3)),"Summer",ISNUMBER(SEARCH("Katana",B3)),"Sky",ISNUMBER(SEARCH("Club",B3)),"Autumn",ISNUMBER(SEARCH("Shortspear",B3)),"Winter",ISNUMBER(SEARCH("Axe",B3)),"Typhoon",ISNUMBER(SEARCH("Greatsword",B3)),"Desert",ISNUMBER(SEARCH("Nodachi",B3)),"Lightning",ISNUMBER(SEARCH("Greataxe",B3)),"Desert",ISNUMBER(SEARCH("Greatclub",B3)),"Sunset",ISNUMBER(SEARCH("Longspear",B3)),"Squall",ISNUMBER(SEARCH("Shield",B3)),"Quake",ISNUMBER(SEARCH("Bow",B3)),"Volcano",ISNUMBER(SEARCH("Scepter",B3)),"Meadow",ISNUMBER(SEARCH("Staff",B3)),"Ocean","")
我的問題是,如果需要三個參數的最大值。
有沒有辦法規避這種情況,可能是通過使用許多OR語句來分解比較?
對不起,刪除標籤。 – mitchem