DerekWooley
New Member
- Joined
- May 1, 2018
- Messages
- 34
Hello, I have a list of part numbers that I want to subtractthe total quantity of based on a ranked used date. In my below table, I amusing a rank formula
=1+SUMPRODUCT(($A$3:$A$7=A3)*($G$3:$G$7<G3))
But I don’t know how to subtract each used quantity inColumn D from the total in column C based on the ranked date from smallest tolargest in Column H. For example, I would start with 7266 and subtract 60 firstsince that is the highest ranked, making part # 20321 have the value 7206. Thesecond ranked would subtract 2880 from the 7206 balance since it is ranked 2.This would continue until I hit the highest ranked number. I can’t sort thetable and many of my parts for other materials have ranking that vary from 1 to9.
I am also using excel 2003.
[TABLE="width: 390"]
<tbody>[TR]
[TD="width: 69, bgcolor: transparent"] [/TD]
[TD="width: 64, bgcolor: transparent"] [/TD]
[TD="width: 67, bgcolor: transparent"] [/TD]
[TD="width: 63, bgcolor: transparent"] [/TD]
[TD="width: 65, bgcolor: transparent"] [/TD]
[TD="width: 77, bgcolor: transparent"] [/TD]
[TD="width: 115, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 69"] [/TD]
[TD="width: 64"] [/TD]
[TD="width: 67"] [/TD]
[TD="width: 63"] [/TD]
[TD="width: 65"] [/TD]
[TD="width: 77"] [/TD]
[TD="width: 115"] [/TD]
[/TR]
[TR]
[TD="width: 69, bgcolor: transparent"] [/TD]
[TD="width: 64, bgcolor: transparent"] [/TD]
[TD="width: 67, bgcolor: transparent"] [/TD]
[TD="width: 63, bgcolor: transparent"] [/TD]
[TD="width: 65, bgcolor: transparent"] [/TD]
[TD="width: 77, bgcolor: transparent"] [/TD]
[TD="width: 115"] [/TD]
[/TR]
[TR]
[TD="width: 69, bgcolor: transparent"] [/TD]
[TD="width: 64, bgcolor: transparent"] [/TD]
[TD="width: 67, bgcolor: transparent"] [/TD]
[TD="width: 63, bgcolor: transparent"] [/TD]
[TD="width: 65, bgcolor: transparent"] [/TD]
[TD="width: 77, bgcolor: transparent"] [/TD]
[TD="width: 115"] [/TD]
[/TR]
[TR]
[TD="width: 69, bgcolor: transparent"] [/TD]
[TD="width: 64, bgcolor: transparent"] [/TD]
[TD="width: 67, bgcolor: transparent"] [/TD]
[TD="width: 63, bgcolor: transparent"] [/TD]
[TD="width: 65, bgcolor: transparent"] [/TD]
[TD="width: 77, bgcolor: transparent"] [/TD]
[TD="width: 115"] [/TD]
[/TR]
[TR]
[TD="width: 69, bgcolor: transparent"] [/TD]
[TD="width: 64, bgcolor: transparent"] [/TD]
[TD="width: 67, bgcolor: transparent"] [/TD]
[TD="width: 63, bgcolor: transparent"] [/TD]
[TD="width: 65, bgcolor: transparent"] [/TD]
[TD="width: 77, bgcolor: transparent"] [/TD]
[TD="width: 115"] [/TD]
[/TR]
[TR]
[TD="width: 69, bgcolor: transparent"] [/TD]
[TD="width: 64, bgcolor: transparent"] [/TD]
[TD="width: 67, bgcolor: transparent"] [/TD]
[TD="width: 63, bgcolor: transparent"] [/TD]
[TD="width: 65, bgcolor: transparent"] [/TD]
[TD="width: 77, bgcolor: transparent"] [/TD]
[TD="width: 115"] [/TD]
[/TR]
</tbody>[/TABLE]
Thank you for any help!
=1+SUMPRODUCT(($A$3:$A$7=A3)*($G$3:$G$7<G3))
But I don’t know how to subtract each used quantity inColumn D from the total in column C based on the ranked date from smallest tolargest in Column H. For example, I would start with 7266 and subtract 60 firstsince that is the highest ranked, making part # 20321 have the value 7206. Thesecond ranked would subtract 2880 from the 7206 balance since it is ranked 2.This would continue until I hit the highest ranked number. I can’t sort thetable and many of my parts for other materials have ranking that vary from 1 to9.
I am also using excel 2003.
[TABLE="width: 390"]
<tbody>[TR]
[TD="width: 69, bgcolor: transparent"]
Column A
[TD="width: 64, bgcolor: transparent"]
Column B
[TD="width: 67, bgcolor: transparent"]
Column C
[TD="width: 63, bgcolor: transparent"]
Column D
[TD="width: 65, bgcolor: transparent"]
Column F
[TD="width: 77, bgcolor: transparent"]
Column G
[TD="width: 115, bgcolor: transparent"]
Column H
[/TR]
[TR]
[TD="width: 69"]
Material ID
[TD="width: 64"]
Part #
[TD="width: 67"]
Qty Rec'd
[TD="width: 63"]
Qty Used
[TD="width: 65"]
Rank
[TD="width: 77"]
Dates Used
[TD="width: 115"]
Needed Formula
[/TR]
[TR]
[TD="width: 69, bgcolor: transparent"]
7302899
[TD="width: 64, bgcolor: transparent"]
2342
[TD="width: 67, bgcolor: transparent"]
7266
[TD="width: 63, bgcolor: transparent"]
2064
[TD="width: 65, bgcolor: transparent"]
5
[TD="width: 77, bgcolor: transparent"]
6/1/2018
[TD="width: 115"]
1194
[/TR]
[TR]
[TD="width: 69, bgcolor: transparent"]
7302899
[TD="width: 64, bgcolor: transparent"]
2037
[TD="width: 67, bgcolor: transparent"]
7266
[TD="width: 63, bgcolor: transparent"]
2880
[TD="width: 65, bgcolor: transparent"]
2
[TD="width: 77, bgcolor: transparent"]
3/28/2018
[TD="width: 115"]
4326
[/TR]
[TR]
[TD="width: 69, bgcolor: transparent"]
7302899
[TD="width: 64, bgcolor: transparent"]
20321
[TD="width: 67, bgcolor: transparent"]
7266
[TD="width: 63, bgcolor: transparent"]
60
[TD="width: 65, bgcolor: transparent"]
1
[TD="width: 77, bgcolor: transparent"]
2/8/2018
[TD="width: 115"]
7206
[/TR]
[TR]
[TD="width: 69, bgcolor: transparent"]
7302899
[TD="width: 64, bgcolor: transparent"]
3029
[TD="width: 67, bgcolor: transparent"]
7266
[TD="width: 63, bgcolor: transparent"]
1020
[TD="width: 65, bgcolor: transparent"]
4
[TD="width: 77, bgcolor: transparent"]
5/25/2018
[TD="width: 115"]
3258
[/TR]
[TR]
[TD="width: 69, bgcolor: transparent"]
7302899
[TD="width: 64, bgcolor: transparent"]
4129
[TD="width: 67, bgcolor: transparent"]
7266
[TD="width: 63, bgcolor: transparent"]
48
[TD="width: 65, bgcolor: transparent"]
3
[TD="width: 77, bgcolor: transparent"]
5/24/2018
[TD="width: 115"]
4278
[/TR]
</tbody>[/TABLE]
Thank you for any help!