create an UDF for max T1 (1 Viewer)

btamsgn

Member
Local time
Tomorrow, 01:23
Joined
Nov 8, 2010
Messages
50
I want to create a user vba function according to the following rules:
Rule: 45-25-10-15 (cell B1: E1)
Where: T1 = 45, T2 = B1 + C1, T3 = C1 + D1, T4 = D1 + E1
T1 gradually increases until T4 <= 100
If T4 <= 100, stop and return about the big value get from T1
Cell G1=max T1
Refer to the attached file
Looking Forwarding to receiving from responses, thanks.
 

Attachments

  • Max T1.zip
    8.7 KB · Views: 230

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 02:23
Joined
May 7, 2009
Messages
19,229
do you need the listing.
here is a function without the listing.
 

Attachments

  • Max T1.zip
    12.7 KB · Views: 158

Pat Hartman

Super Moderator
Staff member
Local time
Today, 14:23
Joined
Feb 19, 2002
Messages
43,229
This is Access, not Excel. Access doesn't have cells. Please explain the formula using words so we can make sense of it.

Windows says the zip file is empty.
 

btamsgn

Member
Local time
Tomorrow, 01:23
Joined
Nov 8, 2010
Messages
50
This is Access, not Excel. Access doesn't have cells. Please explain the formula using words so we can make sense of it.

Windows says the zip file is empty.
I used excel to express my idea after that I use the function to apply in my file accdb
 

Mike Krailo

Well-known member
Local time
Today, 14:23
Joined
Mar 28, 2020
Messages
1,042
Windows says the zip file is empty.
7zip would not open it either, I had to use WinRar and then it extracted OK. Here is a view of the excel file so others can see what your talking about.

1647185954095.png
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 14:23
Joined
Feb 19, 2002
Messages
43,229
I guess arnel now has a job as your programmer:)
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 14:23
Joined
Feb 19, 2002
Messages
43,229
You've already got one programmer working for you. You don't need others to compete.
 

Users who are viewing this thread

Top Bottom