Hi
Would anyone be able to help me?
I am trying to create a document that will auto populate from an excel sheet with product and pricing, sheet 1 is the quote template, with sheet 2 being the data behind.
Sheet 1 - Quote template[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]D[/TD]
[TD]EFGH[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Product[/TD]
[TD]Desc[/TD]
[TD]Qty[/TD]
[TD]Unit Price[/TD]
[TD]total[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]Code0001[/TD]
[TD]Product x[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]£4[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2
[TABLE="width: 540"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 832"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Desc[/TD]
[TD]CODE[/TD]
[TD]1[/TD]
[TD]24.00[/TD]
[TD]49.00[/TD]
[TD]99.00[/TD]
[TD]199.00[/TD]
[TD]299.00[/TD]
[TD]399.00[/TD]
[TD]499.00[/TD]
[TD]750.00[/TD]
[TD]999.00[/TD]
[TD]1000.00[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Product x[/TD]
[TD]Code0001[/TD]
[TD]£1[/TD]
[TD]£2[/TD]
[TD]£3[/TD]
[TD]£4[/TD]
[TD]£5[/TD]
[TD]£6[/TD]
[TD]£7[/TD]
[TD]£8[/TD]
[TD]£9[/TD]
[TD]£10[/TD]
[TD]£11[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="colspan: 4"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]I require cell J13 on Sheet 1, to look at cell D13 first, then correspond this to sheet 2 and the correct code and pricing.
I have got the second part of the formula, which looks at the correct band, and results in that price. But what I need now is that same cell to look at the D13 to see what that corresponds to in sheet 2 to product the correct row pricing?[/TD]
[TD="colspan: 4"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
=IF(I13=Sheet2!$C$2,Sheet2!C3,IF(I13<=Sheet2!$D$2,Sheet2!D3,IF(I13<=Sheet2!$E$2,Sheet2!E3,IF(I13<=Sheet2!$F$2,Sheet2!F3,IF(I13<=Sheet2!$G$2,Sheet2!G3,IF(I13<=Sheet2!$H$2,Sheet2!H3,IF(I13<=Sheet2!$I$2,Sheet2!I3,IF(I13<=Sheet2!$J$2,Sheet2!J3,IF(I13<=Sheet2!$K$2,Sheet2!K3,IF(I13<=Sheet2!$L$2,Sheet2!L3,IF(I13<=Sheet2!$M$2,Sheet2!M3)))))))))))
Thank you
Would anyone be able to help me?
I am trying to create a document that will auto populate from an excel sheet with product and pricing, sheet 1 is the quote template, with sheet 2 being the data behind.
Sheet 1 - Quote template[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]D[/TD]
[TD]EFGH[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Product[/TD]
[TD]Desc[/TD]
[TD]Qty[/TD]
[TD]Unit Price[/TD]
[TD]total[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]Code0001[/TD]
[TD]Product x[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]£4[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2
[TABLE="width: 540"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 832"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Desc[/TD]
[TD]CODE[/TD]
[TD]1[/TD]
[TD]24.00[/TD]
[TD]49.00[/TD]
[TD]99.00[/TD]
[TD]199.00[/TD]
[TD]299.00[/TD]
[TD]399.00[/TD]
[TD]499.00[/TD]
[TD]750.00[/TD]
[TD]999.00[/TD]
[TD]1000.00[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Product x[/TD]
[TD]Code0001[/TD]
[TD]£1[/TD]
[TD]£2[/TD]
[TD]£3[/TD]
[TD]£4[/TD]
[TD]£5[/TD]
[TD]£6[/TD]
[TD]£7[/TD]
[TD]£8[/TD]
[TD]£9[/TD]
[TD]£10[/TD]
[TD]£11[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="colspan: 4"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]I require cell J13 on Sheet 1, to look at cell D13 first, then correspond this to sheet 2 and the correct code and pricing.
I have got the second part of the formula, which looks at the correct band, and results in that price. But what I need now is that same cell to look at the D13 to see what that corresponds to in sheet 2 to product the correct row pricing?[/TD]
[TD="colspan: 4"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
=IF(I13=Sheet2!$C$2,Sheet2!C3,IF(I13<=Sheet2!$D$2,Sheet2!D3,IF(I13<=Sheet2!$E$2,Sheet2!E3,IF(I13<=Sheet2!$F$2,Sheet2!F3,IF(I13<=Sheet2!$G$2,Sheet2!G3,IF(I13<=Sheet2!$H$2,Sheet2!H3,IF(I13<=Sheet2!$I$2,Sheet2!I3,IF(I13<=Sheet2!$J$2,Sheet2!J3,IF(I13<=Sheet2!$K$2,Sheet2!K3,IF(I13<=Sheet2!$L$2,Sheet2!L3,IF(I13<=Sheet2!$M$2,Sheet2!M3)))))))))))
Thank you