I'm trying to write a formula that will return a value from another sheet. My Main Table has a list of project numbers that I need to fill in the assigned contractor name from another sheet. The problem is that there are two project numbers (categorized as F1 & F2) on each row in different columns. I would like my formula to check both columns and return the contractor name.
In other words -- my main table has both F1 & F2 project numbers on separate rows in the same column. My lookup table has the F1 & F2 numbers on the same row in two different columns.
Main Table w formula in column O - F1 & F2 numbers are in column E. Lookup Table has F1 numbers in column A; and F2 numbers in Column B. I want to fill in Column O with the Contractor Name that is in column C on the LookUp table. Here's what I have, but cant get it to work:
=INDEX(JUW!$C$1:$C$51,MATCH(E2,JUW!$A$1:$A$51,0), MATCH(E2,JUW!$B$1:$B$51,0))
*E2 is on a different sheet called "Upload Report" which is the sheet that has the formula in Column O.
<tbody>
</tbody>
<tbody>
</tbody>
In other words -- my main table has both F1 & F2 project numbers on separate rows in the same column. My lookup table has the F1 & F2 numbers on the same row in two different columns.
Main Table w formula in column O - F1 & F2 numbers are in column E. Lookup Table has F1 numbers in column A; and F2 numbers in Column B. I want to fill in Column O with the Contractor Name that is in column C on the LookUp table. Here's what I have, but cant get it to work:
=INDEX(JUW!$C$1:$C$51,MATCH(E2,JUW!$A$1:$A$51,0), MATCH(E2,JUW!$B$1:$B$51,0))
*E2 is on a different sheet called "Upload Report" which is the sheet that has the formula in Column O.
UPLOAD REPORT SHEET | |||
Column | E | J | O |
Project Number | Job Scope | Contractor | |
A01C7Y9 | F1 | #N/A | |
A01C7T3 | F1 | #N/A | |
A01C7M8 | F1 | #N/A | |
A01C6NV | F2 | #N/A |
<tbody>
</tbody>
JUW SHEET | ||
A | B | C |
F1 | F2 | Contractor |
A01C7Y9 | A01C6NV | LGDESIGNS |
A01C7T3 | A01C0A5 | SMITHCORP |
A01C7M8 | A01C0AA | BRENNER |
A01AAV9 | A01C0AH | BRENNER |
<tbody>
</tbody>