Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50070

Macro help with combining data across 2 rows (and deleting non-required rows)

$
0
0
Hello,

I am trying to see if there is a macro that would help me fix the layout of the data (example file attached). The system (not mine) produces the info over 2 rows, and also out of line, but I need to have it in one row.

Currently I am just doing B5=A4, C5=B4 etc and copying the formulas down where required.

A Couple of issues though:

I only need the rows that show ‘accepted’ or ‘referred’ (and the corresponding rows beneath that).

Anything that is ‘new’, ‘rejected’ or ‘arbitrator’ I need deleted (and the corresponding row below this)

To compound this there are incidents in column A that have multiple rows (e.g. 66-68 & 73-76) so in these examples I currently manually delete everything but the most recent incident. Again is there a way for a macro to check if an incident (cell A4 is an example of an incident number) has multiple rows and keep the most recent row and delete the rows above it that relate to the same incident?

Any help greatly appreciated

Thanks

Innes
Attached Files

Viewing all articles
Browse latest Browse all 50070

Trending Articles