How to find the reference of a value in a table, when i know it is present in the table?

BULLISHBEAR

New Member
Joined
Sep 7, 2010
Messages
2
Hi,

I was trying to find the cell reference of a particular value, if found in a table. For eg. If i have a table having prices for difference currencies and for different quantities. Assuming the currencies name in Cells: D2:D20 and Quantities in Cells E1:M1. Corresponding data is in table E2:M20. If I have some price mentioned in Column A, how do i get the currencies and quantity respectively in Columns B and C respectively?
I hope that my questions is easy to understand!

Tx
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Welcome to the Board.

If the prices are unique:

=INDEX(D$2:D$20,SUMPRODUCT(--(E$2:M$20=A1)*(ROW(E$2:M$20)-ROW(A$1))))

=INDEX(E$1:M$1,SUMPRODUCT(--(E$2:M$20=A1)*(COLUMN(E$2:M$20)-COLUMN(D$1))))
 
Upvote 0
Tx a lot Andrew for the prompt response! It worked perfectly as prices were unique in the table. I'll try to understand the logic and post my comments appropriately! Tx again!!
 
Upvote 0

Forum statistics

Threads
1,214,848
Messages
6,121,914
Members
449,054
Latest member
luca142

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