Vlookup combine with an IF statement?

MrCwwT

New Member
Joined
Jan 16, 2014
Messages
3
Hi i need to search a spreadsheet and retrieve data based on whatever i enter into a cell. Does this make sense

So if i enter 5 in the cell in question i would like a formula that would seach a specific column, say A, on a spread sheet and whereever Colum A contained a 5 retrieve the corresponding value in that row from column D.

I would like to be able to change the number i'm searching for without changing the formula. So I think it would be better to have fixed on a cell that i can enter my chosen search criteria into.

this is prob really simple just seem to be going in circles with it

Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
If cell B1 contains what you want to find:

In C1, for example:

Thanks, that worked but on doing it realised i hadn't fully desrcribed the whole proces

basically There will be multiple entries with the contents of B1, so i would like to list them vertically if possibe? Does that make sense?

So if B1 contained a 5 i would like a list of all 5's(column A) with corresponding Column D figure?
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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