ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Subtracting Text from Number (https://www.excelbanter.com/excel-worksheet-functions/144868-subtracting-text-number.html)

[email protected]

Subtracting Text from Number
 
I am working in a large spreadsheet and need to be able to subtract to
columns without adding any new columns or using subtotals. If I have words
and numbers in the columns, ex. "none", is there a function that will
eliminate the "value" error message when I subtract (ex. 9-none = value, but
i want none or any text to be viewed as zero)?

PCLIVE

Subtracting Text from Number
 
Something like this may work for you. This assumes B1 is being subtracted
from A1.

=IF(NOT(ISNUMBER(B1)),A1,A1-B1)

HTH,
Paul

" wrote in
message ...
I am working in a large spreadsheet and need to be able to subtract to
columns without adding any new columns or using subtotals. If I have
words
and numbers in the columns, ex. "none", is there a function that will
eliminate the "value" error message when I subtract (ex. 9-none = value,
but
i want none or any text to be viewed as zero)?




Peo Sjoblom

Subtracting Text from Number
 
=N(A1)-N(B1)



--
Regards,

Peo Sjoblom

" wrote in
message ...
I am working in a large spreadsheet and need to be able to subtract to
columns without adding any new columns or using subtotals. If I have
words
and numbers in the columns, ex. "none", is there a function that will
eliminate the "value" error message when I subtract (ex. 9-none = value,
but
i want none or any text to be viewed as zero)?




Toppers

Subtracting Text from Number
 
A1=Number
B1=Text

TRY:

=IF(ISNUMBER(B1),A1-B1,A1)

If either column can be text, then adapt the above

HTH

" wrote:

I am working in a large spreadsheet and need to be able to subtract to
columns without adding any new columns or using subtotals. If I have words
and numbers in the columns, ex. "none", is there a function that will
eliminate the "value" error message when I subtract (ex. 9-none = value, but
i want none or any text to be viewed as zero)?


Toppers

Subtracting Text from Number
 
.... and PLEASE only post on ONE forum to avoid people wasting time answering
postings which have been answered elsewhere.

" wrote:

I am working in a large spreadsheet and need to be able to subtract to
columns without adding any new columns or using subtotals. If I have words
and numbers in the columns, ex. "none", is there a function that will
eliminate the "value" error message when I subtract (ex. 9-none = value, but
i want none or any text to be viewed as zero)?



All times are GMT +1. The time now is 08:38 PM.

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