To check values from two columns and return the value from third one (Vlook up or Index)

patelr

New Member
Joined
Aug 26, 2014
Messages
5
Hello all,

I have two different excel sheets. The detail is as shown below.

MAIN WORKSHEET
B1=Site name
B15=Site Location
D16=Site Type (I do not have Site Type in my main worksheet, this is what I am looking for)

SECONDARY WORKSHEET

COLUMN A-has site names
COLUMN C-has site locations
COLUMN CE-has site type (I need to return this result into D16 in my main worksheet)

site name
site location
site type
ruth
here
X1
ruth
there
X2
ruth
near
X3
ralph
here
X4
ralph
there
X5
ralph
near
X6

<tbody>
</tbody>

In Main sheet D16 I want to get the value of column CE( Returning value) checking the values in Column A and column C (Secondary worksheet) which has to be matched with B1 and B15 (main worksheet)

I applied below formula but it didn't work.
=INDEX(Site_type,MATCH(1,(Site_Name=main_jdennis1!B1)*(Site_Loc=main_jdennis1!B15),0))

I will appreciate your help.

Thanks,
Patelr
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,215,043
Messages
6,122,816
Members
449,095
Latest member
m_smith_solihull

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