PC Review


Reply
Thread Tools Rate Thread

Difference between (subtracting) 2 columns

 
 
Niek Otten
Guest
Posts: n/a
 
      9th Dec 2005
Select column C1 and down, as far as the data goes.

Type =B1-A1, hold CTRL while you press ENTER

--
Kind regards,

Niek Otten

"Lior" <(E-Mail Removed)> wrote in message
news:O6R4h0L$(E-Mail Removed)...
> Hi .
>
> In Excel 2003 , I want to do the following thing :
>
> suppose we have column A with the content :
>
> 12
> 14
> 16
> 18
> 20
>
>
> and column B with the content :
>
> 20
> 40
> 60
> 80
> 100
>
>
> I want that column C (using a single formula) will have the content :
>
> 8
> 26
> 44
> 62
> 80
>
> ie. column C will be column B , minus column A (corresponding to the
> indexes of the cells : 20-12=8 , 40-14=26,
> 60-16=44,80-18=62,100-20=80) . How can I do that using a single formula
> ?
>
> Thanks in advance ,
> Lior .
>
>
>
>



 
Reply With Quote
 
 
 
 
Stephen
Guest
Posts: n/a
 
      9th Dec 2005
"Lior" <(E-Mail Removed)> wrote in message
news:O6R4h0L$(E-Mail Removed)...
> Hi .
>
> In Excel 2003 , I want to do the following thing :
>
> suppose we have column A with the content :
>
> 12
> 14
> 16
> 18
> 20
>
>
> and column B with the content :
>
> 20
> 40
> 60
> 80
> 100
>
>
> I want that column C (using a single formula) will have the content :
>
> 8
> 26
> 44
> 62
> 80
>
> ie. column C will be column B , minus column A (corresponding to the
> indexes of the cells : 20-12=8 , 40-14=26,
> 60-16=44,80-18=62,100-20=80) . How can I do that using a single formula
> ?
>
> Thanks in advance ,
> Lior .


You can't get 5 results from 1 formula. What you can do (and this may be
what you meant) is to get 5 results from 5 similar formulas.
Assuming your data are in A1:A5 and B1:B5, in C5 put the formula
=B1-A1.
Then copy this cell, select C2:C5 and paste. That will give you 5 similar
formulas because the cell references 'adjust' as they are pasted. Look at
each of the resulting formulas and you will see how this works.


 
Reply With Quote
 
Domenic
Guest
Posts: n/a
 
      9th Dec 2005
Enter the following formula in C1...

=B1-A1

Then you can either copy and paste the formula to your other cells or
you can move the cursor to lower right corner of C1, click the mouse,
and drag down the column.

Hope this helps!

In article <O6R4h0L$(E-Mail Removed)>, "Lior" <(E-Mail Removed)>
wrote:

> Hi .
>
> In Excel 2003 , I want to do the following thing :
>
> suppose we have column A with the content :
>
> 12
> 14
> 16
> 18
> 20
>
>
> and column B with the content :
>
> 20
> 40
> 60
> 80
> 100
>
>
> I want that column C (using a single formula) will have the content :
>
> 8
> 26
> 44
> 62
> 80
>
> ie. column C will be column B , minus column A (corresponding to the
> indexes of the cells : 20-12=8 , 40-14=26,
> 60-16=44,80-18=62,100-20=80) . How can I do that using a single formula ?
>
> Thanks in advance ,
> Lior .

 
Reply With Quote
 
Lior
Guest
Posts: n/a
 
      9th Dec 2005
Hi .

In Excel 2003 , I want to do the following thing :

suppose we have column A with the content :

12
14
16
18
20


and column B with the content :

20
40
60
80
100


I want that column C (using a single formula) will have the content :

8
26
44
62
80

ie. column C will be column B , minus column A (corresponding to the
indexes of the cells : 20-12=8 , 40-14=26,
60-16=44,80-18=62,100-20=80) . How can I do that using a single formula ?

Thanks in advance ,
Lior .




 
Reply With Quote
 
Lior
Guest
Posts: n/a
 
      9th Dec 2005
Hi , thank you all , it's OK .

Lior



"Domenic" <(E-Mail Removed)> wrote in message
news:domenic22-(E-Mail Removed)...
> Enter the following formula in C1...
>
> =B1-A1
>
> Then you can either copy and paste the formula to your other cells or
> you can move the cursor to lower right corner of C1, click the mouse,
> and drag down the column.
>
> Hope this helps!
>
> In article <O6R4h0L$(E-Mail Removed)>, "Lior" <(E-Mail Removed)>
> wrote:
>
>> Hi .
>>
>> In Excel 2003 , I want to do the following thing :
>>
>> suppose we have column A with the content :
>>
>> 12
>> 14
>> 16
>> 18
>> 20
>>
>>
>> and column B with the content :
>>
>> 20
>> 40
>> 60
>> 80
>> 100
>>
>>
>> I want that column C (using a single formula) will have the content :
>>
>> 8
>> 26
>> 44
>> 62
>> 80
>>
>> ie. column C will be column B , minus column A (corresponding to the
>> indexes of the cells : 20-12=8 , 40-14=26,
>> 60-16=44,80-18=62,100-20=80) . How can I do that using a single
>> formula ?
>>
>> Thanks in advance ,
>> Lior .



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
subtracting date and time to find the difference between the two fluff Microsoft Excel Misc 4 29th May 2009 03:05 AM
subtracting date and time to find the difference between the two fluff Microsoft Excel Misc 0 27th May 2009 11:00 PM
subtracting 2 dates and put the result in difference in months ? Susan Microsoft Excel Worksheet Functions 2 7th Mar 2009 09:34 PM
Subtracting first and last values in a row to find net difference Tropikat Microsoft Excel Worksheet Functions 10 7th Oct 2008 11:56 PM
subtracting 2 dates to get the difference Jennifer Connors Microsoft Access Reports 9 8th Apr 2004 11:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:19 PM.