ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Lookup value in one column & add the values in adjacent columns (https://www.excelbanter.com/excel-discussion-misc-queries/204064-lookup-value-one-column-add-values-adjacent-columns.html)

Browny

Lookup value in one column & add the values in adjacent columns
 
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

T. Valko

Lookup value in one column & add the values in adjacent columns
 
See your other post

--
Biff
Microsoft Excel MVP


"Browny" wrote in message
...
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




Uma Nandan

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


Uma Nandan

Lookup value in one column & add the values in adjacent column
 
Forgot to mention how to get the value in A6
Please follow the below mentioned Steps

Select your list of names then
Data|Filter|Advanced filter
Selecr 'Copy to new location
Check 'Unique values only'
Enter an address to copy to (I used A6)
Click OK

You will get a unique list in A6

"Uma Nandan" wrote:

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



All times are GMT +1. The time now is 09:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com