How do I create a function to search a range for a number and...

  • Thread starter Thread starter Guest
  • Start date Start date
With limited information, here is an example you can adjust:
Put some text in A1 to F1
Put some numbers in A2 to F2

Then in a cell somewhere put:
=INDEX($A$1:$F$1,MATCH(LARGE(A2:F2,2),A2:F2,))

This will look for the second largest number from row 2 and return the
adjacent text from row 1.

HTH
GerryK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top