prodigy157
New Member
- Joined
- May 30, 2018
- Messages
- 3
See my example table below.
[TABLE="width: 687"]
<tbody>[TR]
[TD="class: xl68, width: 87"]order #[/TD]
[TD="class: xl68, width: 61"]cost[/TD]
[TD="class: xl68, width: 83"]red height[/TD]
[TD="class: xl68, width: 107"]yellow height[/TD]
[TD="class: xl68, width: 112"]orange height[/TD]
[TD="class: xl68, width: 79"]v1 weight[/TD]
[TD="class: xl68, width: 79"]v2 weight[/TD]
[TD="class: xl68, width: 79"]v3 weight[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 20[/TD]
[TD="class: xl69"] 2,160 [/TD]
[TD="class: xl67, align: center"]40[/TD]
[TD="class: xl67, align: center"]40[/TD]
[TD="class: xl67, align: center"]40[/TD]
[TD="class: xl70, align: center"]3323[/TD]
[TD="class: xl70, align: center"]3927[/TD]
[TD="class: xl70, align: center"]4800[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 22[/TD]
[TD="class: xl69"] 2,406 [/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl70, align: center"]3702[/TD]
[TD="class: xl70, align: center"]4375[/TD]
[TD="class: xl70, align: center"]5347[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 23[/TD]
[TD="class: xl69"] 2,395 [/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl70, align: center"]3685[/TD]
[TD="class: xl70, align: center"]4355[/TD]
[TD="class: xl70, align: center"]5322[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 25[/TD]
[TD="class: xl69"] 2,709 [/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]47[/TD]
[TD="class: xl70, align: center"]4168[/TD]
[TD="class: xl70, align: center"]4925[/TD]
[TD="class: xl70, align: center"]6020[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 27[/TD]
[TD="class: xl69"] 2,923 [/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl70, align: center"]4497[/TD]
[TD="class: xl70, align: center"]5315[/TD]
[TD="class: xl70, align: center"]6496[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 30[/TD]
[TD="class: xl69"] 3,212 [/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl70, align: center"]4942[/TD]
[TD="class: xl70, align: center"]6060[/TD]
[TD="class: xl70, align: center"]7138[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 31[/TD]
[TD="class: xl69"] 3,376 [/TD]
[TD="class: xl67, align: center"]40[/TD]
[TD="class: xl67, align: center"]40[/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl70, align: center"]5194[/TD]
[TD="class: xl70, align: center"]6370[/TD]
[TD="class: xl70, align: center"]7502[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 35[/TD]
[TD="class: xl69"] 3,672 [/TD]
[TD="class: xl67, align: center"]59[/TD]
[TD="class: xl67, align: center"]59[/TD]
[TD="class: xl67, align: center"]59[/TD]
[TD="class: xl70, align: center"]5649[/TD]
[TD="class: xl70, align: center"]7200[/TD]
[TD="class: xl70, align: center"]8160[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 38[/TD]
[TD="class: xl69"] 4,044 [/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl67, align: center"]55[/TD]
[TD="class: xl70, align: center"]6419[/TD]
[TD="class: xl70, align: center"]8253[/TD]
[TD="class: xl70, align: center"]8987[/TD]
[/TR]
</tbody>[/TABLE]
Two things:
1. I want to look up the order with the highest cost, as long as certain height and weight requirements are met. For example, what's the most expensive order with a yellow height of no more than 45 and a v2 weight no more than 5000. The answer is order 25, but how do i build a formula to show this.
2. going back to the example above, in addition to being able to list the one with the highest cost, I want to be able to lookup ALL orders that meet the criteria, and have those go into a drop down list, or some other way of showing multitple lookup answers in a single cell. In this case, the correct answers are order 20, 22, 23 and 25.
I've searched the internet a lot and played around with VLOOKUP, MIN, MAX, array formulas, etc., but I'm just going in circles, can't figure it out. Thanks in advance for the help!
[TABLE="width: 687"]
<tbody>[TR]
[TD="class: xl68, width: 87"]order #[/TD]
[TD="class: xl68, width: 61"]cost[/TD]
[TD="class: xl68, width: 83"]red height[/TD]
[TD="class: xl68, width: 107"]yellow height[/TD]
[TD="class: xl68, width: 112"]orange height[/TD]
[TD="class: xl68, width: 79"]v1 weight[/TD]
[TD="class: xl68, width: 79"]v2 weight[/TD]
[TD="class: xl68, width: 79"]v3 weight[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 20[/TD]
[TD="class: xl69"] 2,160 [/TD]
[TD="class: xl67, align: center"]40[/TD]
[TD="class: xl67, align: center"]40[/TD]
[TD="class: xl67, align: center"]40[/TD]
[TD="class: xl70, align: center"]3323[/TD]
[TD="class: xl70, align: center"]3927[/TD]
[TD="class: xl70, align: center"]4800[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 22[/TD]
[TD="class: xl69"] 2,406 [/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl70, align: center"]3702[/TD]
[TD="class: xl70, align: center"]4375[/TD]
[TD="class: xl70, align: center"]5347[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 23[/TD]
[TD="class: xl69"] 2,395 [/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl70, align: center"]3685[/TD]
[TD="class: xl70, align: center"]4355[/TD]
[TD="class: xl70, align: center"]5322[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 25[/TD]
[TD="class: xl69"] 2,709 [/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]47[/TD]
[TD="class: xl70, align: center"]4168[/TD]
[TD="class: xl70, align: center"]4925[/TD]
[TD="class: xl70, align: center"]6020[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 27[/TD]
[TD="class: xl69"] 2,923 [/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl70, align: center"]4497[/TD]
[TD="class: xl70, align: center"]5315[/TD]
[TD="class: xl70, align: center"]6496[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 30[/TD]
[TD="class: xl69"] 3,212 [/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl70, align: center"]4942[/TD]
[TD="class: xl70, align: center"]6060[/TD]
[TD="class: xl70, align: center"]7138[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 31[/TD]
[TD="class: xl69"] 3,376 [/TD]
[TD="class: xl67, align: center"]40[/TD]
[TD="class: xl67, align: center"]40[/TD]
[TD="class: xl67, align: center"]45[/TD]
[TD="class: xl70, align: center"]5194[/TD]
[TD="class: xl70, align: center"]6370[/TD]
[TD="class: xl70, align: center"]7502[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 35[/TD]
[TD="class: xl69"] 3,672 [/TD]
[TD="class: xl67, align: center"]59[/TD]
[TD="class: xl67, align: center"]59[/TD]
[TD="class: xl67, align: center"]59[/TD]
[TD="class: xl70, align: center"]5649[/TD]
[TD="class: xl70, align: center"]7200[/TD]
[TD="class: xl70, align: center"]8160[/TD]
[/TR]
[TR]
[TD="class: xl68"]Order 38[/TD]
[TD="class: xl69"] 4,044 [/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl67, align: center"]50[/TD]
[TD="class: xl67, align: center"]55[/TD]
[TD="class: xl70, align: center"]6419[/TD]
[TD="class: xl70, align: center"]8253[/TD]
[TD="class: xl70, align: center"]8987[/TD]
[/TR]
</tbody>[/TABLE]
Two things:
1. I want to look up the order with the highest cost, as long as certain height and weight requirements are met. For example, what's the most expensive order with a yellow height of no more than 45 and a v2 weight no more than 5000. The answer is order 25, but how do i build a formula to show this.
2. going back to the example above, in addition to being able to list the one with the highest cost, I want to be able to lookup ALL orders that meet the criteria, and have those go into a drop down list, or some other way of showing multitple lookup answers in a single cell. In this case, the correct answers are order 20, 22, 23 and 25.
I've searched the internet a lot and played around with VLOOKUP, MIN, MAX, array formulas, etc., but I'm just going in circles, can't figure it out. Thanks in advance for the help!