Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default TWO CUSTOM FUNCTIONS NOT BEING CONNECTED

Hi Friends,

I have formulated following two segments of codes as follows, i.e. XFF1 &
XFF2 which work fine separately, however, now that I want a single piece of
code to return a result of XFF1 to be divided by XFF2, a single code doesn't
seem to be working with a division operator " / ". What might be the reason???

Public Function XFF1(XF1, XF2, XF3, XF4, XF5)
XFF1 = Application.Caller.Parent.Evaluate( _
"SUMPRODUCT(--(MOD(COLUMN(" & XF4.Address & _
"),COLUMNS(" & XF3.Address & _
"))=MOD(COLUMN(" & XF1.Address & _
"),COLUMNS(" & XF3.Address & ")))," _
& XF4.Address & ",--(MOD(COLUMN(" & _
XF5.Address & "),COLUMNS(" & _
XF3.Address & "))=MOD(COLUMN(" & _
XF2.Address & "),COLUMNS(" & XF3.Address _
& ")))," & XF5.Address & ")")
End Function

AND

Public Function XFF2(XF1, XF3, XF4, XF5)
XFF2 = Application.Caller.Parent.Evaluate( _
"SUMPRODUCT(--(MOD(COLUMN(" & _
XF4.Address & "),COLUMNS(" & _
XF3.Address & "))=MOD(COLUMN(" & _
XF1.Address & "),COLUMNS(" & XF3.Address _
& ")))*--(" & XF5.Address & "0)," _
& XF4.Address & ")")
End Function

Furthermore, how can I call two different custom function, i.e. how can I
create a new function like XFF3 to call results of XFF1 and XFF2???

All your expertise shall be highly obliged.

Thanx in advance.
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
Custom Functions DTTODGG Excel Worksheet Functions 7 January 11th 08 07:37 PM
Custom Functions Sloth Excel Discussion (Misc queries) 5 July 25th 06 04:59 PM
need custom cut and paste functions ben New Users to Excel 0 January 6th 06 04:23 AM
Using custom functions within custom validation Neil Excel Discussion (Misc queries) 4 December 14th 05 10:40 PM
Custom Functions scott Excel Worksheet Functions 2 December 28th 04 12:23 AM


All times are GMT +1. The time now is 11:57 AM.

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"