讓我們通過邏輯說話。如果我們應該複製這些數據("X"
),並且如果沒有家庭號碼(=""
),請複製單元號。否則如果有家庭電話號碼,請複製家庭電話號碼。
我覺得它有助於把在單獨的行邏輯的各種層次和縮進他們,所以我能理解哪些取決於哪。所以
=IF('Master contacts list'!M10="X", IF('Master contacts list'!H10="",'Master contacts list'!J10, 'Master contacts list'!H10), "")
所以,如果我們重新格式化該多條線路上
=IF('Master contacts list'!M10="X", IF I am supposed to copy this data
IF('Master contacts list'!H10="", IF the home phone number is empty
'Master contacts list'!J10, Copy the mobile number
'Master contacts list'!H10), ELSE Copy the home number (since the cell is not empty)
"") ELSE make this cell blank (since we weren't supposed to copy the data
所以場景1:沒有 「X」
=IF('Master contacts list'!M10="X", IF I am supposed to copy this data
IF('Master contacts list'!H10="", IF the home phone number is empty
'Master contacts list'!J10, Copy the mobile number
'Master contacts list'!H10), ELSE Copy the home number (since the cell is not empty)
"") <<<<<< ELSE make this cell blank (since we weren't supposed to copy the data
情形2:有一個 「X」 和有一個家庭電話號碼
=IF('Master contacts list'!M10="X", IF I am supposed to copy this data
IF('Master contacts list'!H10="", IF the home phone number is empty
'Master contacts list'!J10, Copy the mobile number
'Master contacts list'!H10),<<<<<< ELSE Copy the home number (since the cell is not empty)
"") ELSE make this cell blank (since we weren't supposed to copy the data
情景3:T這裏是一個「X」,沒有手機號碼。這是一個黑客,因爲如果我們沒有一個單元格號碼,我們知道我們只有這個邏輯,因爲我們沒有家庭號碼,所以我們只需複製單元格號碼。如果它是空白單元格,我們的新電話欄也將爲空。
=IF('Master contacts list'!M10="X", IF I am supposed to copy this data
IF('Master contacts list'!H10="", IF the home phone number is empty
'Master contacts list'!J10,<<<<<< Copy the mobile number
'Master contacts list'!H10), ELSE Copy the home number (since the cell is not empty)
"") ELSE make this cell blank (since we weren't supposed to copy the data
希望有幫助!
謝謝救了我這麼頭痛,最終調整了你說的最終公式,看起來像這樣: '= IF('主要聯繫人列表'!M10 =「X」,IF('主要聯繫人列表'!H10 =「」,「主聯繫人列表」!J10,「主聯繫人列表」!H10))' (萬一有人搜索具有完全相同的問題) –