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[/TD]
[TD]750
[/TD]
[TD]15
[/TD]
[TD]5
[/TD]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]3
[/TD]
[TD]SB[/TD]
[TD][/TD]
[TD]11 PKT
[/TD]
[TD]2 STRIP
[/TD]
[TD][/TD]
[TD]250
[/TD]
[TD]210
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]460
[/TD]
[TD]600
[/TD]
[TD]15
[/TD]
[TD]4
[/TD]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I want formula for C,D,E,F
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hello,

Could you please explicit your expected results ... in which cells ...
 
Upvote 0
required result for cell :- c,d,e,f

Hi, I think you were probably being asked to be a bit more descriptive than that, but here is an option you can try.


Excel 2013/2016
ABCDEFGHIJKLMNOP
1SR.PRODUCTBAGPKTSTRIPPCSQTY1QTY2QTY3QTY4QTY5TOTAL QTYBAG PCSPKT IN BAGSTRIP IN PKTPCS IN STRIP
21MD0193838024015020879896024410
32FR2509180300750421108175975015510
43SB0112025021046060015410
Sheet1
Cell Formulas
RangeFormula
C2=INT(L2/M2)
D2=INT(MOD(L2,M2)/(O2*P2))
E2=INT(INT(MOD(INT(MOD(L2,M2)),O2*P2))/P2)
F2=MOD(INT(MOD(INT(MOD(L2,M2)),O2*P2)),P2)
 
Upvote 0
but there is possible where is result is is zero there show blank

Hi, if it's only needed for display purposes you could simply format the cells that contain the formulas with a custom format of:

Code:
0;;
 
Upvote 0
Dear Sir

i didn't understand

I dont know formula for cell C

I USED FORMULA IN CELL D,E,F

D=TRIM(IF(L4>=N4,INT(L4/N4)&" PKT ",""))
E=IF(MOD(L4,N4)>=P4,INT(MOD(L4,N4)/P4)& " STRIP ","")
F=IF(MOD(L4,P4),INT(MOD(L4,P4))&" Pcs","")

please guide me formula for c
 
Upvote 0
Hi, you can use the formulas in post #4 and use custom formatting to change what is displayed.

For example -
- Select column C with your mouse and press CTRL+1 to open the format cells dialogue.
- On the "Number" tab choose "Custom" from the "Category" list - in the "Type:" text box enter below exactly as it is here.
Code:
0 "bag";;
- Press OK

Repeat for the other columns altering "bag" for the other suffixes.
 
Last edited:
Upvote 0
Dear Sir i want formula for cell C
i have formula only 3 cell wich is D,E,F
i dont know formula 4 cell only 3 cell i have formula
so i want formula for 1 cell more
 
Upvote 0

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

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