align two groups of data based on values in two columns

bmpreston

Board Regular
Joined
Jun 18, 2016
Messages
120
Office Version
  1. 365
Platform
  1. MacOS
Hello all,

I'd like to take two groups of data on the same sheet and align the data row by row. Essentially sort smallest to largest of each Row A, then reconcile it row by row:

Part numberQuantityPrice
1231$1.99
2342$2.99
3453$3.99
4564$4.99

<tbody>
</tbody>


Then the other data I'm comparing to:

Part NumberQuantityPrice
1232$1.99
2344$2.99
4564$4.99
5674$4.99

<tbody>
</tbody>

To look like this:

Part NumberQuantityPricePart NumberQuantityPrice
1231$1.991232$1.99
2342$2.992344$2.99
34533.99DOES NOT EXIST - LEFT BLANK
4564$4.994564$4.99
DOES NOT EXIST - LEFT BLANK5674$4.99

<tbody>
</tbody>



Basically Column A of the two small tables are my sorting columns, and I need to be able to compare if A is the same across both and insert the spaces on the left and right of the resultant table.

Once this is built, conditional formatting is easy to highlight that the quantity columns vary.

Thanks in advance
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
If the original data is stacked vertically on sheet1, I would...
1. Create a pivot table on a new sheet based on the part number column. You can filter this to ignore blanks and otherwise clean it up by hiding totals, etc....so it looks like a regular column.
2. From that sheet, you could put a series of vlookups or index-matches going across to create the layout you describe.

In other words, this appears to be a straghtforward vlookup answer, except for the different sections (e.g. 567), which the pivot table--in creating a unique list of all part numbers--should address.
 
Upvote 0

Forum statistics

Threads
1,214,426
Messages
6,119,411
Members
448,894
Latest member
spenstar

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