Vlookup??

Simon4s

Board Regular
Joined
Sep 22, 2014
Messages
155
Office Version
  1. 2016
  2. 2013
how do i return these values in the table on the right? (cell G2)

Thanks

ForkKnifeSpoonPlates
NameAssetsamountAndyG2
AndyFork2Amy
AndyKnife3Barrie
AndySpoon6Bonny
AmyFork1
AmySpoon22
barrieKnife400
barrieSpoon20
bonnyfork 31
bonnyknife17
bonnyplate8
bonnyspoon9

<colgroup><col width="64" span="9" style="width:48pt"> </colgroup><tbody>
</tbody>
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try
in G2
=INDEX($C$3:$E$12,MATCH($F2,C$3:C$12,0),MATCH(G$1,$D$3:$D$12,0))

copy across and down

UPDATE: Oops! That's not gonna work!

Thinking...
 
Upvote 0
Try SUMPRODUCT.
Copy formula down and across (be careful on how you lock the rows and columns).
Excel Workbook
ABCDEFGHI
1ForkKnifeSpoonPlate
2NameAssetsamountAndy2360
3AndyFork2Amy10220
4AndyKnife3Barrie0400200
5AndySpoon6Bonny311798
6AmyFork1
7AmySpoon22
8barrieKnife400
9barrieSpoon20
10bonnyfork31
11bonnyknife17
12bonnyplate8
13bonnyspoon9
Sheet
 
Upvote 0
Try SUMPRODUCT.
Copy formula down and across (be careful on how you lock the rows and columns).

ABCDEFGHI
1 ForkKnifeSpoonPlate
2NameAssetsamount Andy2360
3AndyFork2 Amy10220
4AndyKnife3 Barrie0400200
5AndySpoon6 Bonny311798
6AmyFork1
7AmySpoon22
8barrieKnife400
9barrieSpoon20
10bonnyfork31
11bonnyknife17
12bonnyplate8
13bonnyspoon9

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:35px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
F2=SUMPRODUCT(--($A$3:$A$13=$E2),--($B$3:$B$13=F$1),$C$3:$C$13)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4


Thanks! to the both of you!
 
Upvote 0
SUMPRODUCT in this method is cool. I'll get my head around it one day (all most there.)
I would have gone in SUMIFS family of functions based on what I am comfortable with...
=SUMIFS($D$3:$D$13,$B$3:$B$13,$F2,$C$3:$C$13,G$1)
But I definitely like how the criteria is more clearly defined in the SUMPRODUCT method.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,854
Members
449,051
Latest member
excelquestion515

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