Making a sentence represent a percentage

Tantara

New Member
Joined
Dec 11, 2018
Messages
3
I have a cell with the value 125% in it, however I need to make the cell display the words "INCREASE BY 25%".

Example:
If cell A1 = 100, from a pull down menu in cell A2, I want the user to be able to select "INCREASE BY 25%". Having selected "INCREASE BY 25%", the value of cell A1 then needs to change from 100 to 125.

Sorry if this is basic stuff, but Google is letting me down with this one so I've turned to here for guidance.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
It will take VBA to do that in the same cell (in this case cell A1)
However, if you can use a different cell for the result you can use a formula. You didn't mention if there would be Decrease by choices though.


Excel 2010
AB
1100125
2Increase by 25%
Sheet1
Cell Formulas
RangeFormula
B1=A1*(1+(MID(A2,12,50)))
 
Upvote 0
Put your list in A2.
As mentioned by Scott Huish, only VBA could overwrite a cell with a value.
So here it is:right click sheet name, click view code and paste
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
  If (Target.Column = 1 And Target.Row = 2 And Target.Value = "INCREASE BY 25%") Then
    Range("A1").Value = Range("A1").Value * 1.25
  End If
End Sub
 
Last edited:
Upvote 0
... If the user is supposed to enter a second change of "INCREASE BY 25%", there wouldn't be a change.:stickouttounge:

Maybe a CASE SELECT would be better, depending on the number of choices, and some method of resetting the A2 cell (?)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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