Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cbuck
 
Posts: n/a
Default sum column containing both text and numbers

I need a formula that will sum a column that contains both text and numbers.
The text and numbers appear in this column as the result of an if formula (if
value returned 0, "-", [value]). Can I sum a column containing mixed
information?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default sum column containing both text and numbers

Maybe

=SUM(IF(LEFT(A1:A6,1)="-",-MID(A1:A6,2,99),A1:A6))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"cbuck" wrote in message
...
I need a formula that will sum a column that contains both text and

numbers.
The text and numbers appear in this column as the result of an if formula

(if
value returned 0, "-", [value]). Can I sum a column containing mixed
information?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default sum column containing both text and numbers

Use the sum function. It will ignore text values and sum just the numbers.
If there are errors though, it will return the error value.
--
Kevin Vaughn


"cbuck" wrote:

I need a formula that will sum a column that contains both text and numbers.
The text and numbers appear in this column as the result of an if formula (if
value returned 0, "-", [value]). Can I sum a column containing mixed
information?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cbuck
 
Posts: n/a
Default sum column containing both text and numbers

You were right - I found that out right after I posted.

Thanks!

"Kevin Vaughn" wrote:

Use the sum function. It will ignore text values and sum just the numbers.
If there are errors though, it will return the error value.
--
Kevin Vaughn


"cbuck" wrote:

I need a formula that will sum a column that contains both text and numbers.
The text and numbers appear in this column as the result of an if formula (if
value returned 0, "-", [value]). Can I sum a column containing mixed
information?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default sum column containing both text and numbers

You're welcome. That frequently happens (where you figure out the answer
right after you post. Or you remember some more information that you should
have included in the post.)

--
Kevin Vaughn


"cbuck" wrote:

You were right - I found that out right after I posted.

Thanks!

"Kevin Vaughn" wrote:

Use the sum function. It will ignore text values and sum just the numbers.
If there are errors though, it will return the error value.
--
Kevin Vaughn


"cbuck" wrote:

I need a formula that will sum a column that contains both text and numbers.
The text and numbers appear in this column as the result of an if formula (if
value returned 0, "-", [value]). Can I sum a column containing mixed
information?

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
How to insert text in one column and populate numbers in another Alice Excel Worksheet Functions 0 March 28th 06 07:27 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
I NEED TO SUM NUMBERS ON A COLUMN THAT HAVE TEXT AND NUMBERS FORMULA Excel Worksheet Functions 4 February 23rd 05 09:19 PM
Sort or Filter option? Mcobra41 Excel Worksheet Functions 3 February 23rd 05 07:22 PM
Converting Numbers to Text properly Shirley Munro Excel Discussion (Misc queries) 1 February 16th 05 03:01 PM


All times are GMT +1. The time now is 07:42 AM.

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"