Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to sum the LEN function in columns of data. The data may be well
over 100 cells long. For example, for a column of 4 cells they may contain 45,1,21,25. The answer I want here is 7 (the total number of characters). The logical formula I would LIKE to use would be SUM(LEN(A1:A4)), but that does not work since LEN does not like ":". The other way I have tried is to CONCATENATE the cells, then use LEN. This works if I hold the CONTROL hold down while selecting each individual cell to get the formula LEN(CONCATENATE(A1,A2,A3,A4)), and gives me the desired result of 7. Did a mention my data may be hundreds of cells long? If I hold CONTROL down and scroll the length of the list, I get LEN(CONCATENATE(A1:A4)), and CONCATENATE does not like ":" either. Maybe another Data or Statistical formula will work? HELP!!! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Create a helper column which calculates the number of characters in each
cell, and then sum those numbers. Example: Assume you have a column of numbers, A1:A1000. Enter =LEN(A1) in cell B1 and filling down to B1000 will give you the number of characters in each cell from A1:A1000. Then =SUM(B1:B1000) gives you your answer. Dave -- A hint to posters: Specific, detailed questions are more likely to be answered than questions that provide no detail about your problem. "archsmooth" wrote: I am trying to sum the LEN function in columns of data. The data may be well over 100 cells long. For example, for a column of 4 cells they may contain 45,1,21,25. The answer I want here is 7 (the total number of characters). The logical formula I would LIKE to use would be SUM(LEN(A1:A4)), but that does not work since LEN does not like ":". The other way I have tried is to CONCATENATE the cells, then use LEN. This works if I hold the CONTROL hold down while selecting each individual cell to get the formula LEN(CONCATENATE(A1,A2,A3,A4)), and gives me the desired result of 7. Did a mention my data may be hundreds of cells long? If I hold CONTROL down and scroll the length of the list, I get LEN(CONCATENATE(A1:A4)), and CONCATENATE does not like ":" either. Maybe another Data or Statistical formula will work? HELP!!! |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Actually, a more efficient method than my earlier response is:
=SUMPRODUCT(LEN(A1:A1000)) Dave -- A hint to posters: Specific, detailed questions are more likely to be answered than questions that provide no detail about your problem. "archsmooth" wrote: I am trying to sum the LEN function in columns of data. The data may be well over 100 cells long. For example, for a column of 4 cells they may contain 45,1,21,25. The answer I want here is 7 (the total number of characters). The logical formula I would LIKE to use would be SUM(LEN(A1:A4)), but that does not work since LEN does not like ":". The other way I have tried is to CONCATENATE the cells, then use LEN. This works if I hold the CONTROL hold down while selecting each individual cell to get the formula LEN(CONCATENATE(A1,A2,A3,A4)), and gives me the desired result of 7. Did a mention my data may be hundreds of cells long? If I hold CONTROL down and scroll the length of the list, I get LEN(CONCATENATE(A1:A4)), and CONCATENATE does not like ":" either. Maybe another Data or Statistical formula will work? HELP!!! |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You may consider using a helper column.
Example: In B1, use a Len formula and copy down as needed. =LEN(A1) Then Sum from there. =SUM(B:B) HTH, Paul "archsmooth" wrote in message ... I am trying to sum the LEN function in columns of data. The data may be well over 100 cells long. For example, for a column of 4 cells they may contain 45,1,21,25. The answer I want here is 7 (the total number of characters). The logical formula I would LIKE to use would be SUM(LEN(A1:A4)), but that does not work since LEN does not like ":". The other way I have tried is to CONCATENATE the cells, then use LEN. This works if I hold the CONTROL hold down while selecting each individual cell to get the formula LEN(CONCATENATE(A1,A2,A3,A4)), and gives me the desired result of 7. Did a mention my data may be hundreds of cells long? If I hold CONTROL down and scroll the length of the list, I get LEN(CONCATENATE(A1:A4)), and CONCATENATE does not like ":" either. Maybe another Data or Statistical formula will work? HELP!!! |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you very much, Dave. I actually was already using your first method,
but having it in the next column was distracting from the raw data when I was presenting it to others, not to mention blowing up my worksheet that already had 10 columns of raw data. So I had moved the LEN function column to below my data A1:A1000, and did SUM(A1005:A2004), then boldened the key row. I still would have to keep answering questions like, "What is that data down there?". My next step was going to move my helper columns to a different worksheet. Anyway, your solution is very much appreciated. |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Just move your helper column way off to the right. You can also hide the
column. Right-click it and select Hide. Good luck. Paul "archsmooth" wrote in message ... Thank you very much, Dave. I actually was already using your first method, but having it in the next column was distracting from the raw data when I was presenting it to others, not to mention blowing up my worksheet that already had 10 columns of raw data. So I had moved the LEN function column to below my data A1:A1000, and did SUM(A1005:A2004), then boldened the key row. I still would have to keep answering questions like, "What is that data down there?". My next step was going to move my helper columns to a different worksheet. Anyway, your solution is very much appreciated. |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The SUMPRODUCT function perfect solution for my problem, but I had not used
HIDE before. Another tool in the bag that may be useful in the future. Thanks. |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
archsmooth wrote...
I am trying to sum the LEN function in columns of data. The data may be well over 100 cells long. For example, for a column of 4 cells they may contain 45,1,21,25. The answer I want here is 7 (the total number of characters). The logical formula I would LIKE to use would be SUM(LEN(A1:A4)), but that does not work since LEN does not like ":". . . . What version of Excel are you using? With the following in A1:A10, 1 10 1186 26 16 28 11 1 1 1 the formula =SUMPRODUCT(LEN(A1:A10)) returns the correct result 18 on my PC. LEN, like ALL other functions, has no syntactic trouble processing multiple cell range reference arguments. Are you certain there were no typos in your formula, perhaps using semicolon rather than colon? Anyway, if these were all positive integer values and you just can't get LEN to work, there's always =SUMPRODUCT(INT(LOG10(YourRange))+1) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need A Guru Please! Click on Cell - Go there | Excel Worksheet Functions | |||
Seeking help from a GURU | Excel Worksheet Functions | |||
I Need a math guru | Excel Discussion (Misc queries) | |||
Simple selection, but hey, I'm no guru!! | Excel Worksheet Functions | |||
Cut and Paste Question for an Excel Guru | Excel Discussion (Misc queries) |