SUM if duplicate cell

aznan

New Member
Joined
Apr 20, 2011
Messages
2
Hi, i have tested a few formula but couldnt get this working.

I would like to compare two columns (Column A & C) and if the cells contains same string/word then to SUM the column (Column B & D) next to each of them.

The result and the unique ID to be in a two new columns (column E and F as shown on the screen shot from the link below).

If column C & D doesnt have data then just write the data from Column A and B on column E and F.

It may have confused some of you but I have uploaded a screen shot to better illustrate my objective and to clarify the confusion.


https://docs.google.com/leaf?id=0B9mbLH9AjD33ODlkZGU0NTEtYTkxZS00OTQ1LTg1Y2MtMDE0Y2ZiNWQxNWZk&hl=en

Any inputs will be highly appreciated.

Thanks in advance
Aznan Nagor

leaf
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I think thais is kind of what you're looking for:

(if column E is the same as column A)

formula in cell F2=
Code:
=VLOOKUP(E2,A:B,2,FALSE)+IF(ISERROR(VLOOKUP(E2,C:D,2,FALSE)),0,VLOOKUP(E2,C:D,2,FALSE))
 
Upvote 0
Guys, thanks a lot for your prompt replies, very much appreciated. Steeviee's formula worked well !!!....you're a star!!.

Regards
Aznan Nagor
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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