Dear Sir
I am trying to search for same value in a column and return value base on some formula
How to create a excel formulate that it will search in the column and if there is matching
fruit, it will generate a formula to add the price andr select the biggest number in the WEEK?
For example
Raw data below
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Fruit[/TD]
[TD]Week[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]10[/TD]
[TD]0.2[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]10[/TD]
[TD]0.1[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]11[/TD]
[TD]0.3[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]11[/TD]
[TD]0.5[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]12[/TD]
[TD]0.4[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD]12[/TD]
[TD]0.3[/TD]
[/TR]
</tbody>[/TABLE]
----------------------------------------------------------------
Reuslt will return below
1) Final Week formula should search for similar fruit and return the highest number
2) Total price formula should search for similar fruit and add all the price together
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Fruit[/TD]
[TD]Week[/TD]
[TD]Price[/TD]
[TD]Final week[/TD]
[TD]Total Price[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]10[/TD]
[TD]0.2[/TD]
[TD]12[/TD]
[TD]0.9[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]10[/TD]
[TD]0.1[/TD]
[TD]11[/TD]
[TD]0.6[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]11[/TD]
[TD]0.3[/TD]
[TD]12[/TD]
[TD]0.9[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]11[/TD]
[TD]0.5[/TD]
[TD]11[/TD]
[TD]0.6[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]12[/TD]
[TD]0.4[/TD]
[TD]12[/TD]
[TD]0.9[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD]12[/TD]
[TD]0.3[/TD]
[TD]12[/TD]
[TD]0.3[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance for your advise
regards
Ken
I am trying to search for same value in a column and return value base on some formula
How to create a excel formulate that it will search in the column and if there is matching
fruit, it will generate a formula to add the price andr select the biggest number in the WEEK?
For example
Raw data below
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Fruit[/TD]
[TD]Week[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]10[/TD]
[TD]0.2[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]10[/TD]
[TD]0.1[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]11[/TD]
[TD]0.3[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]11[/TD]
[TD]0.5[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]12[/TD]
[TD]0.4[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD]12[/TD]
[TD]0.3[/TD]
[/TR]
</tbody>[/TABLE]
----------------------------------------------------------------
Reuslt will return below
1) Final Week formula should search for similar fruit and return the highest number
2) Total price formula should search for similar fruit and add all the price together
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Fruit[/TD]
[TD]Week[/TD]
[TD]Price[/TD]
[TD]Final week[/TD]
[TD]Total Price[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]10[/TD]
[TD]0.2[/TD]
[TD]12[/TD]
[TD]0.9[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]10[/TD]
[TD]0.1[/TD]
[TD]11[/TD]
[TD]0.6[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]11[/TD]
[TD]0.3[/TD]
[TD]12[/TD]
[TD]0.9[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]11[/TD]
[TD]0.5[/TD]
[TD]11[/TD]
[TD]0.6[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]12[/TD]
[TD]0.4[/TD]
[TD]12[/TD]
[TD]0.9[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD]12[/TD]
[TD]0.3[/TD]
[TD]12[/TD]
[TD]0.3[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance for your advise
regards
Ken