• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Pick a value from a table ....

David Evans

Active Member
OK Ladies and Gents - I need to pick a value from the UDF column that reflects the highest value in Rate having selected only those rows with an amount gretaer than zero ....

I've been trying to get sumproduct to produce an answer to no avail .....

The correct answer is UDF7, being the corresponding max rate for all amounts over 0

All help gratefully accepted as usual

D
 

Attachments

  • Chandoo Ninja test.xlsm
    13.1 KB · Views: 0
Hi David,
using Narayan Sir formula without index:
="UDF"&MATCH(MAX(IF(D[Amount]>0,D[[ Rate]])),D[[ Rate]],0)

"UDF" can also be removed:
=MATCH(MAX(IF(D[Amount]>0,D[[ Rate]])),D[[ Rate]],0)

you just need to format your cell as:
"UDF"#

Enter with CSE

Regards,
 
Gentlemen-
Many thanks for your help - I am getting ready to go to bed but will try out your ideas in the morning and I'm sure that they will be successful!

Thanks

D
 
OK - I could not sleep on it - both ideas work perfectly -many thanks - the UDF column will hold the text for a User Defined Function that will calculate a value we require - this was I could not clear without your help!

Sincere thanks!
D
 
Back
Top