ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Subtracting A from B (https://www.excelbanter.com/excel-discussion-misc-queries/176707-subtracting-b.html)

Sibbs

Subtracting A from B
 
Hi guys, getting really frustrated with this problem

I only want to subtract A2 from A1 and put the diffrence in B2 then follow
the list down then have the total sum lost at the bottom of collumn B.

i.e
A2 from A1 = B2
A3 from A2 = B3
B4= Sum of B2 and B3


All I seem to get is

A B
1 50 -
2 49 1 (Sum(A1-A2))
3 49 Why do I get this?
4 0
5 0
6 50 Should be 1 not 50

Cheers in advance

FSt1

Subtracting A from B
 
hi
if your are using this formula....
=A1-A2 and coping down.....
look at A3. A3="" and nothing from 49 is 49.

Regards
FSt1

"Sibbs" wrote:

Hi guys, getting really frustrated with this problem

I only want to subtract A2 from A1 and put the diffrence in B2 then follow
the list down then have the total sum lost at the bottom of collumn B.

i.e
A2 from A1 = B2
A3 from A2 = B3
B4= Sum of B2 and B3


All I seem to get is

A B
1 50 -
2 49 1 (Sum(A1-A2))
3 49 Why do I get this?
4 0
5 0
6 50 Should be 1 not 50

Cheers in advance


Sandy Mann

Subtracting A from B
 
B2:

=IF(COUNT(A1:A2)=2,A1-A2,"")

and copy down.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Sibbs" wrote in message
...
Hi guys, getting really frustrated with this problem

I only want to subtract A2 from A1 and put the diffrence in B2 then follow
the list down then have the total sum lost at the bottom of collumn B.

i.e
A2 from A1 = B2
A3 from A2 = B3
B4= Sum of B2 and B3


All I seem to get is

A B
1 50 -
2 49 1 (Sum(A1-A2))
3 49 Why do I get this?
4 0
5 0
6 50 Should be 1 not 50

Cheers in advance




Sibbs

Subtracting A from B
 
I see now, cheers guys. Very Much appreciated.

"FSt1" wrote:

hi
if your are using this formula....
=A1-A2 and coping down.....
look at A3. A3="" and nothing from 49 is 49.

Regards
FSt1

"Sibbs" wrote:

Hi guys, getting really frustrated with this problem

I only want to subtract A2 from A1 and put the diffrence in B2 then follow
the list down then have the total sum lost at the bottom of collumn B.

i.e
A2 from A1 = B2
A3 from A2 = B3
B4= Sum of B2 and B3


All I seem to get is

A B
1 50 -
2 49 1 (Sum(A1-A2))
3 49 Why do I get this?
4 0
5 0
6 50 Should be 1 not 50

Cheers in advance


Bernard Liengme

Subtracting A from B
 
Firstly, you do not need to use SUM in every formula. Just =A1-A2 will do
the job

Secondly, if you copied the formula from B2 to B3 it becomes =A2-A3 and
since A3 is empty (treated as zero) you get 49.

best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Sibbs" wrote in message
...
Hi guys, getting really frustrated with this problem

I only want to subtract A2 from A1 and put the diffrence in B2 then follow
the list down then have the total sum lost at the bottom of collumn B.

i.e
A2 from A1 = B2
A3 from A2 = B3
B4= Sum of B2 and B3


All I seem to get is

A B
1 50 -
2 49 1 (Sum(A1-A2))
3 49 Why do I get this?
4 0
5 0
6 50 Should be 1 not 50

Cheers in advance




All times are GMT +1. The time now is 04:23 AM.

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