Excel: Extracting data based on range - excel

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.

Related

subtract two column pivot table using calculated value

I need to find the average of profit by subtracting ( average budget from average revenue ) , both these two column calculated by pivot table
I tried to input this in the calculated field: =AVERAGE('Box Office Revenue ($)')-AVERAGE('Budget ($)')
and then summarized field value to Average but still show summation.
i don't need to subtract the summation of these two column but i need to subtract the averages.
Can you please support in that.

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:

Compare column value with series of auto sum value in Power Pivot?

I have problem where i need to get the number of weeks after which my stock will run-out.
In my table i have:
"Forecast Regulier calc." which is the total sales.
And the auto generated total is the project stock.
Each value of "Forecast Regulier calc." in column is the sales on that particular week. Now the goal is to compare the sales of each week with the series of all auto generated total values and get the difference in column values where the two values match. And this will be the number of weeks after which our stock will run-out.
Please let me know if the description is not clear.
.

Dynamic SUM formula in Excel - Volume price list analysiis

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...

How to calculate with reference id

I have a workbook in which there is stock detail on sheet 1 and sales detail on sheet 2.
I want to auto-calculate the remaining stock. But the sales inventory is based on dates so all the different products are mixed up. Every product has a unique ID. So how I can subtract the sale product from stock based on their IDs?
An example:
The customer comes and buy 4 shirts.
I enter the product with product ID, and in the Qty column I added 4.
Now I want to minus 4 from actual stock.
How it can be done in Excel?
You need to take the sum of all sold products in sheet 2 based on condition that productID in sheet2 equals our interesting product in sheet1. Use:
=SUMIFS(B2:B100,A2:A100,productID)
where column A contains product IDs and column B contains "sold" values.
Then subtract that sum from the stock total in sheet1, e.g:
=B3-(SUMIFS(Sheet2!B1:B100;Sheet2!A1:A100;A3))
where column A contains product IDs and column B includes stock totals.
(note how "productID" from the first expression is here replaced with "A3", i.e. the value of productID column for the current row).
Copying this last formula to other product rows should automatically update the relevant values.

Resources