Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BW BW is offline
external usenet poster
 
Posts: 49
Default Formula for summing addresses within a single cell

I need a formula that will sum the number of addresses listed in a cell. An
example of how they are entered is:

2550 Elm, 100 Main, 475 Maple, 702 Twin Oaks

There could be any number from 1 to 50 addresses in any given cell.
I'm using Excel 2003.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Formula for summing addresses within a single cell

BW wrote:
I need a formula that will sum the number of addresses listed in a cell. An
example of how they are entered is:

2550 Elm, 100 Main, 475 Maple, 702 Twin Oaks

There could be any number from 1 to 50 addresses in any given cell.
I'm using Excel 2003.


If it will suffice to count the number of commas plus 1 you can use this
formula:
=1+SUMPRODUCT(--(MID(A1,COLUMN(A:IV),1)=","))

Or this array* formula:
=1+SUM(IF(MID(A1,COLUMN(A:IV),1)=",",1))

*Commit the array formula by pressing Ctrl+Shift+Enter, do not just
press Enter or Tab.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Formula for summing addresses within a single cell

Hi,

Assuming that all addresses are separated by commas (and there are no other
commas), use the following. Cell B25 holds the addresses.

=(LEN(B25)-LEN(SUBSTITUTE(B25,",","")))+1

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"BW" wrote in message
...
I need a formula that will sum the number of addresses listed in a cell.
An
example of how they are entered is:

2550 Elm, 100 Main, 475 Maple, 702 Twin Oaks

There could be any number from 1 to 50 addresses in any given cell.
I'm using Excel 2003.


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
summing 2 to 8 separate numbers in a single cell Green Fox Excel Worksheet Functions 2 April 1st 09 04:10 PM
What formula will eliminate the cell with #N/A when summing? Nunzio Excel Worksheet Functions 2 August 12th 06 06:21 PM
How to Import multiple-line addresses from Word into single cell? Queen Mother Excel Worksheet Functions 0 June 21st 06 06:06 PM
How do I convert a single column of addresses into rows for export Benjy S Excel Discussion (Misc queries) 2 February 7th 06 12:39 PM
single cell formula Jc New Users to Excel 2 September 21st 05 05:44 PM


All times are GMT +1. The time now is 04:44 AM.

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

About Us

"It's about Microsoft Excel"