# Excel/Excel Formual

Question
I could use your help writing a formula to look up a value set by two conditions. Below is an example of the report I am using.

A        B    C     D
Desc.    Qty  Size  Name
USAN
100  3     Pipe
4    3     Joint
200  NA    Excavation

I need a formula that will find (anywhere in Col 'A') "USAN". Then find "Excavation" (specific to USAN). And lastly return the Quantity (Qty) of excavation.

Is this possible. Your help would be greatly appreciated.

Hi Josh,

I don't know your excel version so the solution is given for multiple versions.

For excel 2003
`=SUMPRODUCT((\$A\$2:\$A\$100="USAN")*(\$D\$2:\$D\$100="Excavation")*(\$B\$2:\$B\$100))`

For excel 2007 / 2010
`=SUMIFS(\$B\$2:\$B\$100,\$A\$2:\$A\$100,"USAN",\$D\$2:\$D\$100,"Excavation")`

Hope that helps!

---

Sixthsense
Questioner's Rating
 Rating(1-10) Knowledgeability = 10 Clarity of Response = 10 Politeness = 10 Comment OMGosh. I was trying to use a overly complicate INDEX/MATCH syntax formula. This work perfectly. Thank you!

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

#### Sixthsense

##### Expertise

[Overview] Having hands-on experience with Excel, I can able to answer questions which is related to Conditional Formatting, Goal Seek, Scenarios, Subtotal, Validation, Pivot Table, Shared Workbook, Excel Sheet / Workbook Protection, Excel Settings, Excel Shortcuts and the Two Major & Massive Key Areas of Excel (i.e.) Worksheet Functions and Excel VBA (Macro).

[Services] Volunteer in many of the Excel Discussion Groups / Forums and answered more than 10,000+ questions (approx.)

[Client FAQs] My Solution Files

[Not Interested In] Chart Questions

[Something Controversial]