Excel/sumif with partial keyword
Expert: Douglas M. Smith - 8/18/2009
Questioncol. A col. B col.C Col.D
AN90308 150.000 903 280.000
AN90408 125.000 904 325.000
AN90408 200.000 905 140.000
AN90308 130.000
AN90508 140.000 What formula shuold I craate in coloum D?
AnswerHi Setiadi,
If the first line is on row 1, the formula for cell D1 would be:
=SUMIF($A$1:$A$5,"*"&C1&"*",$B$1:$B$5)
The asterisk (*) character is a wildcard and in this formula, it looks for the column C value anywhere in the column A value, and it doesn't care what characters are before or after it.
Doug Smith
Brainbench MVP for MS Excel
www.brainbench.com
www.abundant-solutions.com
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your
Excel question answered in this area then please ask an Excel question here