我不是Execel中最强的,我想知道如何根据另一个单元格中的值填充命名列表(下拉列表)。这是我的示例,A列包含国家/地区,B列我希望根据国家/地区值填充州。然后在C列(隐藏单元格)中放入B列中所选状态的状态代码。我希望这是有道理的。任何帮助将不胜感激。
=IF($F$5="Corporate Affairs and Records", CorporateAffairs,
IF($F$5="Dealer/Customer Credit", DealerCustomerCredit,
IF($F$5="Engineering", Engineering,IF$F$5="Environmental", Environmental,
IF$F$5="Finance/Banking and Investments", BankingAndInvestments,
IF$F$5="Finance/General Ledger", GeneralLedger,
IF$F$5="Finance/Accounts Payable", AccountsPayable,
IF$F$5="Finance/Accounts Receivable", AccountsReceivable,
IF$F$5="Finance/Tax", Tax,
IF$F$5="Organization and Records Management", OrganizationAndRecords,
IF$F$5="Payroll", Payroll,
IF$F$5="Personnel/Industrial Relations", Personnel,
IF$F$5="Production", Production,
IF$F$5="Purchasing", Purchasing,
IF$F$5="Risk Management", RiskManagement,
IF$F$5="Sales, Leasing and Marketing", Sales,
IF$F$5="Warranty/Field Service", Warranty)))))))))))))))))
在数据验证的源文本框中遇到大小限制。
答案 0 :(得分:1)
一种方式:
创建一个查找表,将所有可能的F5值(col1)与您的范围名称(col2)相关联,并命名表格范围(例如)“LOOKUPS”
对于验证列表来源,您可以使用以下内容:
=INDIRECT(VLOOKUP($F$5,LOOKUPS,2,FALSE))