How can I format a column so that whenever I put a number in the cell, the number Starts with the letter A?? and will only recognise this format:
e.g.
A12345
A67890
and not
12345A
67890A
Thanks
Four answers:
Bobby
2011-03-23 08:48:55 UTC
What you need is a custom format. Select the cells you wish to format, then go to Format > Cells. Scroll to the bottom of the list where it says "custom" and in the text box where it says "Type:" put in the following:
"A"#
That will make it so that anytime you put a number into the cell, it will contain the value of the number but display a leading A. You can also do the format "A"00000 if you wish for there to always be at least 5 digits. This format will still allow more than 5 digits, but if less than 5 digits are entered it will add leading zeros. So input of 564 will turn into A00546.
You mention that you only want to recognize the special format, I'm not 100% sure what you mean but it's possible to add data validation to your spreadsheet. Select the cells and go to Data > Validation. Then set it to allow "Text Length" and you may set the minimum and maximum requirements to 5. This will only allow a 5 character input.
?
2011-03-23 08:42:56 UTC
if you want the cell contents to be the number and the cell appearance to begin with the letter A followed by the number
right click on the letter at the top of the column, choose Format Cells
on the number tab choose custom
in the field under Type: enter "A"0
(if you want to force it to show 5 digit numbers 67 = 00067, change it to "A"00000
click OK
as far as only recognizing that format ... if you only want 5 digit numbers that would be accomplished using Data> Data Validation and setting the allowed text length
hope that helps
steve_loir
2011-03-23 08:43:07 UTC
Highlight the column and right click.
Select Format Cells.
Click on Custom.
Click on 0 (zero, near the top). This puts 0 in the line above.
Put an A in front of the zero.
You will have to change the 0 if you want to use decimals.
Erika
2016-11-16 14:15:01 UTC
there is not any thank you to do a "sum" based on the layout of a cellular. you will might desire to re-evaluate the thank you to try this. yet, for the reason which you have apparently have been given some variety of "condition" that determines regardless of if or no longer the cellular is highlighted, you ought to apply the comparable condition in a SUMIF formula. the uncomplicated syntax of it is =SUMIF([variety of records], [standards], [variety TO SUM]) so permit's say your variety is A1 to B1000 and your standards is that any cellular in an superior than 0 and you want to sum up the values in column B. you ought to do =SUMIF(A1:B1000, ">0", B1:B1000) this might look at something in column A, and if it is extra advantageous than 0, sum the fee from column B
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.