Subtract Cell A1 from A2 and vice versa

fjwag3

New Member
Joined
Aug 16, 2020
Messages
8
Office Version
  1. 2007
New Excel user coming from open office.

Simple subtraction, eg, A1, A2, A2, A1. I need the solution in Cell B opposite the > number.
=IF(E7>E8;E7-E8;"") is the formula in Open Office. The double quotations do not get the job done in excel 2007.

=MAX(A1:A2)-MIN(A1:A2) this formula subtracts and places in the one cell, I need it either/or, adjacent to the > #.

9 3
6

6
9 3

Thanks in advance
FJW3

 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
i havent used open office but it looks like it uses semicolons instead of commas in formulas so replace those.
normally when typing out a formula it provides the proper syntax underneath.
excelhelp2.jpg
 
Upvote 0
NO, I jumped the GUN.... 122
110 12 WRONG

122 12
110 This is what I need.

How do you edit or delete a post in this forum is my next question, ha
 
Upvote 0
I need the solution next to the LARGER #, the larger # randomly will be in either cell.
So it could be

110
122 12
 
Upvote 0
i havent used open office but it looks like it uses semicolons instead of commas in formulas so replace those.
normally when typing out a formula it provides the proper syntax underneath.
View attachment 20503
You are CORRECT! Of course, I tried your solution LAST. But yes, substitute comma for semi-colon = WINNER.
 
Upvote 0
=IF(E7>E8;E7-E8;"")
You are CORRECT! Of course, I tried your solution LAST. But yes, substitute comma for semi-colon = WINNER.

=IF(E7>E8,E7-E8,"") Correct Formula, has to be in both adjacent cells, F7 and F8.
=IF(E8>E7,E8-E7,"")


122 12
110

110
122 12
 
Upvote 0

Forum statistics

Threads
1,215,436
Messages
6,124,869
Members
449,192
Latest member
MoonDancer

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top