vlookup using a subtotalled data range

Sannafay

New Member
Joined
May 13, 2011
Messages
10
I'm having issues with the vlookup function. The data range that I'm using has more than one value for each material. I'm trying to return a totalled value for each material using the vlookup. I've done a subtotal for the field, copied the totals (using the Alt semicolon to get just the totalled values), and it doens't work. Help???:confused:
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I'm not familiar with this function. I'll have to research it. It will bring back the totalled value? Thanks for the suggestion!
 
Upvote 0
I'm not familiar with this function. I'll have to research it. It will bring back the totalled value? Thanks for the suggestion!

=SUMIF(A2:A10,"Tom",B2:B10)

sums all figures from B2:B10 which correspond to
the occurrences of Tom in A2:A10.
 
Upvote 0
My problem is that there may be no value, one value or several values. Are you saying to put my data into a table format so the sumif could give me a value prior to the vlookup?
 
Upvote 0
My problem is that there may be no value, one value or several values. Are you saying to put my data into a table format so the sumif could give me a value prior to the vlookup?

VLOOKUP does not total anything. I just attempted a guess that you would
need something like SumIf, a conditionally totaling function. If that's of the ball park, try to post a tiny sample
along with the desired result(s).
 
Upvote 0
maybe this can get your started ...


Excel Workbook
BCDEFG
17Assuming your data looks something like this*****
18MaterialValue**MaterialTot-Value
19Mat-2458**Mat-1134
20Mat-1134**Mat-2721
21Mat-2263**Mat-3339
22Mat-5316**Mat-4368
23Mat-5356**Mat-51114
24Mat-30****
25Mat-40****
26Mat-3339****
27Mat-5442****
28Mat-4368****
29******
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

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