How to compare three colums and add difference?

ZELIUS

New Member
Joined
Apr 28, 2018
Messages
3
I have this problem, I have three columns with data:


A B C
1 98 98 ?
2 98
3 12
4 98
5 02




Column A has the serial numbers of all my products, column B the ones that have been sold, and column C I need to formulate how many of the serial numbers from column A I have remanding after removing the ones from colum B.

This is what I need the program to formulate:


A B C
1 98 98 98

2 98 98
3 12
4 98
5 02

How can i achieve this?

Thank you very mcuh!!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Use "=SUMPRODUCT(--(C2:H10=B2:B10))" in column-C and use as an array formula. For that press "Ctrl + Shift + Enter" after writing formula.
 
Upvote 0
I don't understand the question, however, Meesam_ali's formula can be made into a regular formula if you change it to:
=SUMPRODUCT((C2:H10=B2:B10)*1)

No need to enter it as an array formula.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,222,753
Messages
6,168,011
Members
452,160
Latest member
Bekerinik

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