Hello Friends,
I need a VBA code to apply these formula in Columns C:F if Column M is showing > In Process
Formula for Column C
Formula for Column D
Formula for Column E
Formula for Column F
Pls Note:
1) Column M Values are formula result
2) Leave the values as it is where there condition is not met. Like where Column M does not equal to In Process then leave the values in Column C:F as it is
Any help would be appreciated
Regards,
Humayun
EDIT:
I just realized that formulas will be applied after running the code. But what when the In Process order is shipped
So, at the end to the code if it's possible to look at the range & if any row containing formulas are shipped in Column M then it should convert those formulas to values
I need a VBA code to apply these formula in Columns C:F if Column M is showing > In Process
Formula for Column C
Excel Formula:
=H2-SUMIF($B$1:$B1,$B2,C$1:C1)
Formula for Column D
Excel Formula:
=I2-SUMIF($B$1:$B1,$B2,D$1:D1)
Formula for Column E
Excel Formula:
=J2-SUMIF($B$1:$B1,$B2,E$1:E1)
Formula for Column F
Excel Formula:
=K2-SUMIF($B$1:$B1,$B2,F$1:F1)
Pls Note:
1) Column M Values are formula result
2) Leave the values as it is where there condition is not met. Like where Column M does not equal to In Process then leave the values in Column C:F as it is
Any help would be appreciated
Book1 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | |||
1 | DATE | PO # | Cutting | Stitching | Checking | Packing | Cutting | Stitching | Checking | Packing | Status | ||||
2 | 01-Jul | 534 | 100 | 75 | 50 | 25 | 100 | 75 | 50 | 25 | Shipped | ||||
3 | 03-Jul | 525 | 125 | 100 | 75 | 50 | 125 | 100 | 75 | 50 | In Process | ||||
4 | 05-Jul | 534 | 50 | 50 | 50 | 50 | 150 | 125 | 100 | 75 | In Process | ||||
5 | 07-Jul | 525 | 50 | 50 | 50 | 50 | 175 | 150 | 125 | 100 | In Process | ||||
6 | 09-Jul | 534 | 50 | 50 | 50 | 50 | 200 | 175 | 150 | 125 | Shipped | ||||
7 | 11-Jul | 534 | 25 | 25 | 25 | 25 | 225 | 200 | 175 | 150 | Shipped | ||||
Sheet1 |
Regards,
Humayun
EDIT:
I just realized that formulas will be applied after running the code. But what when the In Process order is shipped
So, at the end to the code if it's possible to look at the range & if any row containing formulas are shipped in Column M then it should convert those formulas to values
Last edited: