Help - I am Stuck - Match 4 Cells against table and return adjacent value

Agbarker

New Member
Joined
May 17, 2021
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have been trying to work out the best way to get the answer from my little problem below. I either get a whole table or #error/#N/A

so starting from scratch

below is what I am trying to work out

Row 1 = A1 , B1 , C1 , D1 = (each cell contains a letter for example A1=A, B1=B, C1=C, D1=D

Row 2 to Row 12

Column A = contains one letter in each cell - either A, B or C
Column B = contains one letter in each cell - either B, C or D
Column C = contains one letter in each cell - either C, D or E
Column D = contains one letter in each cell - either D, E or F

Now I would like to match Row 1 (or Ideally just the cells) with the table below for a match

once a match has been found I want to return the value in Column F which corresponds to the matched Row

so,

Row 1 = A, B, C, D

Table

B,C,D,A
C,D,A,B
A,B,C,D
A,B,D,A

Column F

A
B
C
D

so my answer should be "C"

I know this is probably a really easy one to answer but I am running out brain cells.

Appreciate everyone's help as always
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,252
Office Version
  1. 365
Platform
  1. Windows
How about
+Fluff 1.xlsm
ABCDEFG
1ABCD
2BCDAAC
3CDABB
4ABCDC
5ABDAD
Summary
Cell Formulas
RangeFormula
G2G2=FILTER(F2:F5,(A2:A5=A1)*(B2:B5=B1)*(C2:C5=C1)*(D2:D5=D1),"No match")
 
Solution

Agbarker

New Member
Joined
May 17, 2021
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Thats great! learn something new everyday - never used the filter function before. works perfectly. thankyou very much.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,252
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Forum statistics

Threads
1,141,062
Messages
5,704,044
Members
421,325
Latest member
tapete86

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
Top