i have this function i found/adapted on the internet:
![]()
Please Login or Register to view this content.
As a user function, this works perfectly as needed (by way of helper columns). I need to take this into another user function (to eliminate helper columns) and loop it through 50 sets of values. I keep returning #value errors when attempting to run my function as it stands. Here is my userfunction:
i chose cx490, cy490, cx500, cy500 as the input variables as they return a value in my worksheet, but as i said, only get #value errors when testing this DominantWavelength function. Can anybody see what error I am making? the only functions/subs i've ever been able to successfully call within another function/sub ive adapted from existing code so I don't fully have the fundamental understanding yet.![]()
Please Login or Register to view this content.
thank you for your time
Bookmarks