Change value to an alternative value
Closed
Meganlawrence
Posts
1
Registration date
Wednesday 7 May 2014
Status
Member
Last seen
7 May 2014
-
7 May 2014 à 21:48
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 8 May 2014 à 11:22
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 8 May 2014 à 11:22
Related:
- Change value to an alternative value
- Microsoft project alternative free - Guide
- How to change computer name - Guide
- How to change lg tv name - Guide
- How to change idm language - Guide
- How to change language in kmplayer - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
8 May 2014 à 11:22
8 May 2014 à 11:22
Hi Megan,
You can not put a value and a formula in a single cell.
For that we need to create a macro.
Copy the code below, right-click on the sheets tab and select View Code.
Paste the code in the big white field, which you can then close.
Back at Excel try entering the specified values in the specified range to see if it works as you foresaw.
Best regards,
Trowa
You can not put a value and a formula in a single cell.
For that we need to create a macro.
Copy the code below, right-click on the sheets tab and select View Code.
Paste the code in the big white field, which you can then close.
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("L4:L24")) Is Nothing Then Exit Sub
If Target.Value = 90 Then Target.Value = 100
If Target.Value = 80 Then Target.Value = 85
If Target.Value = 70 Then Target.Value = 60
End Sub
Back at Excel try entering the specified values in the specified range to see if it works as you foresaw.
Best regards,
Trowa