Looking for formula to find data in array

hammerhead13

Board Regular
Joined
Aug 4, 2008
Messages
86
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. Mobile
I am trying to get a Formula that will Give me the Name in "B1" when I enter an Item in "A1". Any help is greatly appreciated?

ABCD
1BananasMike
2
3
4BobApplesTomatoesFigs
5TedOrangesWatermelonCucumbers
6BillGrapesCarrotsPotatoes
7MikePearsMelonBananas
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

As long as you have no duplicate values maybe
+Fluff 1.xlsm
ABCD
1BananasMike
2
3
4BobApplesTomatoesFigs
5TedOrangesWatermelonCucumbers
6BillGrapesCarrotsPotatoes
7MikePearsMelonBananas
Test
Cell Formulas
RangeFormula
B1B1=INDEX(A:A,SUMPRODUCT((B4:D7=A1)*ROW(A4:A7)))
 
Upvote 0
Solution
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

As long as you have no duplicate values maybe
+Fluff 1.xlsm
ABCD
1BananasMike
2
3
4BobApplesTomatoesFigs
5TedOrangesWatermelonCucumbers
6BillGrapesCarrotsPotatoes
7MikePearsMelonBananas
Test
Cell Formulas
RangeFormula
B1B1=INDEX(A:A,SUMPRODUCT((B4:D7=A1)*ROW(A4:A7)))
Thank you very much for the reply. When I use the formula it returns "True".
 
Upvote 0
It would only return true if you changed the formula, or you have the word True in col A
 
Upvote 0

Forum statistics

Threads
1,215,457
Messages
6,124,941
Members
449,197
Latest member
k_bs

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