#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Drop List + Formula

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Drop List + Formula

Right click sheet tabview codeinsert 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

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Canon" wrote in message
...
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.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
drop down list formula Eric Excel Worksheet Functions 10 January 13th 09 09:58 PM
Formula and Drop Down List unclebean Excel Discussion (Misc queries) 1 January 9th 09 01:21 PM
adding a formula to items in a drop down list tom Excel Discussion (Misc queries) 0 November 25th 08 02:23 PM
formula drop down list Moh New Users to Excel 1 June 15th 06 01:31 AM
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM


All times are GMT +1. The time now is 08:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"