If Vlookup is true return a different cell's value.

Ryan1996

Board Regular
Joined
Jun 4, 2018
Messages
55
I'm looking to be able to run a vlookup or something similar that would check if the requested cells value is there but if it is then it should respond by showing the value of a cell from another column rather than the one it's looking at. What's the best way of doing this?

Thinking maybe it would be a combination of vlookup/IFERROR/AND or something along those lines however i'm not sure.

Just to give more insight into this:

I would start my VLookup from I2 selecting A2 as my lookup value and then select column W from another workbook as my table array along with index of 1 and range lookup of false.
This would look like the below.
=VLOOKUP(A2,'[FileName.xlsx]Sheet1'!$W:$W,1,FALSE)

I then want to add onto this that if the vlookup returns true it should return the value of the cell AC2 from the "FileName" workbook which is also in the sheet of "Sheet1"

Is this possible?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Re: Request: If Vlookup is true return a different cell's value.

Looks like...

=VLOOKUP(A2,'[FileName.xlsx]Sheet1'!$W:$AC,COLUMNS('[FileName.xlsx]Sheet1'!$W:$AC),0)
 
Last edited:
Upvote 0
Re: Request: If Vlookup is true return a different cell's value.

Returned N/A :( just to confirm if A2 value is "hello" and the column W from filename.xlsx has a "hello" cell in it would usually return Hello into the cell i entered the formula. I instead want it to return the value from AC2 which for example could be "goodbye" into the cell we put the formula.

Sorry not sure if i was confusing or not.
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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