VBA to sum and clear contents

Thomas_85

New Member
Joined
Jun 18, 2016
Messages
11
Hi Guys,

I was hopeful someone could help me out with a Macro I am trying to build.

Here is what I am trying to achieve (there are 3 main sections):

1)

  • Subtract "D5" from "H2" and put the answer in "I5"
  • .....Then add "I5" with "J5" and put the answer in "K7"
  • .....Then take the final answer in "K7" and put it into "D7"
2)
  • Clear contents of "H5" and "J5"
3)
  • Update the date in cell "B3"

(And I need to do this in 1000 rows of data)

Any ideas guys? I have pasted the data below and would really appreciate any help (I need it! :eeek::confused:)



A B C D E F G H I J K
[TABLE="width: 1038"]
<colgroup><col><col><col><col><col><col><col><col><col span="2"><col></colgroup><tbody>[TR]
[TD]1
2
3 Last updated[/TD]
[TD] 7/29/2016[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4 WHSE[/TD]
[TD]PART NUMBER[/TD]
[TD]PART DESCRIPTION[/TD]
[TD]Quanity on Hand[/TD]
[TD]BINS[/TD]
[TD]MIN[/TD]
[TD]MAX[/TD]
[TD]Used[/TD]
[TD]Total[/TD]
[TD]Received[/TD]
[TD]Grd. Total [/TD]
[/TR]
[TR]
[TD]5 RRR4[/TD]
[TD]103815001[/TD]
[TD]STRIP, PRESSER 10X86[/TD]
[TD]4[/TD]
[TD]1L01[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]6 RRR4[/TD]
[TD]205629011[/TD]
[TD]STRIP (5P-88 MM FOIL)[/TD]
[TD]1[/TD]
[TD]1L01[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD] [/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
For some reason the column letters all moved over to the left hand side when I inputted them into the thread, I apologize. I'm working with columns "A:K"
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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