Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
scoobydoo99
 
Posts: n/a
Default 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

  #2   Report Post  
Grandslam90
 
Posts: n/a
Default 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

  #3   Report Post  
scoobydoo99
 
Posts: n/a
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested vlookup tojo107 Excel Discussion (Misc queries) 1 August 10th 05 11:06 PM
nested ifs or vlookup or ? tannersnonni Excel Discussion (Misc queries) 1 June 1st 05 02:39 AM
Rounding criteria within a nested vlookup and hlookup Jay Z Excel Worksheet Functions 1 March 23rd 05 10:34 PM
Nested if, sum & vlookup Function Trying to excel in life but need help Excel Worksheet Functions 4 January 13th 05 07:29 PM
Nested vlookup? astronautika Excel Worksheet Functions 1 November 19th 04 06:12 PM


All times are GMT +1. The time now is 09:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"