Adding information to a column

BarbaraDH

New Member
Joined
Jan 29, 2004
Messages
3
I have 4 columns of information. At the row above column A is an identifying Name for that section of the spreadsheet. After every 100 or so rows there is a new identifying Name in column A. I want to insert that identifying number in a new column to the right of column A and have the number change everytime a new identifying Name appears in column A, so that I can sort by the part number
Example:

Salesclerk 1 = Identifying Number
Column A has part numbers for items sold
Column B is where I want to put Salesclerk 1 in each row until Salesclerk 2's sales start
Column C has the number of sales made of the part number that is listed in Column A.

Salesclerk 1
pn23456 32
pn49857 35
pn67899 46

Salesclerk 2
pn23456 37
pn49857 32
pn67899 41
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

just_jon

Legend
Joined
Sep 3, 2002
Messages
10,473
Getting ready to go for the evening, but does each PN row begin with "pn"?
 

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
Hi Barbara:

You Are Welcome -- and let us know if you need to simplify the formula or if you need to discuss any thing further on this!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,322
Messages
5,769,448
Members
425,547
Latest member
Iano

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
Top