Learn Excel - VLOOKUP into Subtotaled Data - Podcast 1882

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on May 1, 2014.
On Sheet 1, you have customer data with subtotals added by the Subtotal command. On Sheet 2, you have a list of customers. How do you do VLOOKUP from Sheet 2 to get the total for each customer from Sheet 1?

This question was posed during my Fort Wayne seminar. In episode 1882, two possible ways to solve the problem.
maxresdefault.jpg


Transcript of the video:
The MrExcel Podcast is sponsored by Easy-XL.
Learn Exel from MrExcel podcast. Episode 1882 - VLOOKUP into Subtotal data Hey welcome back to MrExcel netcast. I'm Bill Jelen.
Another question from the Fort Wayne seminar.
So we have data here that has been subtotaled right using data subtotals in each changing customer has subtotals here.
And then we have another sheet with a list of customers and we have two VLOOKUP from this sheet back into the other sheet.
Let's see if we get these side-by-side New Window View Arrange All Vertical and then we can see what the data looks like and two methods all right so my first method is I'm thinking about this you have AIG and the words AIG Total is not to use a VLOOKUP at all we can actually use =SUMIF Someone have said if the sum range is over here in column F comma and then we want to look through column D to see if it is equal to this customer here and by using SUMIFs we will get the right answer all the way down.
So my first inclination was not to do a VLOOKUP at all but if we really want to do a VLOOKUP then =VLOOKUP of this customer concatenated with a space and the word Total into outside columns D E and F ,3,False and we get the same answers all right. Someone said well hey, Why don't you just collapse this down to the number to view and select visible cells and copy well you know because in real life sometimes you know we have to populate data into a report that's already there, and you know lots of reasons so a couple of different ways to go here to get a VLOOKUP into subtotal data.
The first one is not to use VLOOKUP at all just to use SUMIFs and count on the fact that the subtotal rows have the word total.
The other one to actually concatenate the space Total after the customer name and that will grab the totals from the subtotal rows.
Two very different ways to go.
I thought that was a great question coming out of the power excel seminar in Fort Wayne.
I'll be in Tampa Florida the next week May 9th for another power excel seminar.
Hopefully we'll get lots of more good tips and questions coming out of that seminar Which ofcourse will make it to the podcast in case you can't be there.
Well, hey I want to thank you for stopping by.Will see you next time for other netcast from MrExcel.
 

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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