Change value to an alternative value
Closed
Meganlawrence
Posts
1
Registration date
Wednesday May 7, 2014
Status
Member
Last seen
May 7, 2014
-
May 7, 2014 at 09:48 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - May 8, 2014 at 11:22 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - May 8, 2014 at 11:22 AM
Related:
- Change value to an alternative value
- Change computer name cmd - Guide
- How to change free fire facebook account to google account - Guide
- Change lg tv name - Guide
- How to change language in kmplayer - Guide
- How to change dinosaur in chrome - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
May 8, 2014 at 11:22 AM
May 8, 2014 at 11:22 AM
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