Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Need a LEN and/or CONCATENATE Guru

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Need a LEN and/or CONCATENATE Guru

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Need a LEN and/or CONCATENATE Guru

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Need a LEN and/or CONCATENATE Guru

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Need a LEN and/or CONCATENATE Guru

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Need a LEN and/or CONCATENATE Guru

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Need a LEN and/or CONCATENATE Guru

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Need a LEN and/or CONCATENATE Guru

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need A Guru Please! Click on Cell - Go there Communities Excel Worksheet Functions 2 October 7th 06 01:31 PM
Seeking help from a GURU usf97j4x4 Excel Worksheet Functions 5 January 11th 06 05:17 PM
I Need a math guru Adam Kroger Excel Discussion (Misc queries) 6 November 27th 05 06:08 PM
Simple selection, but hey, I'm no guru!! Director Excel Worksheet Functions 1 August 18th 05 01:56 PM
Cut and Paste Question for an Excel Guru K B via OfficeKB.com Excel Discussion (Misc queries) 2 July 13th 05 07:03 PM


All times are GMT +1. The time now is 06:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"