# Alternative to VLOOKUP

#### cflorackis

##### Board Regular
Dear all,

i have the following table
Book1.xls
ABCDEFGHI
1CompanyDirectorStakeCompanyCeo Namestake of CEOs
2Company1John8.87Company1John8.87
3Company1George3.45Company2Helen2.8
4Company1Michael8Company3Nick22.5
5Company1Alex6
7Company2George3.5
8Company2Helen2.8
9Company3David5.6
10Company3Nick22.5
11Company3Antony14.9
12Company3Helen17.9
Sheet1

Columns A, B and C report the company name, the director's name and the director' s stake, whereas column F reports the name of the chief executive officer ( CEO) of each company. I need a formula that gives automatically the stake of each CEO, as shown in column I (e.g. Helen who is a CEO in company 2 holds 2.8% of company's 2 shares). I managed to do it in two steps (e.g. using a vlookup function in the first step and then sorting the values in the second step) but I would rather prefer a formula that gives the number automatically. Any help would be greatly appreciated

Kind regards

c.

### Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi,

Try:

=LOOKUP(2,1/((\$A\$2:\$A\$12=E2)*(\$B\$2:\$B\$12=F2)),\$C\$2:\$C\$12)

in I2 and drag down.

Given that your entries are unique, try:

=SUMPRODUCT(--(\$A\$1:\$A\$12=E2),--(\$B\$1:\$B\$12=F2),\$C\$1:\$C\$12)

Replies
3
Views
167
Replies
2
Views
109
Replies
1
Views
131
Replies
2
Views
380
Replies
1
Views
2K

1,216,102
Messages
6,128,853
Members
449,472
Latest member
ebc9

### 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.

### Which adblocker are you using?

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

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