vlookup and adding up values

ben123456

New Member
Joined
Jun 17, 2011
Messages
22
Hello,

i want to be able to search a random value and then for it to lookup the value. say "DP0001" add all the ones with "DP0001" up and then search for "DP0002" and all the ones with "DP0002" on the next line.

Excel Workbook
ABCD
1DP000110
2DP00025
3DP00033
4DP00015
5DP00232
6DP00015
7DP000223
8
9
10
Sheet1

Excel Workbook
ABC
1
2DP0001ADDED UP RESULT HERE
3
4DP0002ADDED UP RESULT HERE
5
6
7
Sheet2


but because i have lots of different values with different codes would it be able to search for different values without having to write - search for "DP0001" in the forumula
 
Last edited:

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi,

Maybe

Formula in Sheet2 B2
=IF(A2<>"",SUMIF(Sheet1!$A$1:$A$500,A2,Sheet1!$C$1:$C$500),"")
copy down

HTH

M.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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