Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niel
 
Posts: n/a
Default Convert numbers 1,2,3,etc to A,B,C,etc.

I am trying to create a list of references in Column B based on values in
Column A. If the value in row 1 of Column A is not equal to zero I want it to
be "A", then if Row2 is not equal to zero I want it to be "B", if Row 3 is =
zero it must remain "B".
In other words it must only increment if the Row in Column A is not equal to
zero.
I manged to do that with numbers by adding 1 to the previous value if Column
A is not equal to zero, but I need it to be A,B,C not 1,2,3
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Convert numbers 1,2,3,etc to A,B,C,etc.

Hi Niel

Provided you could accept a space " " as opposed to null "" in the event
of A1 being zero, then in B1
=IF(A1=0," ","A")
and in B2
=IF(A2=0,B1,CHAR(MAX(64,CODE(B1))+1))
and copied down as far as required


--
Regards

Roger Govier


"Niel" wrote in message
...
I am trying to create a list of references in Column B based on values
in
Column A. If the value in row 1 of Column A is not equal to zero I
want it to
be "A", then if Row2 is not equal to zero I want it to be "B", if Row
3 is =
zero it must remain "B".
In other words it must only increment if the Row in Column A is not
equal to
zero.
I manged to do that with numbers by adding 1 to the previous value if
Column
A is not equal to zero, but I need it to be A,B,C not 1,2,3



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niel
 
Posts: n/a
Default Convert numbers 1,2,3,etc to A,B,C,etc.

Thanks Roger,

The CHAR and CODE functions is what I was looking for.
Works like a charm.

"Roger Govier" wrote:

Hi Niel

Provided you could accept a space " " as opposed to null "" in the event
of A1 being zero, then in B1
=IF(A1=0," ","A")
and in B2
=IF(A2=0,B1,CHAR(MAX(64,CODE(B1))+1))
and copied down as far as required


--
Regards

Roger Govier


"Niel" wrote in message
...
I am trying to create a list of references in Column B based on values
in
Column A. If the value in row 1 of Column A is not equal to zero I
want it to
be "A", then if Row2 is not equal to zero I want it to be "B", if Row
3 is =
zero it must remain "B".
In other words it must only increment if the Row in Column A is not
equal to
zero.
I manged to do that with numbers by adding 1 to the previous value if
Column
A is not equal to zero, but I need it to be A,B,C not 1,2,3




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
convert numbers to time ditchy Excel Discussion (Misc queries) 2 June 28th 06 06:18 AM
convert letters to numbers g75 Charts and Charting in Excel 9 February 3rd 06 04:33 PM
Convert numbers stored as text to numbers Excel 2000 Darlene Excel Discussion (Misc queries) 6 January 31st 06 08:04 PM
Auto convert an alphanumeric string (CIS9638S) to numbers only? Gary L Brown Excel Worksheet Functions 1 September 7th 05 01:17 AM
Is there a formula to convert numbers to written text in Excel? LZC Excel Worksheet Functions 3 November 27th 04 08:10 PM


All times are GMT +1. The time now is 09:13 PM.

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"