VBA How to multiple data based of identifcation # and date

FranticIntern

New Member
Joined
Jun 13, 2018
Messages
4
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID #[/TD]
[TD]date[/TD]
[TD]price[/TD]
[TD](after code)[/TD]
[TD]ID #[/TD]
[TD]Date[/TD]
[TD]Factor[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]1/1[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]001[/TD]
[TD]1/3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]1/2[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]002[/TD]
[TD]1/5[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]1/3[/TD]
[TD]10[/TD]
[TD]= 5 (Price) * 2(Factor)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]1/4[/TD]
[TD]10[/TD]
[TD]=5 (Price) * 2(Factor)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]1/5[/TD]
[TD]10[/TD]
[TD]= 5 (Price) * 2(Factor)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]...[/TD]
[TD]10[/TD]
[TD]= 5 (Price) * 2(Factor)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]1/10[/TD]
[TD]10[/TD]
[TD]= 5 (Price) * 2(Factor)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]1/1[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]1/2[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]1/3[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]1/4[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]1/5[/TD]
[TD]12[/TD]
[TD] = 4(price) * 3 (factor)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]1/6[/TD]
[TD]12[/TD]
[TD]= 4(price) * 3 (factor)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]...[/TD]
[TD]12[/TD]
[TD]= 4(price) * 3 (factor)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]1/10[/TD]
[TD]12[/TD]
[TD]= 4(price) * 3 (factor)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I am trying to code so that I can match up ID # and Dates and multiply the price with its factor all the way to its last date.

Much help is appreciated, if you have any questions please ask and I will get back to you promptly.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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