IFERROR + VLOOKUP + ??? - Returning a value only for a given selection.

boojooo

New Member
Joined
Nov 15, 2012
Messages
33
Hello,

I am doing a vlookup between two workbooks in each of four cells (A3 - A6) based on the value in A1. In A2 I have 4 different options that get inputted, separate from these vlookups. What I would like to accomplish is to only show values in cells A3 - A6 based on the value listed in A2. So if A2 shows "10" then only the cell with the header "10" would populate and the other 3 would remain empty.

I think I need an IFERROR function, vlookup function, and something else so that whatever the draft size in A2 is it only populates the corresponding draft plu cell. I'm hoping I can do this without a macro.
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
what does your formula look like ?
 
Upvote 0
=VLOOKUP(A1,[BeerDatabase1.xlsx]Sheet1!$A$3:$AE$27256,31,FALSE) in A3
=VLOOKUP(A1,[BeerDatabase1.xlsx]Sheet1!$A$3:$AE$27256,32,FALSE) in A4
=VLOOKUP(A1,[BeerDatabase1.xlsx]Sheet1!$A$3:$AE$27256,33,FALSE) in A5
=VLOOKUP(A1,[BeerDatabase1.xlsx]Sheet1!$A$3:$AE$27256,34,FALSE) in A6

I'm not sure how to what to input next.
 
Last edited:
Upvote 0
What do you mean by header "10"?
In row 2 you have headers and one of them is called "10"?
 
Upvote 0
That the values under the headers could change and one of them would be a "10". I was able to figure out the formula though:
=IF(H3=10,(VLOOKUP(B3,[BeerDatabase1.xlsx]Sheet1!$A$3:$AH$27256,34,FALSE)),"")
 
Upvote 0
That the values under the headers could change and one of them would be a "10". I was able to figure out the formula though:
=IF(H3=10,(VLOOKUP(B3,[BeerDatabase1.xlsx]Sheet1!$A$3:$AH$27256,34,FALSE)),"")

Perfect !, let me know if you have any doubt.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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