Automated lookups without having to do multiple VLookups

A123

New Member
Joined
Jul 3, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am struggling to work out how to set up formulae to pull the figures marked by a ? in spreadsheet 1 as per example below. The Name in left hand column and Code name in top horizontal row match the same names on spreadsheet 2 which contains the answers. At present, I am doing a simple V-lookup for each Code but this means I have to do a V-lookup for every code which takes time.

I would love to know what formulae I can put it to Spreadsheet 1 to automatically pull the answer from Spreadsheet 2 (which is kept on a separate tab).

Thank you in advance for your help! It is much appreciated.

1720055925003.png
 

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.
Try this for layout as shown. If you move the sheet 2 information formulas will update accordingly.

Book1
ABCDEFGHIJKLMNOPQRST
1Code 1Code 2Code 3Code 4Code 5Code 6Code 1Code 2Code 3Code 4Code 5Code 6
2Name 111109464845Name 111109464845
3Name 2135249144311Name 2135249144311
4Name 320838461830Name 320838461830
5Name 427171471950Name 427171471950
6Name 5131403151Name 5131403151
7Name 64221243320Name 64221243320
8
Sheet1
Cell Formulas
RangeFormula
D2:I7D2=SUMPRODUCT(($N$2:$N$7=$C2)*($O$1:$T$1=D$1)*$O$2:$T$7)
 
Upvote 0
Try this for layout as shown. If you move the sheet 2 information formulas will update accordingly.

Book1
ABCDEFGHIJKLMNOPQRST
1Code 1Code 2Code 3Code 4Code 5Code 6Code 1Code 2Code 3Code 4Code 5Code 6
2Name 111109464845Name 111109464845
3Name 2135249144311Name 2135249144311
4Name 320838461830Name 320838461830
5Name 427171471950Name 427171471950
6Name 5131403151Name 5131403151
7Name 64221243320Name 64221243320
8
Sheet1
Cell Formulas
RangeFormula
D2:I7D2=SUMPRODUCT(($N$2:$N$7=$C2)*($O$1:$T$1=D$1)*$O$2:$T$7)
Thanks so much. This seems to be working. Really appreciate your help.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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