Google Sheet 跨多个选项卡查找元素的公式
Google Sheet Formula for finding an element across multiple tabs
我正在尝试填充 F 列中的值,"Product Sold Date" 在 "TABLES" 选项卡中
基本上...逻辑如下:
1) If Column C (Product Status) = "Paused", then return "Paused"
2) If Product start date = NULL or Product end date = NULL, then return NULL
3) If Product start date < today`s date, then return "No Data"
4) If Product start date >= today`s date, return "Upcoming"
5) If product End date <= today`s date, return "Ended"
6) If product start date <= today`s date, return "In Market"
7) If the condition does not belong to any of the above cases, then return the actual Product launch dates
下面是我正在处理的示例数据的link..
我正在粘贴 link 本身,因为包含多个选项卡
https://docs.google.com/spreadsheets/d/120rHOt8Pa_PdMKPgLkSYOKTO2Cv1hBH6PpTrg7FfJLk/edit?usp=sharing
最后,我需要通过扫描每个选项卡中的数据来填充实际的 "Product Launch Date"
我尝试使用嵌套的 if 语句和索引匹配的组合。
但如果有多个选项卡,我完全迷路了
有人可以对此提出建议吗?
在这种情况下,我们是否应该考虑改用查询语句?
旁注:返回值将混合日期和字符
[在市场/结束/即将到来/无数据/空/暂停/实际日期]
你的公式是
=IF(C2="Paused",C2,if(OR(A2="",B2=""),"",IF(A2<TODAY(),"No Data",IF(A2>=TODAY(),"Upcoming",IF(B2<=TODAY(),"Ended",IF(A2<=TODAY(),"In Market","Actual Product Launch dates"))))))
在上面的公式中,您应该使用查询公式代替 "Actual Product Launch dates",以提取实际日期。
但是第 3 点和第 6 点没有任何意义。第 6 个条件应该是 If product start date = todays date, return "In Market"
=ARRAYFORMULA(
IF(C2:C="Paused", C2:C,
IF((A2:A="")+(B2:B=""), ,
IF(A2:A >= TODAY(), "Upcoming",
IF(B2:B <= TODAY(), "Ended",
IF(A2:A = TODAY(), "In Market",
IF(E2:E<>"", IFERROR(VLOOKUP(D2:D&E2:E,
{'Eaton Centre'!A2:A &"Eaton Centre", 'Eaton Centre'!B2:B;
'Yorkdale Mall'!A2:A&"Yorkdale Mall", 'Yorkdale Mall'!B2:B;
'Vaughan Mills'!A2:A&"Vaughan Mills", 'Vaughan Mills'!B2:B}, 2, 0)), )))))))
我正在尝试填充 F 列中的值,"Product Sold Date" 在 "TABLES" 选项卡中
基本上...逻辑如下:
1) If Column C (Product Status) = "Paused", then return "Paused"
2) If Product start date = NULL or Product end date = NULL, then return NULL
3) If Product start date < today`s date, then return "No Data"
4) If Product start date >= today`s date, return "Upcoming"
5) If product End date <= today`s date, return "Ended"
6) If product start date <= today`s date, return "In Market"
7) If the condition does not belong to any of the above cases, then return the actual Product launch dates
下面是我正在处理的示例数据的link..
我正在粘贴 link 本身,因为包含多个选项卡
https://docs.google.com/spreadsheets/d/120rHOt8Pa_PdMKPgLkSYOKTO2Cv1hBH6PpTrg7FfJLk/edit?usp=sharing
最后,我需要通过扫描每个选项卡中的数据来填充实际的 "Product Launch Date"
我尝试使用嵌套的 if 语句和索引匹配的组合。 但如果有多个选项卡,我完全迷路了
有人可以对此提出建议吗?
在这种情况下,我们是否应该考虑改用查询语句?
旁注:返回值将混合日期和字符 [在市场/结束/即将到来/无数据/空/暂停/实际日期]
你的公式是
=IF(C2="Paused",C2,if(OR(A2="",B2=""),"",IF(A2<TODAY(),"No Data",IF(A2>=TODAY(),"Upcoming",IF(B2<=TODAY(),"Ended",IF(A2<=TODAY(),"In Market","Actual Product Launch dates"))))))
在上面的公式中,您应该使用查询公式代替 "Actual Product Launch dates",以提取实际日期。
但是第 3 点和第 6 点没有任何意义。第 6 个条件应该是 If product start date = todays date, return "In Market"
=ARRAYFORMULA(
IF(C2:C="Paused", C2:C,
IF((A2:A="")+(B2:B=""), ,
IF(A2:A >= TODAY(), "Upcoming",
IF(B2:B <= TODAY(), "Ended",
IF(A2:A = TODAY(), "In Market",
IF(E2:E<>"", IFERROR(VLOOKUP(D2:D&E2:E,
{'Eaton Centre'!A2:A &"Eaton Centre", 'Eaton Centre'!B2:B;
'Yorkdale Mall'!A2:A&"Yorkdale Mall", 'Yorkdale Mall'!B2:B;
'Vaughan Mills'!A2:A&"Vaughan Mills", 'Vaughan Mills'!B2:B}, 2, 0)), )))))))