Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9831

How can I get VLOOKUP to return a response that is in one of two adjacent columns?

$
0
0

I have the following working formula in my header row and that returns an array of "Project Team Owner" values from my Form Responses sheet based on a matching Unique ID:

={"Project Team Owner";    INDEX(IFNA(VLOOKUP(A2:A,'Form Responses'!A2:U,COLUMN('Form Responses'!G2:G),0)))}

The problem I'm having is that the "Project Team Owner" will be in one of (not both) Form Responses Column G or Column H.

How can I modify my formula so it will return the result from Column H if it isn't found in Column G?

Sample Data

Link to example Google spreadsheet

Form Responses

AB - FGH
1Unique IDValue 1Value 2
2PID-1TCP
3PID-2Computing Services

Desired Result (Formula in B1)

AB
1Unique IDProject Team Owner
2PID-1TCP
3PID-2Computing Services

Viewing all articles
Browse latest Browse all 9831

Latest Images

Trending Articles



Latest Images