Formula required please

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,604
Office Version
  1. 365
Platform
  1. Windows
Hi all,
Can anybody suggest a formula that will carry out the following ...

IF cell A2 on SHEET2 is the same as cell A13 on sheet 'TEST' then VLOOKUP cell B17 in sheet 'TEST' through range C2:E15 of SHEET2 and copy 2nd colum along if true.

I can get the VLOOKUP part, ie

Code:
=VLOOKUP(B17,TEST!C2:E15,2,TRUE

but have no idea how to link this to the first part of my question

any help please

regards
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Your VLOOKUP does not reflect your description of the problem.
Try

=IF(Sheet2!A2=Test!A13,VLOOKUP(Test!B17,Sheet2!C2:E15,2,0),"")

NOTE: Chris and my solution differs from Vog's in the VLOOKUP.
 
Upvote 0

Forum statistics

Threads
1,224,267
Messages
6,177,549
Members
452,783
Latest member
back1ply

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