Drop List + Formula

C

Canon

Excel 2007
I am looking for help on the following;
If cell F26 = 0, then cell F25 should show 15%
If cell F26 = anything other than 0, I want to be able to select a
percentage amount from a drop down list.
 
D

Don Guillett

Right click sheet tab>view code>insert this

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$F$26" Then Exit Sub
If Target = 0 Then
Target.Offset(-1) = 0.05
Else
Target.Offset(-1).Validation _
.Add Type:=xlValidateList, _
Formula1:=".10%,.20%,.30%,.45%"
Target.Offset(-1).Select
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top