Inserting Blank rows based on cells values - VBA code

JoeRooney

Board Regular
Joined
Nov 27, 2017
Messages
118
Hi,


I currently have a task where I need to calculate thedifference between two sets of data,

The problem is I want to break it down per policy.

For example one policy could have 3 inputs in one set ofdata but only one in the other.

A policy could also appear in one set of data but not theother.

At the minute I am inserting a blank row like the example belowto identify the differences. This is a very manual task and I am sure there isa better way to accomplish what I am doing.

I was wondering could someone help me with some code I coulduse or maybe guide me on the best way to approach this, maybe a pivot.

Any help is greatly appreciated.

Below are examples of my original data and my data followingmy input?

Thanks,


PolicyTypePolicy Type
AA € 1.00 LSR AALSR € 1.00
AA € 1.00 LSR BBPCP € 1.00
CC € 1.00 PCP CCPCP € 1.00
dd € 1.00 LSR ddLSR € 1.00
dd € 1.00 LSR eeB2B € 1.00
dd € 1.00 LSR ffLSR € 1.00
PolicyTypePolicy Type
AA € 1.00 LSR
AA € 1.00 LSR AALSR € 1.00
BBPCP € 1.00
CC € 1.00 PCP CCPCP € 1.00
dd € 1.00 LSR ddLSR € 1.00
dd € 1.00 LSR
dd € 1.00 LSR
ee € 1.00 B2B eeB2B € 1.00
ff € 1.00 LSR
gg € 2.00 LSR ggLSR € 1.00
<colgroup><col width="64" style="width: 48pt;" span="3"> <col width="64" style="width: 48pt;" span="3"> <tbody> </tbody>




 

Some videos you may like

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Watch MrExcel Video

Forum statistics

Threads
1,123,259
Messages
5,600,575
Members
414,390
Latest member
plimbu

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
Top