Another Scheduling formula issue part 2

mdean32

New Member
Joined
Jan 15, 2019
Messages
22
My current formula for "RODS AVAILABLE" is =IFERROR(G2-SUMIF(E$2:E2,E2,D$2:D2),"").

I have the table sorted exactly how I want to print it with the "Line" sorted first, followed by the "Run Date" in order. However, my formula for "RODS AVAILABLE" isn't correct by the Run Date needed. The "RODS AVAILABLE" function calculates by the line order instead of by the Run Date. How do I calculate "RODS AVAILABLE" by the Run Date, while still keeping the "Line" in the below order?

I am aware I can sort my table by Run Date and get the RODS AVAILABLE formula to calculate correctly, but I need my lines grouped together like the example below. Thank you for any help you can offer


A B C D E F G
LineRun DateSEQORDER AMTRODRODS AVAILABLEROD INVENTORY
131/21 305001166H62A0725027003200
131/22 505001166H62A0800013001800
131/23 555001166H62A100007001200
131/24 605001166H62A100002001200
141/21105001166H62A10000-3001200
141/22255001166H62A0725022003200
141/23155001166H62A0725017003200
141/24755001166H62A080008001800
151/21405001166H62A080003001800
151/22305001166H62A10000-8001200
151/2355001166H62A08000-2001800
151/24455001166H62A0725012003200

<colgroup><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"></colgroup><tbody>
</tbody>
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Can any Excel experts tell me if this is even doable? I've searched all over the internet looking for a solution. Thanks
 
Upvote 0
Not sure if I am getting you right.. But if you are asking for a solution like below mentioned table, then it is possible:

Run Date
Line
SEQ
Order Amount
1/21
13
30
500
14
10
500
15
40
500
1/22
13
50
500
14
25
500
15
30
500

<tbody>
</tbody>

Please let me know we are on same platform..
In other case, if you are trying to sort the table with respect to 2 columns at the same time, I am afraid that's not doable as far as I know.
 
Upvote 0
Right now the formula is subtracting straight down the spreadsheet in the Rods Available column. For example, the spreadsheet is subtracting the 1166h62a10000 rods on dates 1/23 and 1/24 on line 13 before it's subtracting the 1166h62a10000 rods on 1/21 on line 14. I need all the lines to be grouped together like I have it laid out, but I need the Rods Available formula to subtract like values by date. Am I making sense? I can sort by date and everything is right (like your example), but the lines are not grouped together like my example.
 
Upvote 0
Hi,

Got your Tag, if I understand correctly, adjust the formula as follows:


Book1
ABCDEFG
1LineRun DateSEQORDER AMTRODRODS AVAILABLEROD INVENTORY
2131/21/2019305001166H62A0725027003200
3131/22/2019505001166H62A080008001800
4131/23/2019555001166H62A10000-3001200
5131/24/2019605001166H62A10000-8001200
6141/21/2019105001166H62A100007001200
7141/22/2019255001166H62A0725022003200
8141/23/2019155001166H62A0725017003200
9141/24/2019755001166H62A08000-2001800
10151/21/2019405001166H62A0800013001800
11151/22/2019305001166H62A100002001200
12151/23/201955001166H62A080003001800
13151/24/2019455001166H62A0725012003200
Sheet478
Cell Formulas
RangeFormula
F2=IFERROR(G2-SUMIFS(D$2:D$13,E$2:E$13,E2,B$2:B$13,"<="&B2),"")


Formula copied down.
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,493
Messages
6,125,131
Members
449,206
Latest member
burgsrus

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