ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   user defined function (https://www.excelbanter.com/excel-worksheet-functions/104544-user-defined-function.html)

delmac

user defined function
 
still struggling

Function Discount(quantity, price)

If quantity = 300 Then
Discount = quantity * price * 0.1
Else
Discount = 0
End If

End Function
-- I still cant find this function in the functions drop down box, is there
something else I have to do. thnaks
delmac

Duke Carey

user defined function
 
Well, the obvious question is "where do you have the code?"


"delmac" wrote:

still struggling

Function Discount(quantity, price)

If quantity = 300 Then
Discount = quantity * price * 0.1
Else
Discount = 0
End If

End Function
-- I still cant find this function in the functions drop down box, is there
something else I have to do. thnaks
delmac



All times are GMT +1. The time now is 02:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com