#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default numbering of rows

Hi I would like to identify rows with numbers depending on what text is in
the first column.

Lets say the first 6 rows contains the following

A
A
A
B
B
C
C
C
C
D

Then I would like in the next column to return 1 for A, 2 for B, 3 for C and
so on.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default numbering of rows

Probably best to have a 2 column table containg the letter in the left column
and the number in the right and your formula could then be:-

=VLOOKUP(A1,J$1:K$26,2,FALSE)

Drag this down as required

"FreddieP" wrote:

Hi I would like to identify rows with numbers depending on what text is in
the first column.

Lets say the first 6 rows contains the following

A
A
A
B
B
C
C
C
C
D

Then I would like in the next column to return 1 for A, 2 for B, 3 for C and
so on.

  #3   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default numbering of rows

several questions before a suggestion
is the reference letter the only thing in the Cell?
how many variations are there in column A?
If the answers are yes and less than 7, nested Ifs could do what you want
=if(A1="A",1,if(A1="B",2,...))
if the answers are yes and "A bunch"
seting up a lookup table would work
if the answer to the first question is "No"
then the response is that we need more information to give good suggestions,

"FreddieP" wrote:

Hi I would like to identify rows with numbers depending on what text is in
the first column.

Lets say the first 6 rows contains the following

A
A
A
B
B
C
C
C
C
D

Then I would like in the next column to return 1 for A, 2 for B, 3 for C and
so on.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default numbering of rows

Freddie,

Assuming the values you test are limited to letters of the alphabet in
uppercase, in B1 enter the formula:

=CODE(A1)-64

copy down as needed..

You could also use VLOOKUP. Search the Excel help for VLOOKUP to see an
explanation and example..


--
Hope that helps.

Vergel Adriano


"FreddieP" wrote:

Hi I would like to identify rows with numbers depending on what text is in
the first column.

Lets say the first 6 rows contains the following

A
A
A
B
B
C
C
C
C
D

Then I would like in the next column to return 1 for A, 2 for B, 3 for C and
so on.

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
Numbering Rows [email protected] Excel Discussion (Misc queries) 1 March 2nd 07 02:36 PM
Numbering Rows DaleH Excel Discussion (Misc queries) 1 March 2nd 07 01:43 PM
Numbering Rows DaleH Excel Discussion (Misc queries) 1 March 1st 07 05:20 PM
numbering rows olga Charts and Charting in Excel 1 February 19th 07 08:45 AM
How do I do numbering of rows in Excel when there are blank rows? V Excel Discussion (Misc queries) 1 April 3rd 06 11:24 AM


All times are GMT +1. The time now is 08:26 PM.

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

About Us

"It's about Microsoft Excel"