Forum Discussion

Abraham M. Payton Jr.'s avatar
Abraham M. Payton Jr.
Copper Contributor
Mar 16, 2021
Solved

Create an Excel formula that has conditional & lookup arguments in 2 workbooks

PC; Windows 10 O/S; Excel in Microsoft 365. Create a conditional (or logical - not certain of the correct term) Excel formula that argues, [1] if a value in cell ($C$3) in "Workbook A"  equals a va...
  • Riny_van_Eekelen's avatar
    Mar 17, 2021

    Abraham M. Payton Jr. Took your question literally and created a mock-up of the situation that I believe you described. Attached two workbooks including a rather ugly formula in A1 of Workbook A. 

    =IFERROR(IF(ISNUMBER(MATCH(C3,'[Workbook B.xlsx]Sheet1'!$A$1:$A$16,0)),INDEX('[Workbook B.xlsx]Sheet1'!$A$11:$CF$11,1,MATCH(A11,'[Workbook B.xlsx]Sheet1'!$A$4:$CF$4,0)),""),"")

    Open both workbooks at the same time and you should be able to test it. 

    Very likely, though, that there are better ways to do this, but for that you would have to share the real workbooks A and B. Replace any confidential information with fake data, if you should decide to do so.

Resources