find duplicate item in same column then complete a function

ccollins917

New Member
Joined
Oct 8, 2015
Messages
7
I need a vba code for the following. If I have the below
Column W is a concatenate function.
1 Column V Column W
2 -51474.79
3 -51474.79
4 0.00 1401
5 0.00
6 0.00
7 0.00 1402
8 0.00
9 0.00
10 0.00 1403
11 -563619.13
12 -563619.13
13 0.00 1405
14 -604892.10
15 -604892.10
16 0.00 1408
17 40731.03
18 40731.03
19 0.00 1401
3182.94
0.00
0.00 1402
0.00
0.00
0.00 1403
444346.54
444346.54
0.00 1405
486471.66
486471.66
0.00 1408
1299.86
1299.86

For r=2 to lastRow
Look in column w (Cells(r,22) to match 1401 to cells in same column, cells(i,23) next item with ID 1401 to the next match, then add both to offset cells(I,-1). End result: Cells(4,lastRow-1)51474.79(cells(3,22))+40731.03(Cells(17,22))= -10743.76 (Cells(4,22))
 
ccollins917,

I do not understand what you are trying to accomplish.

Click on the Reply to Thread button, and just put the word BUMP in the thread. Then, click on the Post Quick Reply button, and someone else will assist you.
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,216,095
Messages
6,128,795
Members
449,468
Latest member
AGreen17

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