gpt4 book ai didi

excel - 满足条件时,在不满足条件的情况下,在其下方的每一行显示当前行值

转载 作者:行者123 更新时间:2023-12-04 12:31:44 25 4
gpt4 key购买 nike

是否可以通过 Power Query 或 Power Pivot 从下表中获取

<表类="s-表"><头>身份证描述<正文>类别 11任务 12任务2类别23任务34任务4

一个表格,其中类别位于其下每一行的单独列中?

<表类="s-表"><头>身份证描述类别<正文>1任务 1类别 12任务2类别 13任务3类别24任务4类别2

我曾尝试使用一些索引列或 FIRSTNONBLANK 来做到这一点,但我惨遭失败。

最佳答案

另一种方法

let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Added Custom" = Table.AddColumn(Source, "Category", each if [ID]=null then [Description] else null),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Description.1", each if [ID]<>null then [Description] else null),
#"Filled Down" = Table.FillDown(#"Added Custom1",{"Category"}),
#"Removed Columns" = Table.RemoveColumns(#"Filled Down",{"Description"}),
#"Filtered Rows" = Table.SelectRows(#"Removed Columns", each ([Description.1] <> null))
in #"Filtered Rows"

关于excel - 满足条件时,在不满足条件的情况下,在其下方的每一行显示当前行值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68577466/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com