[Solved] Novice Needing Help with Simple Formula

Discuss the spreadsheet application
Post Reply
fjwag3
Posts: 16
Joined: Fri Jul 06, 2018 10:17 pm

[Solved] Novice Needing Help with Simple Formula

Post by fjwag3 »

..... working w 2 cells. Call 'em D5, D6. The larger # can be in either. Need to subtract the smaller from the larger, with the difference right next to the larger # in cell E5/E6.



I've been using open office for a long time for just simple stuff and you could say I sorta wing it! I can easily get around this lil problem, it's just more work. :D
Last edited by fjwag3 on Mon Jul 09, 2018 1:21 am, edited 3 times in total.
Open Office 2.4 on Windows 7
FJCC
Moderator
Posts: 9280
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Novice Needing Help w Simple Formula.......

Post by FJCC »

In E5 you could have

Code: Select all

=IF(D5>D6;D5-D6;"")
and in E6

Code: Select all

=IF(D6 > D5;D6-D5;"")
Why do you need the answer to be in one of two possible cells? The formula

Code: Select all

=ABS(D5-D6)
would return the desired result
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
fjwag3
Posts: 16
Joined: Fri Jul 06, 2018 10:17 pm

Re: Novice Needing Help w Simple Formula.......

Post by fjwag3 »

=IF(D5>D6;D5-D6;"") for E5

=IF(D6 > D5;D6-D5;"") for E6


On the right trac, The number landed in the right spot, next to the larger number, but the subtraction is incorrect. Just shows 0.00

For your second solution.....yeah it has to be....I can easily do it manual, takes a lil longer and the possibility of a mistake.

=ABS(D5-D6) *Actually, can do it that way....when it is the wrong cell, I can just move it, at least the math is done.

So anybody else? What I am asking is not possible w OO? :D

Thanks for your response.
Open Office 2.4 on Windows 7
User avatar
RusselB
Moderator
Posts: 6646
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: Novice Needing Help w Simple Formula.......

Post by RusselB »

Please double check that the cells D5 and/or D6 are not formatted as text or that there is no ' in front of the number when you are looking at the formula bar (located near the top of your spreadsheet).
If you can confirm that neither of these is a possibility, then please upload your spreadsheet with some non-confidential dummy data.

Edit: For the ABS function to work as you are wanting, simply exchange the ABS formula for the subtraction parameter in the formulas that (should) be working.
Kind of redundant in my opinion, since you want the information in different cells.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
fjwag3
Posts: 16
Joined: Fri Jul 06, 2018 10:17 pm

Re: Novice Needing Help w Simple Formula.......

Post by fjwag3 »

RusselB wrote: Edit: For the ABS function to work as you are wanting, simply exchange the ABS formula for the subtraction parameter in the formulas that (should) be working.
Kind of redundant in my opinion, since you want the information in different cells.
Could you write that out please?

*Never mind and thanks....I got it. That first formula is correct, has some spaces in it and or I may have had a text problem in the cells.
Got it now.

Much appreciated


:super:
Open Office 2.4 on Windows 7
Post Reply