Formula to meet multiple criteria and perform calculation

rockybell_77

New Member
Joined
Feb 14, 2012
Messages
12
In below example, I want to define a formula in each cell of column ‘L’ (first in ‘P2’). I want to first search the products in (column A), which are having ‘Equipments’ populated in ‘column I’. For all products having equipments populated in column I, I want to find single maximum ‘weightage’ value in column G. The product which is having maximum ‘weightage’, I want to Multiply the ‘Dose’ value from ‘column C’; with B2 (Kg of first product) and divide by C2 (Dose of first product).

In case more then one product found having maximum weightage (Column G value) , then formula shall consider the product having ‘Solubility’ (Column D) having higher value among the identified multiple products having highest weightage value.

This formula will be defined for each cell in column L and corresponding product values will change (Column B ‘Kg’ for multiplication and Column C ‘Dose’ for division). Also similar search for other columns like M,N and so on s

Column-A

Product
B


Kg
C


Dose
D


Soluility
E


Toxicity
F


potency
G


weighatge
H


Wt


I

Equipment-1


<tbody>
</tbody>
J


Equipment-2


<tbody>
</tbody>
K


Equipment-3


<tbody>
</tbody>
alpha163.8125141630 RMG 250 L
Beta12510024136500 RMG 600L
Gama2501024141500 RMG 600L
Delta2652524161530 RMG 600L
Theta26525024136530 RMG 600L
Sita132.550241421060 RMG 600L
Zita506100241361150 RMG 600L
Pie840534161525RMG 50L
SI84020241361050 RMG 1200L
Chi840134161525RMG 50L
Ki4561024136380 RMG 1200L
Li37.520043443 RMG 50L
MY18.7525333975
NY18.75513339150RMG 50L

<colgroup><col><col span="2"><col span="2"><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,
In your sample, Pie, Chi, Li and Ny are eligible.
Then Pie and Chi have the same max weightage of 61 AND both have a solubility of 3...
Question is how do you handle these exemptions?
 
Upvote 0
Hi,
In your sample, Pie, Chi, Li and Ny are eligible.
Then Pie and Chi have the same max weightage of 61 AND both have a solubility of 3...
Question is how do you handle these exemptions?

In situation like same weightage and solubility, the formula shall check, if the product name (among the 2 in this case or more with same weightage and solubility) is same then shall select the first occurrence of value in the list, if product name is different as in this case else shall select lower Value in Column 'C' i.e. Dose

Thanks for ur reply..and sorry for delay in providing the clarity. Expecting quick response.
 
Upvote 0

Forum statistics

Threads
1,215,368
Messages
6,124,521
Members
449,169
Latest member
mm424

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top