Inverse Percentage in a cell

jpkreider

New Member
Joined
Sep 22, 2017
Messages
15
Hey All,

I just want a formula embedded in a cell that automatically inverses the percentage that I enter. I'm going to be inputting data from a source other than excel, but I want to show the opposite percentage. So say their data shows 25%, I want to manually enter that 25% into the spreadsheet, but I want it to show 75% in the cell that I enter 25% into. I hope that makes sense. Any help would be appreciated. Thanks!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi jpkreider

Is this what you want?

Cell A1 (or the cell reference where you 'manually enter that 25%')
25%

Cell B1 (or wherever you wish to show the inverse of the percentage entered in the reference above)
Code:
=1-A1

(formatted '0%')

Cheers

pvr928
 
Upvote 0
I just want to enter 25% into A1 and have a formula that will automatically change it to 75% in A1. Basically, without needing other cells to pull from. Possible?


Hi jpkreider

Is this what you want?

Cell A1 (or the cell reference where you 'manually enter that 25%')
25%

Cell B1 (or wherever you wish to show the inverse of the percentage entered in the reference above)
Code:
=1-A1

(formatted '0%')

Cheers

pvr928
 
Upvote 0
Hi jpkereider

No need to requote.

Place this in a Worksheet module:

Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target = Range("A1") Then
    Application.EnableEvents = False
    Target.Value2 = Format(1 - Target.Value2, "0%")
    Application.EnableEvents = True
Else
End If
End Sub

Change the reference "A1" to whatever you want it to be.

Cheers

pvr928
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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