让我们通过逻辑说话。如果我们应该复制这些数据("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))' (万一有人搜索具有完全相同的问题) –