Dynamic SUM formula in Excel - Volume price list analysiis - excel-formula

Hello I am hoping it is possible to create a SUM field on my Product order form so that it dynamically changes what values are selected. I have many suppliers who offer discounts on all parts based on hitting certain purchase thresholds. For example
Product A is $10 each, if my total order of Product A-Z exceeds $10,000 then Product A price falls to $9, if my total order for Product A-Z exceeds $25,000 then Product A Price falls to $8 Each of these price drops are represented in a field
[Item] [Description] [Base Price] [DiscountPrice1] [DiscountPrice2] [DiscountPrice3] [Order QTY]
I assume I will need to add a field that does [Order QTY] * [Price ] but that price will depend on the SUM of all of these fields.
I thought about doing 1 Sleeper column for each Price column so it gives me the overall SUM at the buttom for each column and then I just select the end price based on the multiple sums, but was hoping for something cleaner.
Thank you

Read Up on the SUMPRODUCT() function - Here is a good explanation
Use SUMPRODUCT to calculate the total cost of the order using the base price, and then wrap it in two IFs to account for the two threshholds. IF it's below 10k, use the SUMPRODUCT with the base price, if it's above 10k, use the SUMPRODUCT referencing the second price, etc...

Related

How to count the number repeated product purchased by the same customer based on

I have a table with
customer identifier (email)
order number (1 refers to the first order one has placed, 2 is the 2nd)
SKU is the product identifier.
I want to see a table that has two columns:
SKU
the number of times this product has been showed in both the 1st and 2nd order of the same customer. Or in other words, how many times the product has been ordered repeatedly.
Something like this:
What excel function could achieve this?
You can achieve this with a helper column using COUNTIFS, and then a pivot table:
Helper column formula:
=--(COUNTIFS(A$2:A2,A2,C$2:C2,C2)>1)
Add a value filter to the pivot table to only show rows with a value greater than 0.
You can also create a Power Pivot table to count distinct orders and create a measure to count repeat orders.
Here, column F is the Distinct count of customer and column G is the total count of customer for each SKU. Columns H and I are measures you can create with power pivot.

Excel: Extracting data based on range

I have a table for the number of products sold:
I have another table that calculates the cumulative product sold
I have a price table based on # of product sold:
What equation should I write to get the cost price of the product based on cumulative data? Basically, as the cumulative product for category A is less than 10 till 2022 the multiplier price is $5 but in 2023 as the cumulative product is more than 10 the multiplier is $3.
Please know that the actual data set has a price multiplier for multiple range and the number of products sold is in million. The above is just a sample.
Lose the < character in the Item column of the price table. Then you can use it for an approximate lookup.
Let's say the price table is on a sheet called PriceSheet and starts in cell A1, so the first row of data is in row 2. The price table must be sorted ascending by the first column. To look up the price use
=vlookup(A1,PriceSheet!$A$2:$B$5,2,1)
Multiply that with the count.
=A1*vlookup(A1,PriceSheet!$A$2:$B$5,2,1)
Now just change A1 to the cell that has the cumulative count.

Calculated fields - sum of products

I tried to calculate a sum of a product (in the example: quantity product price), so If I sum all the products, I get a value (the dynamic table in the upper side). But when I enter the calculated field quantity*product, Excel got a sum of all the quantity product the sum of all the prices.
How can I solve that?
In this image, I have a table with the data that I want to show through a pivot table
If a put the column Total in the Value section, i get the sum of all the Total values, considering Total as a multiply of quantity and price
In this table, I put the calculate field quantity*price to get the sum, but I got the sum of quantity multiply the sum of price
The calculate field
It appears that you've done this:
But you should have done this:
To sum the individual months you can do this:
Or even this:

Weighted average by unique identifier on excel 2013

Assuming I have 10,000 rows with different the unique identifiers such as chairs, tables, sofa etc that are repeated with different combinations of price and quantity,How can I find the weighted average price for the chairs as well as other unique identifiers without manually dividing the sum of prices by the sum of the quantity for chairs?
Example, if the data has chairs where $12,$14,$22 are the prices and 28,13,5 are the quantity of chairs available respectively to the price. Thus, there are 28 chairs available for $12 and so on.
Thanks.
It would be better if we had access to your data, but it seems that using a conditional sumproduct over a conditional sum solves your issue.
Here follows an example:
Assuming:
A = object's name
B = object's quantity
C = object's price
=SUMPRODUCT(--(A1:A10000="Chair"),B1:B10000,C1:C10000)/SUMIF(A1:A10000;"Chair";B1:B10000)
It's not very common to use a "conditional SUMPRODUCT" so I recommend that you read more about it here

Need help in excel formula

1) I have two tables. 1st table contains data for more then 20,000 rows and 2nd table I already have the following columns details i.e. Region, Item, Number and I just have to get the Total value of the product from the 1st table
2) There are two types of prices in the 1st table . One is Retail Price and Another one is a Wholesale price
3) In each of the regions Rep, Item and Numbers are same in most of the cases, but the Total price is different
4) I am able to get the Total price details in 2nd table through vlookup formula (After concatinating the following columns i.e. Region, Item and Number from both the tables) wherever there is an account number for retail price
5) Currently I am manually updating "Total Price" details in 2nd table for Wholesale price which is taking lot of time.
Is it possible to build a formula to get the wholesale price details in the 2nd table, since there are more then one account number, but the price is same
If the wholesale price is the lowest price for the specific item, then you can find it with the formulas MIN and IF.
Based on your screen shot:
D is the column with the list of items
I5 is the cell with the item name for which you want to find the wholesale price
F is the column with the list of prices
If you enter the following formula in cell K5, it should find the lowest price for pencils
=MIN(IF(D:D=I5,F:F))
On this link, there is an explanation if you want to use multiple criteria.
http://www.contextures.com/excelminmaxfunction.html
try the sumifs function.
It takes multiple arguments and criteria. So it should look something like:
cell value at j5 = sumifs(f3:f23, b3:b23, h5, d3:d23, i5....)
you need to mark off which rows in your first table are wholesale selling. So it should be a column of some kind. Once you do that, let's say in column G, then you add onto the sumifs function...
, g3:g23, L5)
What you're doing is summing up all of the values in column F where h5 (region) matches in b3:b23, i5 (item) match in d3:d23, and where L5 (retail type) match in a new column g2:g23.
This will find all of the values that match that criteria exactly.
Vlookup is useful, but it's harder to scale IMO than the advanced if functions.
SUMIFS is probably the better way to go on this one, but as an alternative there is also SUMPRODUCT.
=SUMPRODUCT(($H3=$B$3:$B$20004)*($I3=$D$3:$D$20004)*($J3=$E$3:$E$20004)*($F$3:$F$20004))
The * acts as an AND statement in a logical check, and each of the ($H3=$B$3:$B$20004) is a logical check. When the row is true it will evaluate to 1. When it is false it will evaluate to 0. in the end you wind up with a list of prices or 0s that get summed. The end result is the sum of everything that matches your criteria.
The danger of using this formula is that it can get labour intensive as it is performing array calculations without being an array formula.

Resources