C
cyndiwise notsowise
I need to create a list in a new spreadsheet of unique values by pulling the
data from another spreadsheet in Excel 2007.
The value I want to check against is a 6-digit number (SKU) in a column on
the existing spreadsheet. Most of the SKUs are unique. However, many of the
first 5 digits in the SKU are repeated in the column. What I need to do on
the new spreadsheet is have a column of unknown rows that contain only ONE
instance of the first 5 digits in the SKUs on the old spreadsheet.
Example:
Old spreadsheet, Column A:
130241
130242
130243
130244
130245
131241
New spreadsheet, Column A:
13024
13124
I hope this makes sense! I will also need to have a column on the new
spreadsheet that counts the number of occurences for the first 5 digits of
the SKU. But, I think that will just be a COUNTIF function. Using the above
example, the final result on the new spreadsheet would be:
ColA | ColB |
13024 | 5 |
13124 | 1 |
I just can't wrap my head around how to get Excel to look up the first
5-digits in a column, then only list it once on the new spreadsheet, even
though there may be several instances in the old spreadsheet. The purpose of
this is so I can copy and paste the values in the new spreadsheet as a new
..csv file for uploading to my database.
I hope someone can help me with this, otherwise I will be manually counting
through thousands of SKUs!
Thanks,
Cyndi
data from another spreadsheet in Excel 2007.
The value I want to check against is a 6-digit number (SKU) in a column on
the existing spreadsheet. Most of the SKUs are unique. However, many of the
first 5 digits in the SKU are repeated in the column. What I need to do on
the new spreadsheet is have a column of unknown rows that contain only ONE
instance of the first 5 digits in the SKUs on the old spreadsheet.
Example:
Old spreadsheet, Column A:
130241
130242
130243
130244
130245
131241
New spreadsheet, Column A:
13024
13124
I hope this makes sense! I will also need to have a column on the new
spreadsheet that counts the number of occurences for the first 5 digits of
the SKU. But, I think that will just be a COUNTIF function. Using the above
example, the final result on the new spreadsheet would be:
ColA | ColB |
13024 | 5 |
13124 | 1 |
I just can't wrap my head around how to get Excel to look up the first
5-digits in a column, then only list it once on the new spreadsheet, even
though there may be several instances in the old spreadsheet. The purpose of
this is so I can copy and paste the values in the new spreadsheet as a new
..csv file for uploading to my database.
I hope someone can help me with this, otherwise I will be manually counting
through thousands of SKUs!
Thanks,
Cyndi