Formulas / or VBA codes .

moizesdarius

New Member
Joined
Dec 17, 2018
Messages
1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Doc Date[/TD]
[TD]Amount[/TD]
[TD]Currency[/TD]
[TD]Profit Center[/TD]
[/TR]
[TR]
[TD][TABLE="width: 75"]
<tbody>[TR]
[TD="align: right"]11/8/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/8/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/8/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/9/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/9/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/9/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/8/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/8/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/8/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/9/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/9/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/9/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/8/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/8/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/9/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11/9/2018[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 132"]
<tbody>[TR]
[TD="align: right"]34,221.57[/TD]
[/TR]
[TR]
[TD="align: right"]14,278.86[/TD]
[/TR]
[TR]
[TD="align: right"]4,330.33[/TD]
[/TR]
[TR]
[TD="align: right"]19,126.05[/TD]
[/TR]
[TR]
[TD="align: right"]13,278.90[/TD]
[/TR]
[TR]
[TD="align: right"]2,668.19[/TD]
[/TR]
[TR]
[TD="align: right"]23,787.76[/TD]
[/TR]
[TR]
[TD="align: right"]9,216.01[/TD]
[/TR]
[TR]
[TD="align: right"]2,635.83[/TD]
[/TR]
[TR]
[TD="align: right"]43,584.87[/TD]
[/TR]
[TR]
[TD="align: right"]4,276.21[/TD]
[/TR]
[TR]
[TD="align: right"]4,982.49[/TD]
[/TR]
[TR]
[TD="align: right"]2,714.65[/TD]
[/TR]
[TR]
[TD="align: right"]355.36[/TD]
[/TR]
[TR]
[TD="align: right"]1,788.60[/TD]
[/TR]
[TR]
[TD="align: right"]610.75[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 39"]
<tbody>[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
[TR]
[TD]PHP[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 78"]
<tbody>[TR]
[TD]RS00000101[/TD]
[/TR]
[TR]
[TD]RS00000101[/TD]
[/TR]
[TR]
[TD]RS00000101[/TD]
[/TR]
[TR]
[TD]RS00000101[/TD]
[/TR]
[TR]
[TD]RS00000101[/TD]
[/TR]
[TR]
[TD]RS00000101[/TD]
[/TR]
[TR]
[TD]RS00000102[/TD]
[/TR]
[TR]
[TD]RS00000102[/TD]
[/TR]
[TR]
[TD]RS00000102[/TD]
[/TR]
[TR]
[TD]RS00000102[/TD]
[/TR]
[TR]
[TD]RS00000102[/TD]
[/TR]
[TR]
[TD]RS00000102[/TD]
[/TR]
[TR]
[TD]RS00000103[/TD]
[/TR]
[TR]
[TD]RS00000103[/TD]
[/TR]
[TR]
[TD]RS00000103[/TD]
[/TR]
[TR]
[TD]RS00000103[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Could someone give me formula/ VBA code on getting the sums depends if they have the same Profit Center and by
defining the date. Ex. 11/08/2018-11/09/2018 then check if the Profit Center are the same and giving the result of the total amount of each record. Thanks guys :)
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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