Formula help

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,446
Office Version
  1. 2007
Platform
  1. Windows
I need a formula in A3 that will give me the different between 2 numbers BUT ONLY the 2 first digits of the millions.

A1 25,000,000
A2 15,000,000
A3 10

Thank you.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
A couple of options, depending on desired rounding.

=INT(A1-A2)/1000000

=INT(A1/100000) - INT(A2/100000)
 
Upvote 0
I need a formula in A3 that will give me the different between 2 numbers BUT ONLY the 2 first digits of the millions.

A1 25,000,000
A2 15,000,000
A3 10

Thank you.

Assuming that A1 and B2 both have to be >= 10^6...

A3:

=IF((A1>=10^6)*(A2>=10^6),TRUNC((A1-A2)/10^6),"")
 
Upvote 0
Thank you to the 3 of you I've got more than I asked.
Serge.
 
Upvote 0

Forum statistics

Threads
1,224,502
Messages
6,179,126
Members
452,890
Latest member
Nikhil Ramesh

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