Look up and return value from another colunm

pateln1594

New Member
Joined
Jul 31, 2018
Messages
6
I have run into a problem. So I have 2 colunms as follows:

A B C D
1 123
2 444 9
3 666
4 888 7
5 123
6 666 3
7 123 1
8 444
9 444
10 666


So I want to look in Column A for the value 123 and Return the value 1 from B7 since its associated with 123. Since there are multiple 123's in Column A I am not able to get the correct result. I tried using Vlookup and Lookup. I am not getting how to do this. Please help!!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
.........a...........b...........c.............d
1.....123....... ........
2.....444....... 9 ........
3.....666....... ........
4.....888....... 7 ........
5.....123....... ........
6.....666....... 3 ........
7.....123....... 1 ........
8.....444....... ........
9.....444....... ........
10...666....... ........
 
Upvote 0
Welcome to Mr Excel forum

Maybe something like this

A
B
C
D
E
1
123​
Value​
Result​
2
444​
9​
123​
1​
3
666​
444​
9​
4
888​
7​
666​
3​
5
123​
6
666​
3​
7
123​
1​
8
444​
9
444​
10
666​
11

Formula in E2 copied down
=SUMIF(A:A,D2,B:B)

Hope this helps

M.
 
Upvote 0
welcome to mr excel forum

maybe something like this

a
b
c
d
e
1
123​
value​
result​
2
444​
9​
123​
1​
3
666​
444​
9​
4
888​
7​
666​
3​
5
123​
6
666​
3​
7
123​
1​
8
444​
9
444​
10
666​
11

<tbody>
</tbody>


formula in e2 copied down
=sumif(a:a,d2,b:b)

hope this helps

m.


thanks bud! This did the trick
 
Upvote 0

Forum statistics

Threads
1,215,501
Messages
6,125,169
Members
449,212
Latest member
kenmaldonado

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