#### Formula for difference between numbers without + or-

```I'm fairly new to Excel. I want to create a formula to show the difference
between 2 numbers, in different columns, but without positive or negative
values.
eg. the difference between 1 and 7 is 6. The difference between 7 and 1 is 6.

I do NOT want to see the result as  -6 and 6.

Imagine the cells are A3 and B3, for these numbers.

How do I do this please?

```
 0
10/23/2007 10:56:00 AM
excel.newusers 15348 articles. 2 followers.

4 Replies
503 Views

Similar Articles

[PageSpeed] 44

```=ABS(A1-B1)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"ParvenuJohn" <ParvenuJohn@discussions.microsoft.com> wrote in message news:9A117DC6-AF31-4288-BC74-C18734D0C4AE@microsoft.com...
| I'm fairly new to Excel. I want to create a formula to show the difference
| between 2 numbers, in different columns, but without positive or negative
| values.
| eg. the difference between 1 and 7 is 6. The difference between 7 and 1 is 6.
|
| I do NOT want to see the result as  -6 and 6.
|
| Imagine the cells are A3 and B3, for these numbers.
|
| How do I do this please?
|

```
 0
nicolaus (2022)
10/23/2007 11:13:51 AM
```On Tue, 23 Oct 2007 03:56:00 -0700, ParvenuJohn
<ParvenuJohn@discussions.microsoft.com> wrote:

>I'm fairly new to Excel. I want to create a formula to show the difference
>between 2 numbers, in different columns, but without positive or negative
>values.
>eg. the difference between 1 and 7 is 6. The difference between 7 and 1 is 6.
>
>I do NOT want to see the result as  -6 and 6.
>
>Imagine the cells are A3 and B3, for these numbers.
>
>How do I do this please?

=abs(a1-a2)
--ron
```
 0
ronrosenfeld (3122)
10/23/2007 11:19:23 AM
```=ABS(A3-B3)

Regards,
Soundar.

"ParvenuJohn" wrote:

> I'm fairly new to Excel. I want to create a formula to show the difference
> between 2 numbers, in different columns, but without positive or negative
> values.
> eg. the difference between 1 and 7 is 6. The difference between 7 and 1 is 6.
>
> I do NOT want to see the result as  -6 and 6.
>
> Imagine the cells are A3 and B3, for these numbers.
>
> How do I do this please?
>
```
 0
Soundar (5)
10/23/2007 12:28:00 PM
```Thanks everyone - I think I now have the basic formula, which is "ABS" I will
try it.

Thanks again

ParvenuJohn

"Soundar" wrote:

> =ABS(A3-B3)
>
> Regards,
> Soundar.
>
> "ParvenuJohn" wrote:
>
> > I'm fairly new to Excel. I want to create a formula to show the difference
> > between 2 numbers, in different columns, but without positive or negative
> > values.
> > eg. the difference between 1 and 7 is 6. The difference between 7 and 1 is 6.
> >
> > I do NOT want to see the result as  -6 and 6.
> >
> > Imagine the cells are A3 and B3, for these numbers.
> >
> > How do I do this please?
> >
```
 0
10/23/2007 9:13:02 PM

Similar Artilces:

Can anyone please help with this formula. If Sheet1 Column A = nothing(blank) And Column B = \\\\\\CC\\\\\\ Then Sheet 2 B7 = SumTotal. As a regular formula would be nice or VB code Hi Richard you want nothing at all in the whole of column A in sheet 1? do you want every cell in column B of sheet 1 to have \\\\\\CC\\\\\\ or should this (can this) only appear in one cell? and what range are you summing on sheet 2 in cell B7? Cheers JulieD "Richard" <anonymous@discussions.microsoft.com> wrote in message news:82ce01c477e1\$77f0e740\$a301280a@phx.gbl... > Can anyone please ...

Appending or Up-dating a formula
I am using an =Ave function in a formula to average quite a few cell values together. I add new information all the time; sometimes 5 or 6 new cells at a time. How can I append or up-date my formula to include these new cells with out have to type the new cells into the formula? When I make the cell that has the formula in it active/edit, all of the cells that are referenced in the formula have a highlight around them. Is there a key or key combination I can press while clicking on the cells I want to add to the formula? Thanks, john Hi see your post in Excel.misc -- Regards Frank ...

