How to find duplicate value in column and return value ???

coolasia

New Member
Joined
May 10, 2018
Messages
2
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

FruitWeekPrice
Apple100.2
Orange100.1
Apple110.3
Orange110.5
Apple120.4
Banana120.3

<tbody>
</tbody>


----------------------------------------------------------------

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

FruitWeekPriceFinal weekTotal Price
Apple100.2120.9
Orange100.1110.6
Apple110.3120.9
Orange110.5110.6
Apple120.4120.9
Banana120.3120.3

<tbody>
</tbody>


Thanks in advance for your advise

regards
Ken
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
In D2 control+shift+enter, not just enter, and copy down:

=INDEX($B$2:$B$7,MATCH(MAX(IF($A$2:$A$7=$A2,$C$2:$C$7)),IF($A$2:$A$7=$A2,$C$2:$C$7),0))

In E2 just enter and copy down:

=SUMIFS($C$2:$C$7,$A$2:$A$7,$A2)
 
Upvote 0
In D2 control+shift+enter, not just enter, and copy down:

=INDEX($B$2:$B$7,MATCH(MAX(IF($A$2:$A$7=$A2,$C$2:$C$7)),IF($A$2:$A$7=$A2,$C$2:$C$7),0))

In E2 just enter and copy down:

=SUMIFS($C$2:$C$7,$A$2:$A$7,$A2)


Hi Aladin

Thanks for your advise

The problem is I am not familar with control+shift+enter. Should I copy your formula first and
enter CSE ? or I should copy and paste your formula first and enter CSE ?

I have try different way but my excel 2010 dont seen to work with CSE

Kindly advise

Thanks
Ken
 
Upvote 0
1. Copy into or type the formula in the target cell.

2. Stay in that cell or go back to that cell.

3. Press down the control and the shift keys at the same time while you hit the enter key. If done successfully, Excel itself puts a pair of { and } around the formula in recognition.

4. Now you can copy down the formula.

In E2 you can replace the SUMIFS formula with one with the SUMIF function:

=SUMIF($A$2:$A$7,$A2,$C$2:$C$7)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,390
Messages
6,119,235
Members
448,879
Latest member
VanGirl

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