Get value/number within the dates

wryud

New Member
Joined
Aug 2, 2022
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I have difficulties in finding the formula to get amount of some package used within date period. The idea of formula should be Purchase/Qty packages * date package used (The examples is in mini-sheet attached)

It takes me hours but i still not know how to manage it.

Can someone help me with the formula?

Thank you in advance

Yudi

Sales Report PP 2014-2022.xlsx
ABCDEFGHIJKLMNOP
1Question Froum
2
3NamePurchaseQty PackageDate Package Used (dd:mm:yyyy)Qty LeftUnit PriceDebt Amount Left
41x2x3x4x5x6x7x8x9x10x
5James1.000501/09/202030/09/202031/10/202030/11/202031/12/202002000
6Andri5.0001005/06/201607/09/201608/03/201721/06/201728/10/2017EXPIREDEXPIREDEXPIREDEXPIREDEXPIRED05000
7Vina8.000802/02/202023/02/202008/08/202009/09/202015/10/202012/01/202119/03/2021210002000
8Total14.0002.000
9
10QUESTION:
11How to get package usage value with date range, with conditions:
12Usage of range package (dd:mm:yyyy) 1/1/2016 - 31/12/2020 + Expired
13The idea of formula should be = Purchase/Qty packages * date package used
14The result should be:11.000
15Debt amount left:3.000
1614.000
17
Sheet2
Cell Formulas
RangeFormula
O5:O7O5=+B5/C5
B8B8=SUM(B5:B7)
P5:P7P5=+N5*O5
P8P8=+SUM(P5:P7)
C14C14=1000+5000+5000
C16C16=SUM(C14:C15)
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Welcome to the MrExcel board!

A number of people have looked at you question but not answered, so I'm guessing that they are like me and not really understanding the problem.

In your sample
The result should be: =1000+5000+5000
Can you explain how/where you got those three values to add from the sample data?

Debt amount left: 3000
Can you explain how/where you got that value from the sample data?
 
Upvote 0
Thank you for your answer,

I hope its not because my bad english 🥲

So i will explain further:
The result should be 11000, is from the date package used. Below is my explanation:
From the mini-sheet we can see in column B3 Purchase which have datas:
- James for 1000 with Qty 5 times, so we can know 200 is unit price. In row D5:H5 is filled with date. It means, all the packages has been used (because Qty is 5), then we can know outsanding debt is 0 (zero). 0 (zero) is from Purchase minus total (Qty_used*unit price).

- Andri for 5000 with Qty 10 times, so we can know 500 is unit price. In row D5:M5 is filled with date and "Expired" text. It means, the package has been used 5 times, and the "Expired" text means the package is already Expired. So it will count all Qty of package already used. Since the all qty package is used, we can know the outstanding debt is 0 (zero). 0 (zero) is from Purchase minus total (Qty_used*unit price).

- Vina for 8000 with Qty 8 times, so we can know 1000 is unit price. In row D7:J7 is filled with date. It means, the packages has been used for 7 times, with 1 times is still hanging. Then we can know outstanding debt is 1000. 1000 is from Purchase minus total (Qty_used*unit price).
Im sorry it was supposed to be Qty left 1 for 1000 not 2000 (My bad)

So we can summary:
- Total purchase is 14000
- Total package used is: 13000 (date between 2016 and 2021)
- Total package remaining is: 1000

So is it possible to make a formula to know the package used within periode for example 2016 to 2020?
If we can, it should be:
- James is 1000
- Andri is 5000
- Vina is 5000
So total package used will be 11000, and 3000 is remain debt.

I hope you understand my explanation 🙏
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top