View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Uma Nandan Uma Nandan is offline
external usenet poster
 
Posts: 27
Default Lookup value in one column & add the values in adjacent columns

Hi,

Try this forumla:

Apply this formula in B6
{=SUM(IF($A$1:$A$4=A6,$B$1:$B$4,FALSE))}

This is an array formula and must be entered with CTRL+Shift+Enter and not
just enter. If you do it correctly Excel will put curly brackets around it
{}. You can't type these yourself



A B
1 1 120
2 3 100
3 4 50
4 1 120

See below the output

6 1 240
7 3 100
8 4 50


"Browny" wrote:

My sheet has repeating values in column "A" i.e. 1, 2, 3,or 4.
i wish to lookup the numbers 1's and sum the adjacent cloumn.

A B-
1 1 120
2 3 100
3 4 50
4 1 120
--------------
Browny