Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a cell that could be one of 2 values, if it's one value I want to do a
vlookup and get the associated info from another tab (this I can do). My problem is that if one of the other 2 values are chosen I would bring back the same value from a different tab. Can I do something like an IN statement? For example: if (a1 in ("exp", "cap"), ..... Thanks! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Without knowing all your details:
=IF(A1="exp",VLOOKUP(B1,Sheet1!A1:C100,2,0), IF(A1="cap",VLOOKUP(B1,Sheet2!A1:C100,2,0), "") Make the Sheet1!A1:C100 part by 'point and drag' on the correct range in your workbook (Please, they are "worksheets", "Tabs" are the dohickies -that's the high tech word- you click to open worksheets. If you use the wrong word, Help will not give you much joy) best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "ChrisP" wrote in message ... I have a cell that could be one of 2 values, if it's one value I want to do a vlookup and get the associated info from another tab (this I can do). My problem is that if one of the other 2 values are chosen I would bring back the same value from a different tab. Can I do something like an IN statement? For example: if (a1 in ("exp", "cap"), ..... Thanks! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(A1="exp",VLOOKUP(vlookup Value,table array,column index),formula if
"cap" is chosen) -- "ChrisP" wrote in message ... I have a cell that could be one of 2 values, if it's one value I want to do a vlookup and get the associated info from another tab (this I can do). My problem is that if one of the other 2 values are chosen I would bring back the same value from a different tab. Can I do something like an IN statement? For example: if (a1 in ("exp", "cap"), ..... Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text "comparison" operator for "contains" used in an "IF" Function | Excel Worksheet Functions | |||
function to return day in the form "Monday", "Tuesday" etc given . | Excel Worksheet Functions | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |