Convert Letter To Number

Jul 23, 2009

Is there simple function that anyone knows of (or has written) that will convert a letter to its alpha-numeric equivalent?

For instance, A = 1, B = 2, AA = 27, etc (a = 1, b = 2, aa = 27)

View 6 Replies


ADVERTISEMENT

Convert Column Letter To Number

Nov 22, 2005

I need to convert a column letter to a column number for the following line of code in my VBA application:

VB:
strAverageBaseFormula = "=AVERAGE(D" & Trim(Str(lngFirstRowOfIncrement + 1)) & ":K" & Trim(Str(lngFirstRowOfIncrement + 1)) & ")"

I am inserting a formula into a cell using VBA, but the problem is that I don't know the letter value of column "K" (used in the middle of the line); instead, I know it as column number 11. Is there a simple way to convert the column number 11 to the column letter "K"?

View 9 Replies View Related

Convert Column Letter To Number

Nov 13, 2006

Some bits of code I have learned use column numbers and some bits use column letters.

Can someone share a line or two that I could add to my macro that will convert the F representing column F into a 6, and vice versa, so that I can continue using my pre-existing bits?

View 9 Replies View Related

Convert Column Number To Letter

Jan 17, 2004

I can obtain the columns numbers but I cannot get the letters. Is there anyway to convert from a number to a letter?

eg. somefunction(1) gives me column(A) as an answer?

View 9 Replies View Related

Method To Convert Column Number To Letter

Sep 15, 2014

I wanted to know if there was a way to either make a variable hold a column letter or else automatically convert a column number to a letter. This would be for use in the Range property.

All I could find is some complicated technique requiring division by 26 that I will never remember let alone code quickly.

Or if you have a variable holding a column number, is the only way to use it with Cells?

View 5 Replies View Related

Dropdown Menu - Convert Letter To Number

Sep 4, 2013

I have a drop down menu using data validation and the values are B,C,D

I want to keep the letter in a cell, but make each one become number, so B=5, C=10, D=20

I have another dropo down menu that contains 6,10,16

What I require is that once the 2 drop down menus have 'values selected' I need to multiply the 2 cells together

so for example

If B and 6 was selected, I require the 3rd cell to be 5*6 so what is the formula?

View 1 Replies View Related

Convert Column Number To Letter From A Range Objec

Jul 7, 2009

Is there an easy way (without writing my own conversion function) to get the column letter from a range object, as opposed to the column number?

View 5 Replies View Related

Convert Lower Letter To Capital Letter Automatically

Mar 2, 2009

When I type a single lower case letter into a cell, what formula or conditional formatting should I use to always convert it to a capital letter automatically?

View 9 Replies View Related

Data Validation Format Letter Number Letter Number Etc.

Jul 11, 2009

I want to apply Data Validation to a cell, so that only the following combination of letters and numbers can be entered.

Letter Letter Number Number Number Number Number Number Letter.
e.g AB123456C.

View 14 Replies View Related

Convert Column Number To Column Letter

Nov 20, 2009

in a macro i have this: col=cell.column 'suppose col=16384. then i need to place in a cell this formula =(XFD2708*100/XFD2597)-100 so i'm looking for "something" that can convert 16384 in XFD.

View 2 Replies View Related

Convert Format To M Into Just Gives Me First Letter Of Month

Jan 20, 2009

How Do I Convert Date:

10/3/2008 into October
6/1/2008 into June
7/3/2008 into July

I have date 10/3/2008 in cell and if I convert format to M into Just gives me first letter of Month, so O, I want it to read October, etc.

View 2 Replies View Related

Convert Letter Grades To Numbers

Jun 21, 2007

a formula that would take letter grades (A, B, C, D, and E) and produce an average letter grade?

For example, a student gets a D on one assignment and a B on another. I want a formula that will produce "C".

View 3 Replies View Related

Convert First Letter Of String To Capital Without Altering Formatting

Nov 17, 2009

Convert the first letter of a string to a capital without altering the rest of the strings format.

example: the activecell contains the string a1st (lowercase a, superscript 1st)

how can i achieve this in VBA?

Additionally, is it also possible to convert all of a string to capitals except the superscript characters

View 9 Replies View Related

Remove Trailing Letter From Numbers & Convert To Positive / Negative

Feb 16, 2008

I use currency data pasted from legacy program that pastes dollar values followed by a C or D to represent debit and credits, ie -- 1,000,000.00C or 1,000,000.00D.

Is there some way to remove the letter and correctly format the value to a negative or positive number on a whole worksheet or column?

Currently I am doing this manually one cell at a time.

View 6 Replies View Related

Change Number To Letter And Remove Number From Data Displayed

Nov 5, 2013

I would like to change a number to a letter and then drop a digit from the end.

Say my data in A1 reads 81234568, and I would like it to display in cell A2 as h123456.

View 3 Replies View Related

Decrease Letter And Number Combination Code By Number

Dec 21, 2012

I have letter and number combination code in two collumns and they differ for 10.000 numbers:

BAM98314
BAM88314
BAM90000
BAM80000

As you can see the left code is for 10000 numbers higher. the letters are allways the same. In the event that this isn't so, if difference between codes in same row is more or less than 10000 numbers. I was thinking on making conditional formating so the cells with wrong difference would be marked red, but I do not know how to make formula for this difference.

View 2 Replies View Related

How To Translate Number Into Specific Letter Related To Number

Feb 3, 2014

How to translate a specific number into a specific letter related to the number itself.

