Excel Comments - Max Length in 2003 - excel

Anybody know what the limit is for the comments on an Excel cell (2003)? I'm programatically filling this in and want to make sure that I don't exceed the limit.

This page list all the Excel specifications and limits.
Not sure about comments, but it seems cell data is limited to 32767 characters. Also not sure of the character encoding or if that matters.

Looked up the BIFF specification for NOTES (which are actually cell comments) and there is not a limit per se, only 2048 per NOTES record, but you can have as many of these as you like, they are marked as continuation records past the first one. With this in mind, it seems limitless.
However, to be safe, I'm cutting mine at 15,000 (as we should never need more than a 1000 for what we are doing).

I just tried to give it a try by putting large comment programatically.
And I ended with result : 22877 chars. However I'm not sure whether character encoding matters.

According to "Excel specifications and limits" the the max number of chars is 32767 (only 1024 display in a cell).
I suspect that's characters on the assumption that no character ever takes more than 2 bytes...

Related

Excel, get arround the limit of CountIf()

so I have an Excel Worksheet with the Mail-Addresses of all resposible persons for the specific items. Some people appear more than once, but when I try =COUNTIF(A2:A9999;A2) and then copy it down, I get the error #VALUE!.
I looked it up, and there is a character limit of 255. I used =LEN(A2) to find out how long the cells were, and they get up to a length of 1500 chars.
Is there still a way to get around that limit, or something else?
Thanks for the help.
Kind regards
Elias
You seem to have two problems: you are dragging down the formula F(A2:A9999,A2) (which causes the formula to modify into F(A3:A10000,A3), F(A4:A10001,A4), ... while you are interested in F(A2:A9999,Ax) for every x. As indicated by Solar Mike, you can solve this using F(A$2:A$9999,Ax).
Next you have the problem with the Countif() limitation. There already is the proposal to shorten your string, e.g. by using LEFT(range,225) but I believe the first thing you should be looking for, is the uniqueness of your data: you are saying that your data are e-mail addresses. Are those e-mail addresses of different companies (which would mean that it might be useful to check the RIGHT() part instead of the LEFT() part?
I would advise you to check those really large addresses (1500 characters long? I've never seen such a long address), try to shorten them and use your CountIf() function on those shortened e-mail addresses.

Filter that contains INC followed by a series of numbers

is it possible to custom filter in Excel so that I get the data that contain INC followed by a series of number? (numbers vary)
I would like to get data like:
Request raised (INC12460031)
email sent in order to set up SNOW ticket INC12168408
Excluding the following examples: INCorrect, INConvenience etc.
(...)37 hours are mentioned which seems to be incorrect.
Please accept our apologies for all the inconvenience caused.
You can achieve that with an Advanced Filter.
The formula in E2 excludes items where the character following "INC" isn't a number greater than 0. Observe that the created MidString has a length of only one character. You could increase that number even to the point of including the entire word. Such an increase would ensure that numbers starting with zero aren't excluded.

Max column ref in Excel (xlsx)

Does anyone know what the maximum alphabetic value of a column reference in MS Excel is (open xml format onwards)?
All attempts to search the web for this, just bring up maximum values that can go in the cells themselves, so I thought I'd try SO. This question must have been asked before, but I couldn't see an existing similar question, so apologies if this is a duplicate.
Found the answer ("XFD") buried in answers way down the list on different question...
https://stackoverflow.com/a/14780053/6002505
https://stackoverflow.com/a/29550239/6002505
The max numerical value is 16384 which should be "XFD" according to the answers above.

Why Maximum Field Length in Views Module(drupal) doesnt changes the view?

The "Trim this field to a maximum length" option is giving me some pretty unexpected and confusing results. I have decided I want my field length to be cut
off after 35 characters. However when I specify this amount in the "Maximum Length" text box and save the view, the field is completely cut off, everything
is gone.
So as a test I raised the limit to 100 characters, this gave me some of the field. However I don't know where Views is getting the 100 characters from?
What does it consider a character to be?
The next issue is that I have many fields in my grid (in a descending order), and the 100 characters limit I've set is behaving differently on each field.
I would expect all the fields to be the same length, however some are drastically shorter than others.
I can't get my head around this at all! Help?!
Can the field have html code? If so, it may examplain your issue.
This trim tool counts all characters, be it html code or the text to display.
Best option for you might be to mark the option below trim checkbox.
Remove HTML tags

Converting various file sizes to bytes

I have a column of "file sizes" that has been output poorly, as in it's not consistent. For example values may be, "4GB", "32 MB", "320 KB", "932 bytes", etc. I need to convert these all to a standard value so that I can add them up for a report.
Consider this approach
pick one display format. Perhaps choose bytes.
For each cell:
determine its scale. This would likely involve string parsing, looking for "ends with" some valid range of possibilities : "bytes", "kb", "mb", "gb", "kilobytes", "gigabytes". Convert to lower case first, to ensure sanity. Consider misspellings as well!
extract the number. Use a variation of this VBA numeric regex to extract out the numbers. Watch out for decimals!
your output will be (the number) * (the scale in bytes)
Here's a very unsophisticated answer - but it might make this a very quick fix for you, if exact byte counts are not all important. Just do a simple text search and replace.
Replace "KB" (and "kilobytes" and other variations) with "000", "MB" with "000000" and "GB" with "000000000". "bytes" you replace with "". Then convert the cell/column type to numeric.
It won't be as easy if the values are given with decimals ("4.32 MB"), but your examples should work fine.
I would say you have two options:
1: require that all this data be in units of bytes (probably not feasible if the data already exists)
2: use a regex to separate the number from the unit, then use a switch statement (or loop or whatever you like) to perform the correct multiplications to get the number in bytes (probably the easier of the two).
edit :
the regex would look something like this :
(\d*) *(.*)
This will capture the numbers and units separately and ignore any whitespace between the two (you will still need to trim the input to the regex, as preceding and proceeding whitespace can cause some grief).
Bytes, kilobytes, megabytes, etc. are all metric units. Just pick a standard unit for your report (say, megabytes), and multiply or divide values given in different units to get the values you need.

Resources