Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Remove/Ignore Letters when Summing cells in a column.

=SUMPRODUCT(--SUBSTITUTE(SUBSTITUTE(A1:A6,"mi",""),"n/a",0))


"Matt" wrote:

10+12+20+25+35I have a column of data that has number, as well as letters. I
need to add the numbers to get the sum. The column might look like:

10mi
12mi
20mi
n/a
25mi
35mi

The letters are always the last two characters in the cell. Some cells have
"n/a" which can be 0.
So, in the above example, the sum I am looking for is 102 (10+12+20+0+25+35).
How can i write the formula so that it either ignores letters, or truncates
the cell 2 characters.

Thanks

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 all numeric values only in cells in a column Brad Excel Worksheet Functions 5 April 3rd 23 11:09 AM
Using SUM function to count hours BUT ignore Letters? Will H, England Excel Worksheet Functions 6 December 8th 08 02:01 PM
Remove Row numbers and Column letters from a specifice workbook ArcticWolf Excel Worksheet Functions 3 October 24th 08 01:17 PM
Remove dashes between letters and between letters and digits [email protected] Excel Worksheet Functions 7 March 5th 08 06:08 PM
How do i ignore letters in a formula? ineedhelp Excel Worksheet Functions 2 February 22nd 06 02:35 AM


All times are GMT +1. The time now is 02:43 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"