Changing a range of an array in a SUMPRODUCT formula gives a #N/A error
I have a working SUMPRODUCT formula {=SUMPRODUCT((\$C\$4:\$C\$4341=z8)*(audittypefm1="Standard"))} that I need to change the 1st array to C5623. When I do I get a #N/A error. I've tried giving the range a name (empnofm2), and I've verified all the data in the C4:C5623 range is formated the same (general, it is all employee numbers from 2 to 5 digits long. I'm using a "trim all" macro which is working great. I am unable to determine what is causing the #N/A and how to fix it. Basically I copied an entire worksheet within the same workbook and changed the name, wh...

help with a formula #5
I have 98 sets of magazines each set has 12 in the set what formula can I use to get a total of issues in all sets have you tried 98*12 -- Don Guillett SalesAid Software dguillett1@austin.rr.com "Just Me" <no@isp.com> wrote in message news:eZ66ZEGHGHA.1192@TK2MSFTNGP11.phx.gbl... >I have 98 sets of magazines each set has 12 in the set > > what formula can I use to get a total of issues in all sets > =98*12 or =A1*A2 if the numbers are in A1 and A2 -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Just Me" <n...

Formula #29
Hi, What formula should I use if I want it to look at a specific cell and then work out the total number between two numbers. e.g. if cell H6 had 7-4 entered the number 9 would be returned. Thanks in advance I'm not sure how you got 9, but your life would be much easier if you used two separate cells and then subtracted the smaller from the larger (and then added one???). Boenerge wrote: > > Hi, > What formula should I use if I want it to look at a specific cell and then > work out the total number between two numbers. > e.g. if cell H6 had 7-4 entered the number 9 woul...

Can offset be used in this formula?
Can the offset be used in the below formula for the information in column "K"? In column L have the the following formula's L46 =MAX(\$I46*1000-\$K\$46*\$J46,0) L47 =MAX(\$I47*1000-\$K\$46*\$J47,0) .... L99 =MAX(\$I99*1000-\$K\$46*\$J99,0) What I'd like to do is to copy the fomula into columns M, N, O, ... M47 =MAX(\$I47*1000-\$K\$47*\$J47,0) M48 =MAX(\$I48*1000-\$K\$47*\$J48,0) M49 =MAX(\$I49*1000-\$K\$47*\$J49,0) .... N48 =MAX(\$I48*1000-\$K\$48*\$J48,0) N49 =MAX(\$I49*1000-\$K\$48*\$J49,0) .... O50 =MAX(\$I50*1000-\$K\$50*\$J50,0) O51 =MAX(\$I51*1000-\$K\$50*\$J51,0) .... How abou...

Can I Increase The Length Of The Serial Number?
Is it possible to increase the length of the serial number field? We use some very long serials and the software will not accept the whole of the serial number. Thanks. You can try testing on a demo database but I am pretty sure that RMS will not like your changes. I know from experience that if you did the same thing with the ILC or Description fields this will cause RMS to crash. Rob "El Preisdente" wrote: > Is it possible to increase the length of the serial number field? > > We use some very long serials and the software will not accept the whole of > the s...

I have a report that must be turned in the night before for tomorrow's date. Is ithere a date formula that will return tomorrow's date to a cell in Excel? One way: =TODAY() + 1 In article <668782AC-774A-475F-9821-8A4C3B14A983@microsoft.com>, "Shadyhosta" <Shadyhosta@discussions.microsoft.com> wrote: > I have a report that must be turned in the night before for tomorrow's date. > Is ithere a date formula that will return tomorrow's date to a cell in Excel? I assume that you want the date to remain static after entry. Easiest way, use 2...

Can someone give me an example how to append data without having to load the complete XML file. Is this possible? Jonathan "Jonathan Buckland" <jonathan@theinformationpeople.com> wrote in message news:94e0c304.0402200504.39458a35@posting.google.com... > Can someone give me an example how to append data without having to > load the complete XML file. The ability to append data to an XML file without processing the entire document greatly depends on the structure of the XML, and the place in the file where you want to append. As a simple example to get started with, co...

