Specify Maximum No. Of Letters In A Cell?
Nov 13, 2008I need to limit the number of letters that a person can write in a given cell.
View 5 RepliesI need to limit the number of letters that a person can write in a given cell.
View 5 RepliesThe content of Cell A1 looks like this attccggttaattcccccaaaattt
(only a,t,g,c -nucleotides). I want to know the max times C occurs in this cell and the position from the start. like that a, t, g.
here the answer is 5 times and distance is 13 from start.
I was hoping that my formula would give me the count number based on the Maximum time (latest time) and the Name field...My result is a 0 instead of 62 (the correct answer).
=SUM((Download!$H$2:$H$10=A4)*(Download!$D$2:$D$10=MAX(IF(Download!$H$2:$H$10=$A4,Download!$D$2:$D$1 0)))*Download!$I$2:$I$10)
Would a Index/Match/MAX function be more efficient?
Look in Column E and find the MAX value. Once you find the MAX value, (let's say E27) display the date that's in C27. I bet this is really easy but I've been screwing around with it for over a half hour and can't get the correct result.
View 2 Replies View RelatedI have two columns of data. The first column is the 'type' and the second column is the 'value'. I need to find the maximum 'value' for each individual 'type'
The 'types' are not necessarily next to each other and the data cannot be sorted to do so.
Example:
type value
A 15
B 6
A 21
C 7
B 13
I need to be able to say the MAX for 'A' is 21, the MAX for 'B' is 13 and the MAX for 'C' is 7.
i have a list of 2000 fields which have the same format IE "AB10014"
I need to remove the "AB" from every field and leave the #.
Besides putting a space and running text to columns I'm not sure how.
I have words in cell range (i.e. A1:A1000) and I want them to became upper letters.
Excel forum to EXCEL FORUM
I have a column of cells, some blank, some containing just numbers, some containing just letters, some containing numbers preceded by the the letter 'p'
E.g.
frt
34.2
36
p34.5
In the cells containing the number preceded by the 'p' - i would like to remove the 'p' leaving just the number, with all other cells remaining unchanged.
how can I seperate small and big letters from one collumn, example:
NAME
name
NAME
NAME
name
name
Is there a VBA command to get the letters, instead of the numbers, of the column of a selected cell?
I have to letter a list whihc means setting up a loop using character codes.
I may have to go into double letters so I am working on how I would set up the loop for if and when it gets past 90 and starts on double letters. so far the highest is the letter "U"
of course the easiest would be to pick up a column value as a letter
NT values do not get a number
A_____ _____NT###
B_____1_______C####
C_____2_______RMK###
D____ _______NT####
i am guessing the loop might involve some arithmetic test between the count and the character set 65-90. or maybe a mod thing.
In a cell, I would like to limit the maximum upper limit. For instance, in a cell with (=H23*0.06), that value ranges from perhaps 1.48 up to 5.93; however, I would like for the upper limit to stop at 3.33. Would that be conditional formatting? How can I stop the upper limit at 3.33?
View 2 Replies View RelatedI have a sheet which basically does this:
If A9 is blank, return 'A9', if not, return 'blank'. (to identify which cells are populated on another sheet)
It does this from A9 to X9.
Then in A10, if A9 says 'A9', just return 'A'.
So the end result has the entire A10 Row with all the letters that aren't blank. In my sheet, I have the following:
A10 = A
K10 = K
N10 = N
P10 = P
Q10 = Q
What I want is to have cell A11 to return (for example) = A, K, N, P, Q - as they are the only values found.
Is that possible without using a macro?
How do I do data validation/cell formatting so that only alphabetic characters can be entered and no numbers?
(We use the cell for First Name, Last Name, etc. and I don't want potential entries like Mr. 56565 55454 because the cells are formatted as text and allow alphabet and numbers.)
I tried =NOT(ISNUMBER(H6)) for Data Validation, but that didn't work.
??
VR/Lost
I have some code that loops through a sheet exporting each row to it's own file. The code below is the part that writes the file. The variable "i" is used to count which row the loop is on. I had planned to use the text in the first cell to identify the files, but the problem is that it contains some characters that cannot be used in Windows file names. So what I had hoped to accomplish was to just use the first 7 letters from each cell in column "a" in the filename. how to modify this to only take the first 7 letters from the cell instead of the entire cell contents? Set a = fs.CreateTextFile(DestFile & Cells(i, 1).Text, True)
View 2 Replies View RelatedI need to just highlight the maximum value in a column. This will be for several excel sheets within powerpoint, and preferably automatically updated?
Something along the lines of:
VB:
If
Ax = Max(A1:A3)
Then Ax = red
Else = white
End
I am looking for VBA that will add the value of the current active cell on the sheet to the value in cell F12. The maximum value of F12 cannot exceed 1000. So if the value in F12 = 950 and 100 is the value in the active cell the maximum value in F12 should show 1000, not 1050.
It should do this on the click of a button.
I have a worksheet that multiple users will be entering in data, this information is then being used to pull into a form located on a sepearte worksheet within the workbook. One of the cells in the input sheet has the potential to have more characters than excel will allow. It is my understanding the maximum number of characters per cell is 1,024.
What is the best way to setup my spreadsheet in the event the data contains more than 1,024 characters. The informatino going into the cell are legal descriptions of property so I want to be able to keep the description together in the final document in the other worksheet. Is there a way the user can input the entire decription in one cell, regardless of the character size, then have a formula to take the first 1,024 characters and put them in one cell, followed by another formula to put the next 1,024 characters in the next cell?
Then in my main document I would use the concatenate formual to combine these two cells into one.
I have a problem looking up the cell at which a maximum value in a curve is located. I have attached a workbook with an example of my problem (this is scaled down to limit the size of the attachment – my usual string of data is 5000 rows long). Column A is the time and all subsequent columns will contain force values (as shown in columns A and B) which create a similar sharp curve.
Ideally I need to be able to lookup the time point (column A) at which the maximum force value occurs for each curve or if this is not possible the row number in which the maximum force value occurs. I would like to be able to do this using a formula rather than a macro if that is possible?
I have tried using a number of excels lookup functions and read through the examples on the site but have had no success.
[TABLE]
item01/11/200702/11/200703/11/2007
a1710
b2611
c359
[/TABLE]
I have the above table. I would like to determine which is the item that has Maximum value on a particular date. example on 2/11/2007, the maximum value is 7, so the result should be item a. How can I achieve this by using a formula.
I am trying to use SUMPRODUCT on one of my excel files. the condition is that it will try to count all those cells that contain certain letters. i tried using this formula, =SUMPRODUCT(--('All Computers'!$A$2:$A$100000="USA*"),--('All Computers'!$E$2:$E$100000="June")), but I am getting a 0 value.
View 3 Replies View RelatedI am trying to come up with an excel shee which can track the progress of a student on practice exams. This exam only has multiple choice questions, with answer choices A,B,C,D or E.
What I am looking for
1) I want to restrict the cell data to A,B,C,D or E (both cases). Note that I am not looking for a drop down/combo box. It would take the user to use one or two mouse clicks to drop down the list, and I am not in favor of that.
2) I would like this validation/formula to be applied to all the cells in a particular column.
3) Nice-to-have.
If the user enters a lower case letter, then I would like to convert to upper case.
I have the following column:
A1 B1 B3
Ab123 1278 what i would like is if cell A2 start with AB then B1 and if not then nothing
AC125 1587
AF123 1365
AR125 1259
I would like another cell to check the cell where i have the two letters and the numbers. if the cell start with the number that i am intrested then to confirm it to me, or to give me a value from another cell.
I have a column where the data is listing the day of the week and time worked. What I need is to sort the column by the first four letters in cell I used the left(e5,4) to return the letters in a helper column but when I sort it still not in the Monday -Friday order. example:
View 2 Replies View RelatedI have what seems to be a pretty complicated situation involving random numbers and letters. I need to generate random sets of this combination of 2 letters follows by 6 numbers (ex. AB123456). I need the final product to be randomly generated and non-repeated.
I have played with various methods of producing random numbers and random letters both repeated and non-repeated. The closest I can get would be a cell of randomly generated letters adjacent to a cell of randomly generated numbers which so far has been useless.
VBA or excel functions are both okay.
I am trying to count the number of certain letters in a given cell. I figured out the formula when there is not a repeat of a targeted letter. For example, if multiple C's appear in cell A1 I will only get a value of 1 and not the exact number.
Here is my formula.
=COUNTIF(F12:Q12, "*C*")+COUNTIF(F12:Q12, "*P*")+COUNTIF(F12:Q12, "*E*")+COUNTIF(F12:Q12, "*L*")+COUNTIF(F12:Q12, "*O*")
I need to delete the last 3 character from a colon, but the problem is that the Colon will be deleted after.
Let me explain:
National
453386855
National
453386567
National
453388587
With the formula =LEFT(A2,LEN(A2)-3)
I will have this:
National
453386855
453386
National
453386567
453386
National
453388587
453388
But I need to delete the second colon, and I will have this:
National
#VALUE!
National
#VALUE!
National
#VALUE!
ii there a function that will count the number of different letters within a cell.
Example: If in cell A1 is LIVERPOOL then in cell B1 I want the number 7.
I have a sheet which in a certain cell (H4) must contain either an "I", "J", "R" or "S" in upper case.
The user fills in the sheet, and then a macro runs that does lots of things. I have been asked to put a bit of code at the start of the macros to validate the contents of cell H4.
However it doesnt seem to work, particularly the isempty statement
Sub SiteVal()
'
' SiteVal Macro
'
If ("H4") = "S" Then
Else
If ("H4") = "I" Then
Else
If ("H4") = "R" Then
Else
If ("H4") = "J" Then
Else
If IsEmpty("H4") = True Then
MsgBox "Site code must be input"
Exit Sub
Else
End If
End If
End If
End If
End If
'
End Sub
example.png
I am sure this is simple and easy to do, but i am having difficulties achieving this.
I want the cell to fill as it gets closer to 100%, I am sure its conditional formatting but I cant seem to get it to work.
I'd like to have the cell address returned along with a value when I use the
MAX function.