Hi all,
What’s the best way to test each row in a large dataset tosee if it meets three criteria?
If cell A2 is “Blue” and the Expiration Date in B2 is 5/17/18, and C2 is a number, I need cell D2 to multiply the number in C2 by .3 per the table below.
And so on and so on for each row.
What’s the correct way to do this without having a huge combinationof IF statements?
Here’s a copy of the table with test criteria.
[TABLE="width: 375"]
<colgroup><col width="88" style="width: 66pt; mso-width-source: userset; mso-width-alt: 3218;"> <col width="109" style="width: 82pt; mso-width-source: userset; mso-width-alt: 3986;"> <col width="129" style="width: 97pt; mso-width-source: userset; mso-width-alt: 4717;"> <col width="86" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3145;" span="2"> <tbody>[TR]
[TD="width: 88, bgcolor: #B4C6E7"]Color Code[/TD]
[TD="width: 109, bgcolor: #B4C6E7"]Expires after[/TD]
[TD="width: 129, bgcolor: #B4C6E7"]Expires before[/TD]
[TD="width: 86, bgcolor: #B4C6E7"]Discount[/TD]
[TD="width: 86, bgcolor: #B4C6E7"]Multiplier[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Blue[/TD]
[TD="bgcolor: transparent, align: right"]12/31/2000[/TD]
[TD="bgcolor: transparent, align: right"]8/15/2018[/TD]
[TD="bgcolor: transparent, align: right"]100[/TD]
[TD="bgcolor: transparent, align: right"]0.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Blue[/TD]
[TD="bgcolor: transparent, align: right"]12/31/2000[/TD]
[TD="bgcolor: transparent, align: right"]6/30/2018[/TD]
[TD="bgcolor: transparent, align: right"]100[/TD]
[TD="bgcolor: transparent, align: right"]0.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Red[/TD]
[TD="bgcolor: transparent, align: right"]12/31/2000[/TD]
[TD="bgcolor: transparent, align: right"]6/30/2018[/TD]
[TD="bgcolor: transparent, align: right"]100[/TD]
[TD="bgcolor: transparent, align: right"]0.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Red[/TD]
[TD="bgcolor: transparent, align: right"]12/31/2000[/TD]
[TD="bgcolor: transparent, align: right"]6/30/2018[/TD]
[TD="bgcolor: transparent, align: right"]100[/TD]
[TD="bgcolor: transparent, align: right"]0.25[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas would be appreciated!!
Thanks!!!
What’s the best way to test each row in a large dataset tosee if it meets three criteria?
If cell A2 is “Blue” and the Expiration Date in B2 is 5/17/18, and C2 is a number, I need cell D2 to multiply the number in C2 by .3 per the table below.
And so on and so on for each row.
What’s the correct way to do this without having a huge combinationof IF statements?
Here’s a copy of the table with test criteria.
[TABLE="width: 375"]
<colgroup><col width="88" style="width: 66pt; mso-width-source: userset; mso-width-alt: 3218;"> <col width="109" style="width: 82pt; mso-width-source: userset; mso-width-alt: 3986;"> <col width="129" style="width: 97pt; mso-width-source: userset; mso-width-alt: 4717;"> <col width="86" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3145;" span="2"> <tbody>[TR]
[TD="width: 88, bgcolor: #B4C6E7"]Color Code[/TD]
[TD="width: 109, bgcolor: #B4C6E7"]Expires after[/TD]
[TD="width: 129, bgcolor: #B4C6E7"]Expires before[/TD]
[TD="width: 86, bgcolor: #B4C6E7"]Discount[/TD]
[TD="width: 86, bgcolor: #B4C6E7"]Multiplier[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Blue[/TD]
[TD="bgcolor: transparent, align: right"]12/31/2000[/TD]
[TD="bgcolor: transparent, align: right"]8/15/2018[/TD]
[TD="bgcolor: transparent, align: right"]100[/TD]
[TD="bgcolor: transparent, align: right"]0.1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Blue[/TD]
[TD="bgcolor: transparent, align: right"]12/31/2000[/TD]
[TD="bgcolor: transparent, align: right"]6/30/2018[/TD]
[TD="bgcolor: transparent, align: right"]100[/TD]
[TD="bgcolor: transparent, align: right"]0.3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Red[/TD]
[TD="bgcolor: transparent, align: right"]12/31/2000[/TD]
[TD="bgcolor: transparent, align: right"]6/30/2018[/TD]
[TD="bgcolor: transparent, align: right"]100[/TD]
[TD="bgcolor: transparent, align: right"]0.2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Red[/TD]
[TD="bgcolor: transparent, align: right"]12/31/2000[/TD]
[TD="bgcolor: transparent, align: right"]6/30/2018[/TD]
[TD="bgcolor: transparent, align: right"]100[/TD]
[TD="bgcolor: transparent, align: right"]0.25[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas would be appreciated!!
Thanks!!!