Need to lookup a value, meet horizontal criteria, return header

laycenew

New Member
Joined
Aug 23, 2018
Messages
1
Hi, I'm trying to lookup a value in a named table (Zoo), then search horizontally for the first match or if there is no match, the next greater number, and return the header.

Values in the columns will always increase from left to right.

Example:
Sam
7
Result: monkey

Example:
Sue
9
Result: cat


dogcatbirdhorsemonkeylizard
bob2225812
joe127132021
sam1444811
joy5810101317
sue6999921

<tbody>
</tbody>











Can someone please provide a solution? ANY kind of solution or workaround is appreciated.

I've been able to Google my answers for years, but this is the first time I've ever had to ask for help! Thanks in advance...

Layce
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Supposing your table starts in A1 try =INDEX($B$1:$G$1,MATCH(TRUE,INDEX($B$2:$F$6,MATCH(K1,$A$2:$A$6,0),)>=K2,0))
Formula to be committed with Ctrl+Shift+Enter
K1 contains the name and K2 the number ( adapt as needed)
 
Upvote 0

Forum statistics

Threads
1,215,694
Messages
6,126,255
Members
449,306
Latest member
RealNinetyThree

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top