I have hit a wall in writing a portion of an Excel 2016 macro...
Haven't figured out how to write VBA for:
In ws Extracted1,
For every row, compare cell F to cell P,
If F = P, copy F to ws Sorted corresponding row of cell B
If F <> P, copy P to ws Sorted corresponding row of cell B
I have a similar concatenate snippet that works and loops through every row of ws Extracted1 but it does not require an IF statement as I need for the above scenario.
I know how to get the results by formula::
1) Insert one col (G)
2) In col G, type & fill-down the formula
=IF((F2=R2),F2,F2 & " / " & R2)
3) Copy & Paste Values from col G to col F
4) Delete col G
Any help would be greatly appreciated!
Haven't figured out how to write VBA for:
In ws Extracted1,
For every row, compare cell F to cell P,
If F = P, copy F to ws Sorted corresponding row of cell B
If F <> P, copy P to ws Sorted corresponding row of cell B
I have a similar concatenate snippet that works and loops through every row of ws Extracted1 but it does not require an IF statement as I need for the above scenario.
I know how to get the results by formula::
1) Insert one col (G)
2) In col G, type & fill-down the formula
=IF((F2=R2),F2,F2 & " / " & R2)
3) Copy & Paste Values from col G to col F
4) Delete col G
Any help would be greatly appreciated!