Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have written two small VBA UDF's to solve a problem that I could not
solve through standard excel functions. I would love to have some guru feedback on speeding them up, as they are going to be used very heavily. Here is sample data, no macros so u can safely open with macros disabled (The spreadsheet has some comments to clarify what I am doing): http://s2.yousendit.com/d.aspx?id=B0...196A729CFE93FF And here is a text file containing the two functions: http://s11.yousendit.com/d.aspx?id=F...B0DD29262F7248 Thanks In Advance Orekin |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Orekin ,
I have written two small VBA UDF's to solve a problem that I could not solve through standard excel functions. Good News! these CAN simply be done in standard worksheetfunction.. it's no more then a multi column lookup.. enter in c2: =SUMPRODUCT(--($A2=$H$2:$H$21),$I$2:$I$21) copy it down the column.. and you're done :) of course you could make it nicer by adding some names... names define.. CNnrs = offset($h$1,1,0,counta($h:$h)-1,1) CNamt = offset(cnnrs,0,1) now in c2 = SUMPRODUCT(--(A2=cnnrs),cnamt) excel can be simple.. you just gotta learn how:) <vbg keepITcool < email : keepitcool chello nl (with @ and .) < homepage: http://members.chello.nl/keepitcool |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks!
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
UDF's | Excel Discussion (Misc queries) | |||
UDF's & puzzling recalculation behavior | Excel Worksheet Functions | |||
UDF's in Excel '07 | Setting up and Configuration of Excel | |||
select numbers from a list and add to optimise result | Excel Worksheet Functions | |||
UDF's using other UDF's | Excel Worksheet Functions |