Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sally
 
Posts: n/a
Default Can a calculation ignore text if it occurs in formula's cell range

I have formula strings that include cells that can contain numbers or text.
Can I (easily) create calculations that ingnore text occurances rather than
returning a '#VALUE!'
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sloth
 
Posts: n/a
Default Can a calculation ignore text if it occurs in formula's cell range

You have a couple of options. You could use the sum function.
=SUM(A1)
it will return 0, if the cell is text.

There may be other workarounds depending on the formula you want, and
depending on what you mean by "ignore". Post some of them and it might help
us understand a little better.

"Sally" wrote:

I have formula strings that include cells that can contain numbers or text.
Can I (easily) create calculations that ingnore text occurances rather than
returning a '#VALUE!'

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
B. R.Ramachandran
 
Posts: n/a
Default Can a calculation ignore text if it occurs in formula's cell range

Hi,

If your formula references only one column (which may contain numbers or
text), say A2:A101, you can use the formula (and drag it down to the last row)

=IF(ISNUMBER(A2),your formula,"")

If your formula references more than one column, use

=IF(ISERROR(your formula),"",your formula)

Regards,
B. R. Ramachandran


"Sally" wrote:

I have formula strings that include cells that can contain numbers or text.
Can I (easily) create calculations that ingnore text occurances rather than
returning a '#VALUE!'

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
Adding Cell Range with Text JohnHill Excel Worksheet Functions 2 August 1st 05 03:30 AM
macro help thephoenix12 Excel Discussion (Misc queries) 4 July 15th 05 05:57 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Can I use formulas that return cell range ref. in charts X series cwilliams Charts and Charting in Excel 4 June 3rd 05 03:08 PM
How do I use text in a cell as a range name in a formula Kiwi Excel Discussion (Misc queries) 2 April 11th 05 04:17 AM


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