AllExperts > Excel 
Search      
Excel
Volunteer
Answers to thousands of questions
 Home · More Excel Questions · Answer Library  · Encyclopedia ·
More Excel Answers
Question Library

Ask a question about Excel
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Nathan Head
Expertise
Microsoft Excel questions related to advanced formulas, Pivot Tables, filters, forms, graphs, and just about anything else (EXCEPT Visual Basic Coding/Programming and Macros, I don't have any expertise there).

Experience
I have been using spreadsheets since Lotus 1-2-3 was released. As a CPA, I use spreadsheets every day at work.

Education/Credentials
CPA, Texas

 
   

You are here:  Experts > Computing/Technology > Microsoft Software > Excel > excel formula

Excel - excel formula


Expert: Nathan Head - 9/30/2009

Question
HELLO Sir,I have a list of numeric values in columnA and columnB.I need to compare the values of columnA to columnB and put the difference between them in columnC.

example:
col.A   col.B  col.C
3         4     1
3         3     0
6         7     1
9         8     1
5         5     0

Answer
solayman.inty:

I will presume the above values are in cells A1:B5.

Place this formula in cell C1:

=ABS(A1-B1)

Copy the formula down from C1 through C5.  ABS is the Excel function for absolute value (which appears to be what you need since it appears you need the difference with no regard to if the difference is positive or negative.

Ask a Question


 
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.