ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula Help (https://www.excelbanter.com/excel-discussion-misc-queries/151463-formula-help.html)

Lost in SC

Formula Help
 
I have a huge spreadsheet... I'm trying to do a formula that will multiply
two cells, however occasionlly there is text in a cell. Is there a formula
to ignore the text? This spreadsheet updates from another, so the chance of
me just not entering a formula into that cell would only work for a month.

Mike H

Formula Help
 
perhaps,

=IF(ISERROR(A1*B1),"",A1*B1)

Mike

"Lost in SC" wrote:

I have a huge spreadsheet... I'm trying to do a formula that will multiply
two cells, however occasionlly there is text in a cell. Is there a formula
to ignore the text? This spreadsheet updates from another, so the chance of
me just not entering a formula into that cell would only work for a month.


David Biddulph[_2_]

Formula Help
 
=IF(AND(ISNUMBER(A1),ISNUMBER(A2)),A1*A2,"")
or
=IF(OR(ISTEXT(A1),ISTEXT(A2)),"",A1*A2)

You'll see that these give different results for empty cells.
--
David Biddulph

"Lost in SC" <Lost in wrote in message
...
I have a huge spreadsheet... I'm trying to do a formula that will multiply
two cells, however occasionlly there is text in a cell. Is there a
formula
to ignore the text? This spreadsheet updates from another, so the chance
of
me just not entering a formula into that cell would only work for a month.





All times are GMT +1. The time now is 01:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com