Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 310
Default How do I assign a number to a name in another column?

Hello,

I am new to Excel. I need help assigning numbers to a group of names. I
have 2500 names to assign...don't really want to do it manually!

Example

# Name
100 John Smith
100 John Smith
100 John Smith
101 Adam Suken
101 Adam Suken
101 Adam Suken

and so on....

Thanks!

  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: How do I assign a number to a name in another column?

To assign numbers to a group of names using the "COUNTIF" function in Excel:
  1. Make sure your data is organized in a table with headers. In your example, you have two columns: "Number" and "Name".
  2. In the first cell under the "Number" column (cell A2 in your example), enter the number you want to assign to the first name.
  3. In the second cell under the "Number" column (cell A3 in your example), enter the following formula:
    Formula:
    =IF(B3=B2,A2,A2+1
  4. Press enter to apply the formula to the cell.
  5. Click on the cell with the formula (cell A3 in your example) and drag the fill handle (the small square in the bottom right corner of the cell) down to the last row of your table.
  6. Release the mouse button to apply the formula to all the cells in the "Number" column.
  7. Your table should now have a unique number assigned to each name. If there are multiple instances of the same name, they will have the same number.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default How do I assign a number to a name in another column?

See
http://blog.contextures.com/archives...-excel-labels/

--
__________________________________
HTH

Bob

"Michelle" wrote in message
...
Hello,

I am new to Excel. I need help assigning numbers to a group of names. I
have 2500 names to assign...don't really want to do it manually!

Example

# Name
100 John Smith
100 John Smith
100 John Smith
101 Adam Suken
101 Adam Suken
101 Adam Suken

and so on....

Thanks!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default How do I assign a number to a name in another column?

See
http://blog.contextures.com/archives...-excel-labels/

--
__________________________________
HTH

Bob

"Michelle" wrote in message
...
Hello,

I am new to Excel. I need help assigning numbers to a group of names. I
have 2500 names to assign...don't really want to do it manually!

Example

# Name
100 John Smith
100 John Smith
100 John Smith
101 Adam Suken
101 Adam Suken
101 Adam Suken

and so on....

Thanks!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default How do I assign a number to a name in another column?

With names in column A, put the starting number in B1 and in B2 enter this
formula and pull down.

=IF(A2=A1,B1,B1+1)

You can then copy paste special values for the numbered column to get
rid of the formulas.

HTH
Regards,
Howard

"Michelle" wrote in message
...
Hello,

I am new to Excel. I need help assigning numbers to a group of names. I
have 2500 names to assign...don't really want to do it manually!

Example

# Name
100 John Smith
100 John Smith
100 John Smith
101 Adam Suken
101 Adam Suken
101 Adam Suken

and so on....

Thanks!





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default How do I assign a number to a name in another column?

With names in column A, put the starting number in B1 and in B2 enter this
formula and pull down.

=IF(A2=A1,B1,B1+1)

You can then copy paste special values for the numbered column to get
rid of the formulas.

HTH
Regards,
Howard

"Michelle" wrote in message
...
Hello,

I am new to Excel. I need help assigning numbers to a group of names. I
have 2500 names to assign...don't really want to do it manually!

Example

# Name
100 John Smith
100 John Smith
100 John Smith
101 Adam Suken
101 Adam Suken
101 Adam Suken

and so on....

Thanks!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assign a number to a word Noob McKnownowt Excel Worksheet Functions 5 September 16th 08 11:39 AM
Can I assign a number to a name and use the name in a sum? beeno Excel Discussion (Misc queries) 1 July 11th 06 10:47 PM
Assign one number to a number range Sue New Users to Excel 1 October 6th 05 01:21 AM
Assign a number to a name Sukismomma Excel Worksheet Functions 4 March 3rd 05 07:49 PM
looking to assign different numbers in column B to different words in column A mike Excel Worksheet Functions 2 January 13th 05 01:46 AM


All times are GMT +1. The time now is 10:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"