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:
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

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