Search

chrisb182

New Member
Joined
Mar 3, 2022
Messages
35
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Sorry - but I have another query.

Again, it's a question I've searched on the forum but to no avail.

I want to search a number of columns for a specific code and for it to return the value in the corresponding row.

For example, as shown in the attached screenshot I would like:
- a formula in H4
- that would look up the text from G4
- in the range C4:E9
- and for it to return the relevant text in range B4:B9

Note: As the codes are random yet unique, the figures for one code could appear in more than one cell (as shown in the example, the numbers 1234 can be found in cells C4, C5, D6 and D8 as well)...... in a nutshell, I need an exact match.

I hope that makes sense.

Cheers,

Chris
 

Attachments

  • Mr Excel Question2.png
    Mr Excel Question2.png
    16.3 KB · Views: 8
Ok, how about
Excel Formula:
=IFERROR(INDEX($A$2:$A$15,AGGREGATE(15,6,(ROW($A$2:$A$15)-ROW($A$2)+1)/($B$2:$D$15=F2),COUNTIFS(F$2:F2,F2))),INDEX($A$2:$A$15,AGGREGATE(15,6,(ROW($A$2:$A$15)-ROW($A$2)+1)/($B$2:$D$15=F2),1)))
Thank you
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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