On Nov 1, 6:48 pm, Polly <IHSf...@gmail.com> wrote:
> On Nov 1, 6:42 pm, "RB Smissaert" <bartsmissa...@blueyonder.co.uk>
> wrote:
>
>
>
>
>
> > It might be worth to look into using SQL. It may need a bit of learning
> > but it will make these queries a lot easier. Excel could still be the
> > database or you could move to a real database.
>
> > RBS
>
> > "Polly" <IHSf...@gmail.com> wrote in message
>
> >news:(E-Mail Removed)...
>
> > > Hello all, I'm hoping someone can help me figure this out. I have
> > > tried vlookup, lookup, if statements and DGet - with no luck. What I
> > > have:
>
> > > Workbook with 3 spreadsheets.
>
> > > Sheet 1 contains entries of hours worked with the following relevant
> > > fields:
> > > Member ID, Week Ending, Hours
>
> > > Sheet 2 - Detailed info on members
>
> > > Sheet 3 is a monthly report that I need to hand out detailing the
> > > hours entered per month:
>
> > > A1 - Member ID
>
> > > B1 - Weekending
>
> > > B2 - Hours worked
>
> > > So, I need to search sheet 1 where the Member ID (A1) and Week Ending
> > > (B1) match and then return into sheet 3, the hours worked (B2)
>
> > > Sheet one will eventually contain 52 weeks for each of our 30 members.
> > > But there will only be one weekending for each member, ie - Member one
> > > will have only one entry for weekending 10/7/2007, etc... so both
> > > criteria must match.
>
> > > Thank you.
>
> > > Polly- Hide quoted text -
>
> > - Show quoted text -
>
> O would love to use SQL and put it into a real database - but my
> program director refuses to discuss the idea. He doesn't know enough
> about them...but then again, he can't ever understand the excel
> formulas I use either!! - Pete, I will try the sumif - seems like it
> would work. I'll let you know!
>
> Thanks
>
> Polly- Hide quoted text -
>
> - Show quoted text -
Ok - I used this:
=SUMIFS('Hours Worked'!$G:$G,'Hours Worked'!$A:$A,'Member Report'!$B
$1,'Hours Worked'!$E:$E,'Member Report'!$A7)
new function provided with Excel 2007 - sumifs(sum_range,
criteria1_range, criteria1, criteria2_range, criteria2...etc)
which worked perfect! - Thanks for the help
Polly