calculate per day usage with a number range
I have the check in date and the check out date for a large group. I would like to see how many rooms are used per day for the period. Column A = Check in date (ex: 2-feb) Column B = Check out date (ex: 10-feb) How can I tell how many rooms were used on 6-feb, how many on 7-feb, etc? Thanks so much for your help! Put the date of interest (e.g. 6-feb-2008) in D2 then in E2 use this formula =SUMPRODUCT((A\$2:A\$100<=D2)*(B\$2:B\$100>=D2)) You can copy the formula down to calculate for more date in column D "peabody" wrote: > I have the check in date and the check out dat...

To find out number of sundays and saturdays in january month
Hai all, How I can find out the number of saturdays and sundays in January For example in A1 and B1 cell represents Saturdays and Sundays. How I can find out the number of saturdays and sundays in that month and to write in corresponsing A2 and B2 column . Please help with thanks and regards Pol =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(DATE(2008,1,1)&":"&DATE(2008,1,31))),1)=1)) Would tell you the number of Sundays in January of 2008. =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(DATE(2008,1,1)&":"&DATE(2008,1,31))),1)=7)) Would tell you the number of Saturd...

Weekday formula
Can anyone help with the weekday formula. What I want to do is enter the date in say A1 11/20/2003 and have B return the answer of Thursday. Currently I use the weekday formula bu only returns the number of the day. Thanks in advance B ----------------------------------------------- ~~ Message posted from http://www.ExcelTip.com ~~View and post usenet messages directly from http://www.ExcelForum.com There are several ways to do this. One is to enter =A1 and format the cell with a custom number format of dddd. Another way is to use the function =TEXT(A1,"dddd"). -- Cordiall...

Count formula within a named range.
Hi, How do I change the following formula =SUMIF(\$F\$39:\$F\$79,"PW Shopfitters",\$D\$39:\$D\$79)/COUNTIF(\$F\$39:\$F\$79,"PW Shopfitters") to count within a named range (PW Shopfitters). Any help would be great. Cheers, Phil Hi A range name cannot have spaces, maybe that's your problem. Name your range PW_Shopfitters. Then replace your cell references with PW_Shopfitters, eg =Sumif(PW_Shopfitters,"PW Shopfitters",............ -- j.kasselman@atlantic.net.remove_2nd_at. Randburg, Gauteng, South Africa "PW11111" wrote: > > Hi, > &g...

add field to form from different table
I have a form - record source is t0103Issue.(see below for fields) I would like to add a text box with a field (LevelorAdj) from a different table(see below for LevelorAdj) Textbox is named LJ table t013IssueDesc (add LevelorAdj to form) IssueDescID IssueDesc LevelorAdj table t0103Issue (for form) IssueID RiskID IssueDescID How is this done? -- deb Deb, in the form's current event, add: LJ=dlookup("LevelorAdj","t013IssueDesc","IssueDescID = " & [IssueDescID]) UpRider "deb" <deb@discussions.microsoft.com> wrote in message news:A710...

Formula to return a formula
At least I think that's what I'm looking for. here's my situation: I've got a sheet where there is a variable (X) that changes depending on what row it is on. So I have a column (column c) that lists these variables (X is dependant on things from a different sheet). X is a muliplier that is utilized differently depending on the value of N. N is a Picklist selection and can change periodically. Or even be duplicated on more than one row. I have a vlookup that checks the value of N (column a) and needs to return a formula that has X applied if needed on the approp...

Random number generator expression used
My final year (Statistics degree) project is concerned with the PRNG in MS Excel. It was stated by the lecturer in Simulation Studies that this PRNG was no good for simulation purposes .. the cycle length is not long enough. So that I can test this statement I need to be able to run the in-built PRNG so that it repeats the sequence of generated random numbers. This cannot be done in situ as there are not enough cells available (max 16k ?). I would propose to run the PRNG as a VBA macro - or stand_alone in VB6 - but for that I need to obtain the mathematical expression that is used ...

Heading numbers in the left margin
Hi, I'm trying to create outline numbered headings, where the number is located in the left margin. I try to accomplish this using a negative value for "NumberPosition" on the ListTemplate. Initially, this works fine, but as soon as I click on the Heading's number, the whole paragraph, including the number, "jumps in" to the right so that the number is located exactly at the margin instead of to the left of it. I define my styles and ListTemplate in VBA, the relevant portion of which reads: With .ListTemplate.ListLevels(1) .NumberPo...

