Data in added columns getting scrambled upon "Refresh All" of external data

jphalverson

New Member
Joined
Oct 1, 2013
Messages
5
Hopefully I can make this clear enough.

I have a table that is refreshed, appended, and duplicates deleted from a text file and fills data in column A (SKU Number) and B (Quantity Available), and that is working fine.
I then added Column C (My Price) and entered my cost of each SKU.
If I sort the table by any column, everything stays as it should and My Cost moves with its' appropriate SKU.
If I then click "Refresh All", the query pulls in data from the text file just fine, but every value in My Cost (my manually added column) get randomly shuffled to different SKUs in Column A. The My Cost values aren't just staying in the same row with the wrong SKU, they are moving to totally different locations in the column.

Basic example-
Pre-refresh:
SKU Quanity My Cost (my manually added column)
1 1 $1
2 1 $2
3 3 $3
4 4 $4
5 5 $5

Post-refresh:
SKU Quanity My Cost (my manually added column)
1 1 $3
2 1 $5
3 3 $4
4 4 $1
5 5 $2


So, my real question is: Is it possible to add a column to a table, and have the manually entered data in that column "linked" permanently to the appropriate row after refreshing the data from the external source?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
You'd need a second table with say SKU and cost, with a VLOOKUP or similar to get that against your table through a formula.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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