Do a favour please. Its about if function
Closed
Ali
-
11 Jan 2011 à 07:45
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 19 Jan 2011 à 09:29
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 19 Jan 2011 à 09:29
Related:
- Do a favour please. Its about if function
- What is the function of a hard drive - Guide
- Network card function - Guide
- Mutator function c++ - Guide
- Vba find function - Guide
- Insert key function - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
19 Jan 2011 à 09:29
19 Jan 2011 à 09:29
you need to write a user defined function to handle that
Not sure if your if statement was correct, as B3>2000 appears before B3>6500.
Assuming you if statement is not correct, this is a sample function. you would call if like
=myLousyIF(b3)
Not sure if your if statement was correct, as B3>2000 appears before B3>6500.
Assuming you if statement is not correct, this is a sample function. you would call if like
=myLousyIF(b3)
Public Function myLousyIF(myCell As Range) As String
Select Case myCell.Value
Case Is > 7500
myLousyIF = "6.5%"
Case Is > 6500
myLousyIF = "5.5%"
Case Is > 5500
myLousyIF = "4.5%"
Case 4500
myLousyIF = "3.5%"
Case Is > 3500
myLousyIF = "2.5%"
Case Is > 3000
myLousyIF = "1.5%"
Case Is > 2500
myLousyIF = ".75%"
Case Is > 2000
myLousyIF = ".5%"
Case Else
myLousyIF = "0"
End Select
End Function