How to use a text formula as code formula
Hello. I have this formula loaded from a text field on a form: val([field10])+val([field20]) and I would like to use this as a code formula. I mean, if I use that in VBA code it works, but If I load from a text field it doesn't work. I need that my form use that formula stored in a text field to calculate values. Regards in advance, Marco responded to in another newsgroup. It's rarely necessary to post the same question to more than one group. If it is necessary, select all the relevant newsgroups in the "To:" or "Newsgroups:" field. That way, folks who...

Including a formula in a path name.
Dear MS, How about a new function for this one. I'm sure MANY users have the same problem as me. The research below seems quite comprehensive and has effectively come up against a brick wall. Thanks Peter Harlan Grove posted this UDF: http://www.google.com/groups?selm=hkQVb.2432%24_4.259%40www.newsranger.com Peter wrote: > > Very Helpful Papou - thank you! > Do you know of an additional / alternative method where you achieve the same tihing but are not required to have all the relevant work sheets open? > Many thanks > Peter > > "papou" wrote: > ...

requested files to be deleted do so without asking "are you sure..
When I request to delete a file in windows explorer or IE or Word or anywhere it deletes it without asking "are you sure". It has asked if I am sure for years until I reinstalling operating system. Now this function does not work. How do I activate this function? Using Windows XP. As always thank YOU. -- Gene On 2/14/2010 4:54 PM, Gene wrote: > When I request to delete a file in windows explorer or IE or Word or anywhere > it deletes it without asking "are you sure". > > It has asked if I am sure for years until I reinstalling operating...

FORMULA #14
What formula in access can do =COUNTIF(CAF!D:D,A3) Basicly I have 2 tables I want the 2nd table to count how many times a number is listed in the 1st table. I am trying to do this with a query and the count expression but keep getting errors. Dont bother with this one guys just figured it out AMDGUY [MCP] wrote: > What formula in access can do > =COUNTIF(CAF!D:D,A3) > > Basicly I have 2 tables > > I want the 2nd table to count how many times a number is listed in the > 1st table. I am trying to do this with a query and the count expression > but keep getting e...

Difference in Help buttons?
I use OL 2003. On the standard toolbar (Inbox view), there is a question mark. When it is clicked, it brings up a side panel with a field for a question. There is also a field for questions at the top right of the screen. If I put my question in each of these fields, they bring up different lists. For instance, typing in the word "Toolbars" brought up 20 entries on one and 30 entries on the other. Yet, they both seem to be going to Microsoft Online for their answers. Why is there a difference? Which blank has proven most productive to folks in this group? Thank you. ...

Logging email to a different IS
Using Exhange 2003. I have setup three IS's for different employees groups based on their importance (to me). Whoever can fire me or make my life miserable is in an IS called Priority One. Whoever else does a substantial amount of real work is in Priority Two. Whoever just uses the company email to swap jokes with their freinds goes in Priority Three. This way if the server ever hoses or whatever I can quickly restore the people who are the most important (to me) first. I want to log all messages that come into the server so that we have records for audits and such, so I have turne...

Genrating text and auto number
How to generate auto number but i want it to be combination with text Example L0001, THEN L0002 and so on..how? -- Message posted via http://www.accessmonster.com Emily, What does the 'L' stand for ? Will this field contain other series of numbers that start with some other letter but which must also start sequencing at 00001? By storing more than one piece of information in a single database field, you are violating the first normal form of database design. I would recommend you store the letter designator in a separate field. Assuming that you have other letters, that mu...

What does the \$ symbol mean in a formula?
What does the \$ symbol mean in a formula? example: =G8*(\$A\$14*2)*100 thanx The \$ is used for absolut referencing. For e.g lets take your formula =G8*(\$A\$14*2)*100 suppose you enter this formula in cell B2, now simply copy this formula one cell to the right (C2) by and one cell down (B3). C2: =H8*(\$A\$14*2)*100 B3: =G9*(\$A\$14*2)*100 So you see that The original G8 has changed, whereas \$A\$1 remains the same in both the new formulae because of the dollar signs. Mangesh "S" <S@discussions.microsoft.com> wrote in message news:D86597A4-C0A1-46AF-9DA6-FE06AB9C1FA0@mi...