Stumped on how to vlook up this information (or Hlookup?)

thp510

Board Regular
Joined
Oct 19, 2015
Messages
110
Office Version
  1. 365
Platform
  1. Windows
I'm trying to find the price of a particular item based on the product selected in Column A in that specific row. As an example, on cell A2, the product BBB was selected. If you look across row 2, BBB is set at $50. Therefore, on cell B2, I have $50. For Cell A3, the product CCC was selected. On row 3, CCC is worth $34. Therefore cells B3 has $34 in it. This goes on and on for about 200+ rows. Can anyone help me with what function I can put in column B so I can drag that function all the way down that column? Thanks.
1673554163506.png


Here's are the prices again.
BBBCCCAAADCCACBCDC
BBB
$50​
$ 50$ 53$ 56$ 45$ 87$ 25
CCC
$34​
$ 4,133$ 34$ 355$ 151$ 135$ 41
CDC
$34​
$ 64$ 34$ 21$ 10$ 22$ 34
CCC
$5​
$ 3$ 5$ 1$ 5$ 3$ 1
ACB
$341​
$ 344$ 351$ 353$ 341$ 341$ 433
AAA
$645​
$ 35$ 135$ 645$ 431$ 444$ 433
ACB
$54​
$ 33$ 66$ 87$ 44$ 54$ 22
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try

Book3
ABCDEFGHIJ
1BBBCCCAAADCCACBCDC
2BBB50$50$53$56$45$87$25
3CCC34$4,133$34$355$151$135$41
4CDC34$64$34$21$10$22$34
5CCC5$3$5$1$5$3$1
6ACB341$344$351$353$341$341$433
7AAA645$35$135$645$431$444$433
8ACB54$33$66$87$44$54$22
9
Sheet1
Cell Formulas
RangeFormula
B2:B8B2=INDEX($D$2:$I$8,ROWS($B$2:B2),MATCH(A2,$D$1:$I$1,0))
 
Upvote 0
Solution
Place this in cell B2 and copy down to B8:
Excel Formula:
=INDEX($C2:$H2,MATCH(A2,$C$1:$H$1,0))
 
Upvote 0
Try

Book3
ABCDEFGHIJ
1BBBCCCAAADCCACBCDC
2BBB50$50$53$56$45$87$25
3CCC34$4,133$34$355$151$135$41
4CDC34$64$34$21$10$22$34
5CCC5$3$5$1$5$3$1
6ACB341$344$351$353$341$341$433
7AAA645$35$135$645$431$444$433
8ACB54$33$66$87$44$54$22
9
Sheet1
Cell Formulas
RangeFormula
B2:B8B2=INDEX($D$2:$I$8,ROWS($B$2:B2),MATCH(A2,$D$1:$I$1,0))
Amazing! Thank you it worked.
 
Upvote 0
VBA Code:
=VLOOKUP(A2,A1:I8,MATCH(A2,$A$1:$I$1,0),FALSE)

try this in column B
 
Upvote 0

Forum statistics

Threads
1,215,106
Messages
6,123,124
Members
449,096
Latest member
provoking

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