Forum

Notifications
Clear all

Vlookup help

4 Posts
2 Users
0 Reactions
72 Views
(@lokimaq00)
Posts: 2
New Member
Topic starter
 

Admittedly, I'm a vlookup beginner, but I can google like no one's business and this is eluding me!

I have a monthly itemized excel list that comes in and I want to aggregate the info into one sheet. Example, I get May's info, paste it into May's tab and it automatically fills in what I need on the overall 2021 tab. I need the vlookup to scan for the store # and lot size each month and update the amount due. I can get it to scan for the store number, but if I have two lines of store # but the lot sizes are different, it populates only the first line item into the second item. I've tried vlookup and sumifs together and that doesn't seem to work. Any thoughts? Sample attached!

I've attempted the following formulas, yet somehow, the store 523 always seems to be left out for January

=IFERROR(VLOOKUP(A2&B2,Jan!A:D,4,FALSE),"")
=VLOOKUP(A2&B2,CHOOSE({1,2},Jan!A2:A9&Jan!B2:B9,Jan!C2:C9),2,FALSE)
=VLOOKUP(A2&B2,CHOOSE({1,2},B2:B9&C2:C9&D2:D9),2,0)

 
Posted : 03/06/2021 9:46 pm
(@mynda)
Posts: 4762
Member Admin
 

Hi Loki,

Welcome to our forum! The problem you're having using formulas is that your data is not set up in the correct layout to support them. You should always store your source data in a Tabular Layout. You can use Power Query to consolidate the data across the multiple sheets into a tabular layout.

You can then summarise it with a PivotTable. To update the query and the PivotTable, you just click the Refresh All button twice (once for the query and once for the PivotTable). See example file attached.

Mynda

 
Posted : 04/06/2021 5:39 am
(@lokimaq00)
Posts: 2
New Member
Topic starter
 

Oh, wow! Thank you. I'm going to review it and it looks great, but... I'm not that advanced and I have peers that will use this sheet that aren't even at my level, so it needs to be simplified if possible. Is it not possible to use the style of the sheet I originally attached?

 
Posted : 04/06/2021 8:24 am
(@mynda)
Posts: 4762
Member Admin
 

Yes, you can use the layout as you have it. The query will automatically pick up any new data as long as it's stored in the Excel Tables in each month's sheet.

Mynda

 
Posted : 05/06/2021 3:17 am
Share: