Excel/Excel formula problem
Expert: Douglas M. Smith - 8/19/2009
Question
Dear Sirs,
I have a long list showing Item No. in A column, Shop No. in B column and Sales Qty. in C column. I just want to create another table which can show easily the sales qty. of those shops by changing the item code in a cell. Please advise what formula should I apply.
Thanks a lot
fkwan
AnswerHi,
You will need an array formula for this. The formula in cell F5 would be:
=SUM(IF($B$3:$B$15=E5,IF($A$3:$A$15=$F$2,$C$3:$C$15,0),0))
but instead of using Enter, you will need to use Control+Shift+Enter. If done correctly, the formula will have {} brackets around it, indicating it is an array formula. If you edit the formula later, remember to use Contrl+Shift+Enter. You can copy it down like a regular formula.
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