Macro categorizing names

hsingh2088

New Member
Joined
May 6, 2011
Messages
35
Hi,

I am trying to develop a spreadsheet with a supply chain focus. I have approx 16K rows and 14 categories. Basically, each cell has an A, B. C. D. E, F etc (Column A). I want A = Pencils, B = Pens, C = Paper in the cell next to it in the adjacent column, B to show the name (Pen, Pencil, Paper)

[TABLE="width: 500"]
<tbody>[TR]
[TD]Column 1[/TD]
[TD]Column 2[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]=[/TD]
[TD]Pen[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]=[/TD]
[TD]Pencil[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]=[/TD]
[TD]Paper[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]=[/TD]
[TD]Etc[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]=[/TD]
[TD]Etc[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

How do I develop a Macro to do this? I recorded one cell, and can't figure out the rest, here is the current formula

ActiveCell.FormulaR1C1 = "=IF(RC[-1]=""A"", ""FABRICATED EQUIP"", ""NIL"")"
Range("I4").Select
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I think it is unnecessary to create a macro because you can accomplish the same thing with VLOOKUP.

Does it have to be in a macro? or do you need help with VLOOKUP?
 
Upvote 0
Well the issue is I need to create a table so I can overlay a PowerPivot on it. If I can accomplish that using VLOOKUP in each cell, wouldn't it take more resources?
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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