Alternative to VLOOKUP

cflorackis

Board Regular
Joined
Aug 18, 2002
Messages
137
Dear all,

i have the following table
Book1.xls
ABCDEFGHI
1CompanyDirectorStakeCompanyCeo Namestake of CEOs
2Company1John8.87Company1John8.87
3Company1George3.45Company2Helen2.8
4Company1Michael8Company3Nick22.5
5Company1Alex6
6Company2Adam2.25
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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Hi,

Try:

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

in I2 and drag down.
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Given that your entries are unique, try:

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

Forum statistics

Threads
1,136,990
Messages
5,678,983
Members
419,797
Latest member
ikethegenius

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
Top