Re-arrange/Consolidate Data

KrisWain320

New Member
Joined
Feb 4, 2016
Messages
10
Hi all,

Need some help with some code or something at least.

I have two separate output files which have two very different formats.

Format 1:

Name X Y Z
R06A821AHE5286.553271507

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>


this continues down up to 500 different "features" with their co-ordinates.

The other file has a format like this:

R06A821AHEX5286.55
R06A821AHEY327
R06A821AHEZ1507

<colgroup><col><col><col></colgroup><tbody>
</tbody>

and comes in long list without any headers.

What i need is some form of code that will take the second format and make it match the first format.

The idea is i'm trying to comparing outputs from format 2 to what they should be in format 1 and highlight any differences between the X, Y and Z coordinate.

Ideally i would like a macro i run on the output file (format 2) that converts it to something similar to format 1. From here i can copy the data into the initial file (format 1) sort by alphabetical order and apply a conditional format so any difference in X, Y or Z are highlighted in red.

end example:
Name X Y Z
R06A821AHE5268.553271507(Orignal Format 1)
R06A821AHE5286.553271507(Format 2 After Change)
R06A821AHE5286.553271507(Formatting if the same)
R06A821AHE5268.653281506(Formatting if different)


<colgroup><col><col span="4"></colgroup><tbody>
</tbody>


Overall I need some form of macro or If statement that allows me to group all the data in format 2 to match that of format 1. From there i can try and create something that can compare the format 1 and format 2 results together.

Kind Regards
Kris
 

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
Try using a pivot table. It will allow you to put col 1 verticaly with col 2 horizontal and values below. Try a sample first.

As for code, not me I'm afraid. But someone will be along who can do that.
 
Upvote 0

Forum statistics

Threads
1,216,794
Messages
6,132,731
Members
449,755
Latest member
TBertot107

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