Hello MrExcel,
I'm stuck on an issue. I have a log of quoted parts and a log of sales on separate tabs. The quote log has a date range for each quote, and the sales log has a date of sale. Both have part numbers for each.
I'm trying to have my quote log match criteria and return whether or not the quoted job was "Won". I'd like to do a search of the part number, then verify if the sales date was within the quote date range, if so, place "Won" in the cell.
SHEET1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Part123[/TD]
[TD]3/1/19[/TD]
[TD]3/5/19[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Part456[/TD]
[TD]3/2/19[/TD]
[TD]3/7/19[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Part123[/TD]
[TD]3/6/19[/TD]
[TD]3/11/19[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Part789[/TD]
[TD]3/4/19[/TD]
[TD]3/9/19[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Part456[/TD]
[TD]3/8/19[/TD]
[TD]3/13/19[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
SHEET2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Part123[/TD]
[TD]3/10/19[/TD]
[TD]WON[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Part333[/TD]
[TD]3/1/19[/TD]
[TD]WON[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Part456[/TD]
[TD]3/9/19[/TD]
[TD]WON[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Part789[/TD]
[TD]3/8/19[/TD]
[TD]WON[/TD]
[/TR]
</tbody>[/TABLE]
This is the formula that I'm using to fill in the "Won" in SHEET1 in cells D:D
{=INDEX(Sheet2!$C$1:$C$4,MATCH(1,((Sheet2!$A$1:$A$4=G1004)*(Sales!$B$1:$B$4>=B1)*(Sheet2!$B$1:$B$4<=C1)),0))}
I've tried this a few different ways, but I'm still getting #N/A even though I've verified that several should say "Won".
Any insight or direction would be much appreciated.
Thank you!
I'm stuck on an issue. I have a log of quoted parts and a log of sales on separate tabs. The quote log has a date range for each quote, and the sales log has a date of sale. Both have part numbers for each.
I'm trying to have my quote log match criteria and return whether or not the quoted job was "Won". I'd like to do a search of the part number, then verify if the sales date was within the quote date range, if so, place "Won" in the cell.
SHEET1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Part123[/TD]
[TD]3/1/19[/TD]
[TD]3/5/19[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Part456[/TD]
[TD]3/2/19[/TD]
[TD]3/7/19[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Part123[/TD]
[TD]3/6/19[/TD]
[TD]3/11/19[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Part789[/TD]
[TD]3/4/19[/TD]
[TD]3/9/19[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Part456[/TD]
[TD]3/8/19[/TD]
[TD]3/13/19[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
SHEET2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Part123[/TD]
[TD]3/10/19[/TD]
[TD]WON[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Part333[/TD]
[TD]3/1/19[/TD]
[TD]WON[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Part456[/TD]
[TD]3/9/19[/TD]
[TD]WON[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Part789[/TD]
[TD]3/8/19[/TD]
[TD]WON[/TD]
[/TR]
</tbody>[/TABLE]
This is the formula that I'm using to fill in the "Won" in SHEET1 in cells D:D
{=INDEX(Sheet2!$C$1:$C$4,MATCH(1,((Sheet2!$A$1:$A$4=G1004)*(Sales!$B$1:$B$4>=B1)*(Sheet2!$B$1:$B$4<=C1)),0))}
I've tried this a few different ways, but I'm still getting #N/A even though I've verified that several should say "Won".
Any insight or direction would be much appreciated.
Thank you!