Excel将Col C的重复项目作为每个Col B.

时间:2018-03-12 16:02:08

标签: excel excel-formula

我有产品数据,我需要将col C的值乘以Per col B和A.一个例子可以让它更容易理解:

Product Name                   Category                       Part
Adjustable-Thermostats_226     Glasswashers/Classeq Eco 2     30000971
Air-Break---Type-B_227         Glasswashers/Classeq Eco 2     3501194
                               Dishwashers/Classeq Hydro 400  30001056
                                                              61004430
                                                              61004451
Air-Pressure-Vessel_229        Glasswashers/Classeq Eco 2     30001077
                               Glasswashers/Classeq Duo 2     30001765
                               Dishwashers/Classeq Hydro 400  60000008
                               Dishwashers/Classeq DUO 400    60000009
                                                              30001068

我需要一个返回值的公式:

Adjustable-Thermostats_226        Glasswashers/Classeq Eco 2    3501194
Air-Break---Type-B_227            Glasswashers/Classeq Eco 2    30001056
                                  Glasswashers/Classeq Eco 3    61004430
                                  Glasswashers/Classeq Eco 4    61004451
                                  Dishwashers/Classeq Hydro 400 30001056
                                  Dishwashers/Classeq Hydro 401 61004430
                                  Dishwashers/Classeq Hydro 402 61004451
Air-Pressure-Vessel_229           Glasswashers/Classeq Eco 2    30001077
                                  Glasswashers/Classeq Eco 2    30001765
                                  Glasswashers/Classeq Eco 2    60000008
                                  Glasswashers/Classeq Eco 2    60000009
                                  Glasswashers/Classeq Eco 2    30001068
                                  Glasswashers/Classeq Duo 2    30001077
                                  Glasswashers/Classeq Duo 2    30001765
                                  Glasswashers/Classeq Duo 2    60000008
                                  Glasswashers/Classeq Duo 2    60000009
                                  Glasswashers/Classeq Duo 2    30001068
                                  Dishwashers/Classeq Hydro 400 30001077
                                  Dishwashers/Classeq Hydro 400 30001765
                                  Dishwashers/Classeq Hydro 400 60000008
                                  Dishwashers/Classeq Hydro 400 60000009
                                  Dishwashers/Classeq Hydro 400 30001068
                                  Dishwashers/Classeq DUO 400   30001077
                                  Dishwashers/Classeq DUO 400   30001765
                                  Dishwashers/Classeq DUO 400   60000008
                                  Dishwashers/Classeq DUO 400   60000009
                                  Dishwashers/Classeq DUO 400   30001068

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

这是最简单的解决方案:

  • 在第一行添加自动过滤器;
  • 在Category列的第一个空行中写入=上面的单元格(如果B5是第一个空单元格使用func showHtml5() { var wkWebView = WKWebView() let frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height) let contentController = WKUserContentController() contentController.add(self, name: "onVisibilityChanged") let config = WKWebViewConfiguration() config.userContentController = contentController wkWebView = WKWebView(frame: frame, configuration: config) wkWebView.navigationDelegate = self as? WKNavigationDelegate if let url = URL(string: "https://previews.envatousercontent.com/files/240466341/index.html") { wkWebView.load(URLRequest(url: url)) } self.destination.view.addSubview(wkWebView) } func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) { print("message is :\(message)") if(message.name == " onVisibilityChanged") { print("FROM JAVASCRIPT") } }
  • 在所有空单元格中复制公式(B5)

example of formula you have to use