Thread: Formula
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Barb Reinhardt Barb Reinhardt is offline
external usenet poster
 
Posts: 3,355
Default Formula

Try something like this:

=SUMPRODUCT(--(A1:A5=B1:B5),(A1:A5))

Activate with CTRL SHIFT ENTER

HTH,
Barb Reinhardt


"HIRAN" wrote:

Hello,

Can you please help me with this problem, I have 2 Columns, with 5 Rows each
or any amount of rows, for example Column A contains the following numbers
1,2,3,8,3 and column B Contains 0,2,9,4,3. What I want to do is Compare both
columns and if the rows match (row number 2 and 5 in this example), I want
the numbers added. so in this example since row number 2 and 5 match, i want
them added which in this case would equal 5.

Thanks