Sunday, June 5, 2011

Sumproduct advanced queries

Posted on 26 May 2011 at Excel Howtos, learn Excel functions of observable by Hui-34 comments

Use the function Sumproduct for multiple criteria in one situation may amount attachments larger than Excel function beyond what it was designed primarily for already designed may with that in mind?

However, Sumproduct also can extend even through the use of 2D ranges along with carefully constructed queries.

Examples are provided below in "example" Excel 2003 is an example of a file.

Your schedule and sold fruit and sold every day

How many bananas sold on 4thMay?

The previously named ranges Setup 3

Use named ranges as it facilitates reading the future versions.

Fruit: C2: H2

Dates: B3: B12

Froitdata: C3: H12

So, how many bananas do not sell to 4thMay?

Use = SUMPRODUCT ((Fruit = D16) * (Date = D15) * FruitData) equation

Returns the correct 31answer

Relevant: searching 2way in Excel

Your schedule and "car" and sold every day. There are several entries on different days, perhaps from different vendors.

How many cars Holden sells on May 3rd?

So, how many cars did not sell in Holden may 3rd?

Use = SUMPRODUCT ((Dates = D17) * (Cars = D18) * CarData) equation

Returns the correct answer 9 = (1 + 5 + 3)

Your schedule and "car" and sold every day, and there are multiple entries for different days.

How many vehicles Ford and Suzuki sells in May 10th?

So, how many vehicles Ford and Suzuki does not sell in May 10th?

Equation = SUMPRODUCT ((Dates = D24) * ((Cars = D25) + (auto = E25)) * as ardata)

Returns the correct answer 13 = (4 + 5 + 3 + 1)

Note that this can extend to add additional queries where you can enter "vehicle type" in any cell in the range D25: H25

= SUMPRODUCT ((Dates = D24) * ((Cars = D25) + (auto = E25) + (auto = F25) + (auto = G25) + (auto = H25)) * as ardata)

Your schedule and "car" and sold every day, and there are multiple entries for different days.

How many cars Toyota and Holden sells in May 10th?

How many cars Toyota and Holden sells in May 10th?

Use = SUMPRODUCT ((Dates = D30) * (Cars = D31: H31) * CarData) equation

Returns the correct answer 21 = (3 + 6 + 6 + 6)

Note that this can be extended to allow additional queries, but you must enter "type of vehicle" in the same position in the header row.

Using the above matrix computational techniques to produce coherent truth table inside Sumproduct formula.

Using = SUMPRODUCT ((B4: B6 = D10) * (C3: E3 = D9) * (C4: E6))

Truth table logic interdependent (B4: B6 = D10) * (C3: E3 = D9) simply says that Matt elements true when conditions and false otherwise

Sumproduct then takes this and hit by data values and accumulated values for total matching values.

It is important to note that the width and height of the columns and rows parameters must match the width and height data region or # value! Ritornd error.

To understand and explain how this works I will use a simple form with 3 rows and columns, see below

Formula: = SUMPRODUCT ((B4: B6 = D10) * (C3: E3 = D9) * (C4: E6)), shown above consists of 3 regions

(B4: B6 = D10) scope column rows x 1 3

(C3: E3 = D9) x 3 row column group 1

(C4: E6) scope column row x 3 3

Breaking formula to components

= SUMPRODUCT ((B4:B6=D10)*(C3:E3=D9)*(C4:E6))

(B4: B6 = D10) * (C3: E3 = D9) is same as hitting arrays 2, representing regions 2 as shown below

You can see which components are True I put 1 and 0 as false

If history 3/may Excel evaluates to 1, as well as having fruit banana, Excel evaluates to 1.

Where does not meet this standard Excel evaluates to 0

Multiplication 3 x 1 and a 1 × 3 × 3 array 3

The (B4: B6 = D10) * (C3: E3 = D9) part of the equation

Then the data is multiplied by

= SUMPRODUCT ((B4:B6=D10)*(C3:E3=D9)*(C4:E6))

This is the same two arrays double 2 3 x 3, which produces a 3 × 3 below:

ThenSumproduct adds all elements of the array to get the final answer 3of.

Can be "embedded" data area in "logic truth table or as a separate element of Sumproduct.

= SUMPRODUCT ((B4: B6 = D10) * (C3: E3 = D9) *(C4: E6)) f = SUMPRODUCT ((B4: B6 = D10) * (C3: E3 = D9) (C4: E6)) both equal

You can add multiple kritria "OR" using the + operator within a criteria

In scenario 3 above, we collect the number of vehicles Ford, Suzuki sold on May 10.

SUMPRODUCT ((Dates = D24) *((auto = D25) + (auto = E25) + (auto = F25) + (auto = G25) + (auto = H25))* as ardata)

Logic or is added to the criteria using the above criteria operator within parking lot +

Logic is added by using the * between the dates and vehicle standards

You can add greater-than (>), less than (<) etc="" and="" other="" logic="" elements="" to="" the="" queries="" to="" suit="" your="">

Examples are provided below in "example" Excel 2003 is an example of a file.

What do you think the above method?

Let us know in the comments below.

Spread some love
It makes you fabulous!

& Navigation functions

Tags: 2D, and (), array, array formulas "coherent truth table" downloads, Excel recognized matrix arithmetic, matrix, or Microsoft Excel formulas, screencasts, sumproduct


RSS feed for comments on this post. TrackBack URI



View the original article here

No comments: