ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Non-signed Difference between 2 cells (https://www.excelbanter.com/excel-worksheet-functions/25329-non-signed-difference-between-2-cells.html)

cherft

Non-signed Difference between 2 cells
 
rather than having to code:
=IF(A1-B1<0,(A1-B1)*-1,(A1-B1))
or
applying special formating to the cell to suppress the "-" sign,

Surely there must be a worksheet built-in function to give me the difference
between two cells.

Can anyone help?
Thanks a mil
Cherft

arno

Hi cherft,
rather than having to code:
=IF(A1-B1<0,(A1-B1)*-1,(A1-B1))


=abs(a1-b1)

arno

JE McGimpsey

One way:

=ABS(A1-B1)

In article ,
cherft wrote:

rather than having to code:
=IF(A1-B1<0,(A1-B1)*-1,(A1-B1))
or
applying special formating to the cell to suppress the "-" sign,

Surely there must be a worksheet built-in function to give me the difference
between two cells.


Mangesh

=ABS(A1-B1)

- Mangesh



"cherft" wrote in message
...
rather than having to code:
=IF(A1-B1<0,(A1-B1)*-1,(A1-B1))
or
applying special formating to the cell to suppress the "-" sign,

Surely there must be a worksheet built-in function to give me the

difference
between two cells.

Can anyone help?
Thanks a mil
Cherft




cherft

Many thanks indeed - appreciated
regards
Cherft

"arno" wrote:

Hi cherft,
rather than having to code:
=IF(A1-B1<0,(A1-B1)*-1,(A1-B1))


=abs(a1-b1)

arno


cherft

Many thanks indeed - appreciated
regards
Cherft

"JE McGimpsey" wrote:

One way:

=ABS(A1-B1)

In article ,
cherft wrote:

rather than having to code:
=IF(A1-B1<0,(A1-B1)*-1,(A1-B1))
or
applying special formating to the cell to suppress the "-" sign,

Surely there must be a worksheet built-in function to give me the difference
between two cells.



cherft

Many thanks indeed - appreciated
regards
Cherft

"Mangesh" wrote:

=ABS(A1-B1)

- Mangesh



"cherft" wrote in message
...
rather than having to code:
=IF(A1-B1<0,(A1-B1)*-1,(A1-B1))
or
applying special formating to the cell to suppress the "-" sign,

Surely there must be a worksheet built-in function to give me the

difference
between two cells.

Can anyone help?
Thanks a mil
Cherft






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

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