New column that is aligned to data

dbagnell

New Member
Joined
Dec 16, 2014
Messages
7
Hi all,

I'm having trouble with something - I'm new to Power Query and although I've done a search for what I'm looking for, I'm not sure I'm using the right terminology so I may have missed an answered thread.

I have query on a csv file that I'm connected to and I refresh the data daily. I have a new column in the second file that should be aliged with the original data, but on refresh it gets shuffled and mis-aligned.

i.e.
On original file:
[TABLE="width: 191"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Number[/TD]
[TD]Name[/TD]
[TD]Role[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Cindy[/TD]
[TD]ID[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Denise[/TD]
[TD]SPA[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Laurie[/TD]
[TD]Rec[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Gail[/TD]
[TD]Rec[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Adam[/TD]
[TD]Dir
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 191"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]On new file with power query:
[TABLE="width: 283"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Number[/TD]
[TD]Name[/TD]
[TD]Role[/TD]
[TD]Note[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Cindy[/TD]
[TD]ID[/TD]
[TD]Cindy is nice[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Denise[/TD]
[TD]SPA[/TD]
[TD]Denise is tall[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Laurie[/TD]
[TD]Rec[/TD]
[TD]Laurie is tallest[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Gail[/TD]
[TD]Rec[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Adam[/TD]
[TD]Dir[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

When I refresh the data, if anything has changed (which it always will), my notes column gets moved so that the "Cindy is nice" note ends up on the row by Laurie.

How do I get my new column (which is notes about the line item) to stay with the line item it's intended for?

Thanks!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
maybe try Merge these two tables by Number then Expand necessary columns only
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,185
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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