NEED HELP WITH SEEMINGLY IMPOSSIBLE REQUEST

NICKATWORK

New Member
Joined
Nov 5, 2004
Messages
44
I have a spreadsheet with part numbers in column A and Description for the part number in Column B

The problem I'm faced with is each part number has a different code that needs to be attached to the end of it to show color, and the color that code represents added to the beginning of the description in column B...

-25 for Grey
-03 for Almond
-49 for Burgandy
-36 for Blue Frost
-53 for Pine Forest
-11 for Black

So, esentially abc123 would become abc123-25 and grey added to the front of the description then abc123-03and almond added to the descrition, abc123-49 ect. ect.... moving on to the next part number after all codes and colors have been added to that part number.

Now the only way I can fathom doing this is to use a counter that loops four times on a single part number in row A, concatenating part number with the dash and code, and adding the color to the beginning of the description in Column B and pasting the result into sheet 2, before moving to the next part number.

Is this even possible or have I lost my mind??
If it is possible can someone please help me accomplish this?
 
For i = 1 To DataRange.Rows.Count
NewPartNo = DataRange.Cells(i, 1).Value & "-25"
Set NewPartNo = NewPartNo_Offset(1)
NewDesc = "Grey " & DataRange.Cells(i, 2).Value
Set NewDesc = NewDesc.Offset(1)
Set PriceRange = DataRange.Cells(i, 3).Value
Set PriceRange = PriceRange.Offset(1)

After the first part number runs through grey and it's pasted to the new sheet it stops right here on the highlighted line
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,215,562
Messages
6,125,546
Members
449,237
Latest member
Chase S

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