LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default Function VBA - 3 variables

Hi Helen,
It doesn't work. But still thanks for reply.
Elton

"helene and gabor" wrote:

Hello Elton,

=CHOOSE(BIN2DEC( --(M10L10)& --(L10K10))+1,"ALL UP","K cross L down","K
cross L up","ALL DOWN")

Best Regards,

Gabor Sebo





"Elton Law" wrote in message
...
Dear expert,
I am not good at function VBA, but I know that can help me to save a lot
of
memory.

Say a cell in K10, L10 and M10
Contain figures 7,8,10

How can I write a function say in J10 type =cross(K10,L10,M10)
Outcome can be 4.
If And(M10L10, L10K10) = Show "All DOWN"
If And(K10L10, L10M10) = Show "All UP"
If And(K10L10, L10<M10) = Show "K cross L UP"
If And(K10<L10, L10M10) = Show "K cross L down"

Now I have a lengthy function in J10 which is going to copy from J10 to
J32000

=IF(AND(K10L10,L10M10),"All up",IF(AND(K10L10,M10L10),"K cross L
Up",IF(AND(M10L10,L10K10),"All down",IF(AND(L10K10,L10M10),"K cross
down",""))))

I am sure using function VBA rather than full if function command can save
a
lot of memory.
Hope dear expert can help.

Regards,
Elton


 
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
using =IF function with 12 variables swell estimator[_2_] Excel Discussion (Misc queries) 4 September 8th 08 12:09 AM
DDE function with variables Toledo Excel Worksheet Functions 0 November 30th 07 06:12 AM
Using Variables in the sum() function Roy Korb Excel Programming 2 November 26th 06 12:07 PM
if function multiple variables cin Excel Worksheet Functions 2 September 8th 05 09:32 PM
Function variables Todd Huttenstine Excel Programming 7 April 28th 04 08:39 PM


All times are GMT +1. The time now is 06:20 PM.

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

About Us

"It's about Microsoft Excel"