![]() |
Nested Vlookup or alternative?
Hi, Newbie here so take it easy. I have a workbook with 2 worksheets containing two tables of data. The first two columns in each sheet contain a name and a date and the third column contains data I'm trying to compare. The first worksheet is weekly totals with a date for the end of the week. The second worksheet contains daily figures and I'd like to match the names from the first columns then sum the daily totals and compare against the weekly total. Hope this makes sense - I thought a nested vlookup including a sum for the daily figures would do but can't get this to work. Any thoughts, suggestions welcome. -- scoobydoo99 ------------------------------------------------------------------------ scoobydoo99's Profile: http://www.excelforum.com/member.php...o&userid=28411 View this thread: http://www.excelforum.com/showthread...hreadid=480077 |
Nested Vlookup or alternative?
Hey Sccoby, There's lots of different ways to do what you're asking but here's one that might work for you. I have called your weekly data sheet "weekly" and the daily data sheet "daily" - great naming conventions huh ? Column A in both has name, Column B Dates (as date numbers !) and Column C has amounts. The first row of actual data occurs in row 2. In worksheet "Weekly" in cell E2 i have the following formula. =SUMPRODUCT((Daily!$A$2:$A$16=Weekly!A2)*(Daily!$B $2:$B$16<=Weekly!B2)*(Daily!$B$2:$B$16=Weekly!B2-6)*(Daily!$C$2:$C$16)) I have atached a little zip file, at least I hope I have :-) Mike +-------------------------------------------------------------------+ |Filename: Nested Vlookup or alternative.zip | |Download: http://www.excelforum.com/attachment.php?postid=3957 | +-------------------------------------------------------------------+ -- Grandslam90 ------------------------------------------------------------------------ Grandslam90's Profile: http://www.excelforum.com/member.php...o&userid=17408 View this thread: http://www.excelforum.com/showthread...hreadid=480077 |
Nested Vlookup or alternative?
Many thanks Grandslam, worked a treat - can't believe how quickly you responded. :) -- scoobydoo99 ------------------------------------------------------------------------ scoobydoo99's Profile: http://www.excelforum.com/member.php...o&userid=28411 View this thread: http://www.excelforum.com/showthread...hreadid=480077 |
All times are GMT +1. The time now is 07:09 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com