Excel query

colin5392

Board Regular
Joined
Oct 25, 2016
Messages
69
Office Version
  1. 2019
Platform
  1. Windows
What formula would have to be created in F2 to show that A2 (32) is found in column 2 (second table)? Or that 16 in B2, in the first table, is located in column 4 of the second table and so on...

Apologies - I can't get the XL2BB to work so having to show an image only





excel query.jpg
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Minisheet:
Book1
ABCDEFGHIJKLMNOPQ
112345123456
23216294136123456
3135047739789101112
43719181431131415161718
539374733192021222324
64447152824252627282930
74245333726313233343536
823433410373839404142
9424123627434445464748
10231910144950
Sheet1
 
Upvote 0
How about
Fluff.xlsm
ABCDEFGHIJKLMNOPQ
112345123456
2321629413624556123456
313504773912513789101112
4371918143111621131415161718
53937473331413192021222324
6444715282425346252627282930
7424533372663312313233343536
82343341051344373839404142
942412362746663434445464748
1023191014514144950
Data
Cell Formulas
RangeFormula
F2:J10F2=SUMPRODUCT(($L$2:$Q$10=A2)*($L$1:$Q$1))
 
Upvote 0
Solution
Perhaps this:
Book1
ABCDEFGHIJKLMNOPQ
112345123456
2321629413624556123456
3135047739789101112
43719181431131415161718
539374733192021222324
64447152824252627282930
74245333726313233343536
823433410373839404142
9424123627434445464748
10231910144950
Sheet1
Cell Formulas
RangeFormula
F2:J2F2=SUMPRODUCT(--($L$2:$Q$10=A2)*(COLUMN($L$2:$Q$10)-11))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,221,783
Messages
6,161,938
Members
451,730
Latest member
BudgetGirl

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