Vlookup from particular cells

GirishDhruva

Active Member
Joined
Mar 26, 2019
Messages
308
Hi everyone

Below i am stuck with one problem, that how to perform vlookup for only selected cells.

Here i have 2 sheets, from sheet2 i have to perform vlookup only for specific cells in Sheet1 row B
Can that be done?????

Sheet 1
slnoname
1111asdf
2222gadsffds
3333asdfqwer
4444gfaser
5555wqerf
6666vadsfgrwa
7777=vlookup
8888=vlookup
9999=vlookup

<tbody>
</tbody>

Sheet 2
slnoname
7777asdfsadg
8888afsdfew2
9999fdsgvdv

<tbody>
</tbody>

Thanks in advance
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Cells can contain a value OR a formula, not both.
And if a cell contains a formula and you enter a value the formula will be overwritten (and vice versa).

Maybe do something like this

In sheet 1

1. Enter your slno in column A
2. Enter your name values in column B (if you want a VLOOKUP leave the value in column B blank)
3. in Column C
=IF(D2="X",VLOOKUP(A2,Sheet2!$2:B1000,2,0),B2)
copy down the column

4. Now in column D put X if you want to perform a VLOOKUP of the slno otherwise the data will be copied from column B.

So your output is now in column C and will consist of a mixture of values from column B and VLOOKUPs where you specify an X in column C.

NOTE: If you're going to copy that data from column C elsewhere you'll need to Paste Values as or you will end up copying the formulas which you probably don't want.
 
Last edited:
Upvote 0
Cells can contain a value OR a formula, not both.
And if a cell contains a formula and you enter a value the formula will be overwritten (and vice versa).

Maybe do something like this

In sheet 1

1. Enter your slno in column A
2. Enter your name values in column B (if you want a VLOOKUP leave the value in column B blank)
3. in Column C
=IF(D2="X",VLOOKUP(A2,Sheet2!$2:B1000,2,0),B2)
copy down the column

4. Now in column D put X if you want to perform a VLOOKUP of the slno otherwise the data will be copied from column B.

So your output is now in column C and will consist of a mixture of values from column B and VLOOKUPs where you specify an X in column C.

NOTE: If you're going to copy that data from column C elsewhere you'll need to Paste Values as or you will end up copying the formulas which you probably don't want.

Thank you so much for your reply , this helped me
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

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