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.
[TABLE="width: 281"]
<tbody>[TR]
[TD="width: 94, bgcolor: transparent"][/TD]
[TD="width: 94, bgcolor: transparent"][/TD]
[TD="width: 184, bgcolor: transparent, colspan: 6"]UPLOAD REPORT SHEET
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Column
[/TD]
[TD="bgcolor: transparent"]E
[/TD]
[TD="bgcolor: transparent"]J
[/TD]
[TD="bgcolor: transparent"]O
[/TD]
[/TR]
[TR]
[TD="width: 94, bgcolor: #209EA0"][/TD]
[TD="width: 94, bgcolor: #209EA0"]Project Number
[/TD]
[TD="width: 94, bgcolor: #209EA0"]Job Scope
[/TD]
[TD="width: 90, bgcolor: #209EA0"]Contractor
[/TD]
[/TR]
[TR]
[TD="width: 94, bgcolor: lightgrey"][/TD]
[TD="width: 94, bgcolor: lightgrey"]A01C7Y9
[/TD]
[TD="width: 94, bgcolor: lightgrey"]F1
[/TD]
[TD="width: 90, bgcolor: white"]#N/A
[/TD]
[/TR]
[TR]
[TD="width: 94, bgcolor: lightgrey"][/TD]
[TD="width: 94, bgcolor: lightgrey"]A01C7T3
[/TD]
[TD="width: 94, bgcolor: lightgrey"]F1
[/TD]
[TD="width: 90, bgcolor: white"]#N/A
[/TD]
[/TR]
[TR]
[TD="width: 94, bgcolor: lightgrey"][/TD]
[TD="width: 94, bgcolor: lightgrey"]A01C7M8
[/TD]
[TD="width: 94, bgcolor: lightgrey"]F1
[/TD]
[TD="width: 90, bgcolor: white"]#N/A
[/TD]
[/TR]
[TR]
[TD="width: 94, bgcolor: lightgrey"][/TD]
[TD="width: 94, bgcolor: lightgrey"]A01C6NV
[/TD]
[TD="width: 94, bgcolor: lightgrey"]F2
[/TD]
[TD="width: 90, bgcolor: white"]#N/A
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 168"]
<tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent, colspan: 2"]JUW SHEET
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A
[/TD]
[TD="bgcolor: transparent"]B
[/TD]
[TD="bgcolor: transparent"]C
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]F1
[/TD]
[TD="bgcolor: transparent"]F2
[/TD]
[TD="bgcolor: transparent"]Contractor
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A01C7Y9
[/TD]
[TD="bgcolor: transparent"]A01C6NV
[/TD]
[TD="bgcolor: transparent"]LGDESIGNS
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A01C7T3
[/TD]
[TD="bgcolor: transparent"]A01C0A5
[/TD]
[TD="bgcolor: transparent"]SMITHCORP
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A01C7M8
[/TD]
[TD="bgcolor: transparent"]A01C0AA
[/TD]
[TD="bgcolor: transparent"]BRENNER
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A01AAV9
[/TD]
[TD="bgcolor: transparent"]A01C0AH
[/TD]
[TD="bgcolor: transparent"]BRENNER
[/TD]
[/TR]
</tbody>[/TABLE]
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.
[TABLE="width: 281"]
<tbody>[TR]
[TD="width: 94, bgcolor: transparent"][/TD]
[TD="width: 94, bgcolor: transparent"][/TD]
[TD="width: 184, bgcolor: transparent, colspan: 6"]UPLOAD REPORT SHEET
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Column
[/TD]
[TD="bgcolor: transparent"]E
[/TD]
[TD="bgcolor: transparent"]J
[/TD]
[TD="bgcolor: transparent"]O
[/TD]
[/TR]
[TR]
[TD="width: 94, bgcolor: #209EA0"][/TD]
[TD="width: 94, bgcolor: #209EA0"]Project Number
[/TD]
[TD="width: 94, bgcolor: #209EA0"]Job Scope
[/TD]
[TD="width: 90, bgcolor: #209EA0"]Contractor
[/TD]
[/TR]
[TR]
[TD="width: 94, bgcolor: lightgrey"][/TD]
[TD="width: 94, bgcolor: lightgrey"]A01C7Y9
[/TD]
[TD="width: 94, bgcolor: lightgrey"]F1
[/TD]
[TD="width: 90, bgcolor: white"]#N/A
[/TD]
[/TR]
[TR]
[TD="width: 94, bgcolor: lightgrey"][/TD]
[TD="width: 94, bgcolor: lightgrey"]A01C7T3
[/TD]
[TD="width: 94, bgcolor: lightgrey"]F1
[/TD]
[TD="width: 90, bgcolor: white"]#N/A
[/TD]
[/TR]
[TR]
[TD="width: 94, bgcolor: lightgrey"][/TD]
[TD="width: 94, bgcolor: lightgrey"]A01C7M8
[/TD]
[TD="width: 94, bgcolor: lightgrey"]F1
[/TD]
[TD="width: 90, bgcolor: white"]#N/A
[/TD]
[/TR]
[TR]
[TD="width: 94, bgcolor: lightgrey"][/TD]
[TD="width: 94, bgcolor: lightgrey"]A01C6NV
[/TD]
[TD="width: 94, bgcolor: lightgrey"]F2
[/TD]
[TD="width: 90, bgcolor: white"]#N/A
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 168"]
<tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent, colspan: 2"]JUW SHEET
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A
[/TD]
[TD="bgcolor: transparent"]B
[/TD]
[TD="bgcolor: transparent"]C
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]F1
[/TD]
[TD="bgcolor: transparent"]F2
[/TD]
[TD="bgcolor: transparent"]Contractor
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A01C7Y9
[/TD]
[TD="bgcolor: transparent"]A01C6NV
[/TD]
[TD="bgcolor: transparent"]LGDESIGNS
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A01C7T3
[/TD]
[TD="bgcolor: transparent"]A01C0A5
[/TD]
[TD="bgcolor: transparent"]SMITHCORP
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A01C7M8
[/TD]
[TD="bgcolor: transparent"]A01C0AA
[/TD]
[TD="bgcolor: transparent"]BRENNER
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]A01AAV9
[/TD]
[TD="bgcolor: transparent"]A01C0AH
[/TD]
[TD="bgcolor: transparent"]BRENNER
[/TD]
[/TR]
</tbody>[/TABLE]