sumif

  • Thread starter Thread starter esrei
  • Start date Start date
E

esrei

Every week I need to do a summary of sales for the week.
I have a list of product sold in one week, and every week
uses a sumif formula to get te totals for one week.

If I have:

Col.A Week18
Col.B Product code
Col.C Qty sold

Is there a formula that I can add to state that if
Col.A's value changes the range for the new formula must
change to the new weeks range.
 
You have not adequately described your data layout or formulas.

I will guess that you normally have a fixed number of rows for a given
week, and are using SUMIF() to select specific product codes within that
fixed number of rows. You can use SUMPRODUCT to sum based on two
criteria (week and product) while referencing a much larger area.

The general form (absent enough information to write a specific formula) is
=SUMPRODUCT((condition1)*(condition2)*sumrange)

Jerry
 
to expand on this a bit
The general form (absent enough information to write a specific formula) is
=SUMPRODUCT((condition1)*(condition2)*sumrange)
=SUMPRODUCT((rngA=condition1)*(rngB=condition2)*rngCsumrange)
the ranges must be the same size ie a2:a200, b2:b200
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Compare 4 columns and copy 2
updating data entry 4
Count Duplicates 5
Vlookup 2
Excel Excel problem 4
Data Validation for Prices in Cells 2
match list 4
find closest match and copy to sheet1 5

Back
Top