I have lots of different numbers for example all going down a specific cell (These numbers I want to separate into 3 different catagories. The positive numbers I want to be calculated as the same Letter that is next to that row directly over to the left of that cell.

So if the letter

B / cell / cell / +9 / Then I want if its a positive number like +9 to answer in the formula with the same letter (B) listed to the right in the same row in a different cell of course

B / cell / cell / -6 / Then I want if its any negative number like -6 to answer in the formula as the opposite Letter of (P) listed to the right in the same row in a different cell of course

P / cell / cell / +17 / Then I want if its a positive number like +17 to answer in the formula as the same letter (P) listed to the right in the same row in a different cell of course

P / cell / cell / -3 / Then I want if its a negative number like -3 to answer in the formula as the opposite Letter of (B) listed to the right in the same row in a different cell of course

and thirdly if its a (0) zero and only (zero's) Then I want the answer to stay (0) zero.

The number can be any numbers it doesn't matter. Only distinction is that positive number of +1 and up repeat and stay the same letter that the cell on the far left is already stated.

and all the negative number of -1 amd below all reverse the letter to the opposite letter of (B to a P) or (P to a B) listed to the right in the same row in a different cell of course

and of course (0) zero would be listed as a positive number and only return a (0) zero as the result of the formula.

View 9 Replies View Related

Name Cells With Same Letter But Different Number?

Jun 7, 2009

Is there any way to name cells with same letter but different number?

e.g i need to name the first row A1 to A100.

View 8 Replies View Related

Auto Number With Letter

Dec 11, 2012

I need to make a series of numbers and letter auto fill in a spread sheet

Example
2650A
2650B
2650C

And so on.

View 3 Replies View Related

Counting Number Of Each Letter

Aug 14, 2013

I have a table like this.........

Item Code
Ice A
Ice A
Ice B
water D
water A
water C
water A
milk B
milk D
milk C
milk C
milk C
milk B

And I would like to count the number of each letter to look like........
_______ A B C D
Ice ___ 2 1 0 0
water _ 2 0 1 1
milk ___0 2 3 1

View 2 Replies View Related

Split Number And Letter?

Dec 19, 2011

I have records combined with letter in column A: number is always on left and letter always on right, such as 456UI, 4689746COMPREH. How can split the combination into number in column B and letter in column C?

View 2 Replies View Related

Calendar - Letter Next To Day Number

May 4, 2012

I made a calendar, and I need a letter next to the daynumber. How could I put a letter next to the number? The problem is that I have a formula for the daynumbers, how could I add the letter?

View 9 Replies View Related

Adding Plus 1 To Number With Letter In It?

Sep 7, 2013

I'm trying to add plus 1 to a cell from another cell but it doesn't work because the number starts with a letter. I do want to keep the letter in there for a reason so removing the letter to make it work is not what I want.

Example:

Code:
ThisWorkbook.Sheets("Invoice").Range("H5").Value = ActiveCell.Value + 1

Is it that I need to declare and set the ActiveCell value as a string or something?

View 2 Replies View Related

Display Letter Instead Of Number

Dec 13, 2013

The following displays a name and number as the Chart title with VBA...how do I change the code so that is it name plus letter...instead of being Group 1 , Group 2 etc..etc.. it will be Group A , Group B etc..

Code:
.ChartTitle.Text = "Group " & lng + 1

View 3 Replies View Related

Way To Get The Column Letter, Instead Of Number?

Nov 13, 2006

Is there a way to get the column Letter, instead of Number?

like in A1 Column() would equal 1 in B1 Column() would equal 2

I would like

in A1 Column() to equal A and in B1 Column() to equal B

View 9 Replies View Related

Number Of Letter In A Cell

Oct 14, 2008

I have a list of names and I need to know how many names are greater than 6 characters in length. What is the formula I need to enter?

View 9 Replies View Related

Column Letter Instead Of Number

Jul 26, 2006

is there a way to make the following code return the letter of the column instead of the number? currently if the 'String' value that is in 'ColumnFind' is in column B this code returns a value of 2. i Need the 'B' for later code to work.

ColumnLetter = ColumnFind.Column

View 5 Replies View Related

Number Of Occurrences Of Each Letter

May 26, 2007

I need to figure out the number of occurrance of a letter in a word written in a cell. For Example i am writing "pattern" in a Excel cell. I want to know the marco/vba code that will give me the number of occurrance of each letter. The output should be:

p=1
a=1
t=2
e=1
r=1
n=1

View 8 Replies View Related

If Cell Contains Letter And Number Formula?

Oct 4, 2012

I am trying to make a formula which will tell me if A1 is a postcode (a letter and a number e.g CV42 6AQ)

In the A column, it looks like this:

CV42 6AQ
FC45 D4D
West yorkshire
PR42 6RD

Etc.

i want it to identify all the postcodes, and NOT "West Yorkshire" because it does not contain a number.

View 3 Replies View Related

Sorting Number/letter Combos

Mar 11, 2009

I have a spreadsheet with information in columns a-x. In column A there are part numbers like: RH630-34, PH630-343, 6-255, 16-01, 72500, There are may combinations of just numbers, and numbers first letters second, and letter first number second.
All usually seperated by a hyphen. The entire spreadsheet will be sorted by Column A first.

I need to sort them so the order would be numbers first and combo with number letters next. finish product: 6-255, 16-01, 72500, PH630-343, RH630-34. Is this possible? I have seen other posts and suggesting putting spaces before the numbers. That seems to work but in the case of 6-138 and 6-1038 the 6-1038 is first

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved