---
title: "Excel带条件求和"
author: "dbscx"
date: "2011-01-14T11:31:14Z"
tags: ["Excel", "工作"]
categories: ["非技术"]
slug: "excel"
draft: false
lastmod: "2011-01-14T11:34:08Z"
id: 871057
url: "https://dbscx.iteye.com/blog/871057"
---

情況：  
日常使用excel中會遇到根據A列的值來分類求和B列的值

舉例：  
1 A            B

2 開發者     工作量  
3 andy      2  
4 華仔       1  
5 andy      8  
6 華仔        3  
7 andy      4  
8 andy      5  
9 華仔       16

華仔的總工作量是：{=SUM(IF(A2:A9="華仔",B2:B9))}  
注：這是組合函數，編輯完畢后按ctrl+shift+enter開啟