You are here:

Excel/sumif with partial keyword

Advertisement


Question
col. 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?


Answer
Hi 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

All Answers

Answers by Expert:


Ask Experts

Volunteer


Douglas M. Smith

Expertise

I specialize in solving formula, feature and structure related problems. I know many tricks to help make your spreadsheets and processing more efficient.

Experience

Brainbench MVP for MS Excel
Past/Present clients
Gannett, Fannie Mae, Pepsi, Nortel, Procter & Gamble, BellSouth, Blue Cross Blue Shield of NC, NC Central University, GlaxoSmithKline, Maintenance Excellence Institute, AAI Pharmaceuticals, Blue Cross Blue Shield of SC, Brainbench.com

©2009 About.com, a part of The New York Times Company. All rights reserved.