PC Review


Reply
Thread Tools Rate Thread

Database Functions

 
 
Polly
Guest
Posts: n/a
 
      1st Nov 2007
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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZQ==?=
Guest
Posts: n/a
 
      1st Nov 2007


"Polly" wrote:

> 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
>
> Hi, Polly


Have you tried doing a search of the various rows using "SUMIF"?

For instance, if the Members IDs are in column A, Week Ends in Column B, and
hours worked in column C, then, assuming each column contains (say) 20 names,

Let the code in cell A21(say) be :

=if(sumif(A1:A20,"member ID 1",if(Sumif(B1:B20,"Weekend in
question",C1:C20),"","")

The brackets & etc. may want sorting, as it is a bit off the cuff, but the
basic structure is sound - I've used this type many times.

Basically, the first expression scans the names in A1 to A20, and, where
there is a match, scans the weekend in those rows. If the weekend also
agrees, then it puts the hours into the "sum". When it completes the scan,
the total of hours worked for that individual for that week end will be given.

For cell A22, the parameters could be altered for a different mamber ID, or
a different week end. It's a bit long-winded, but look on the bright side -
you only have to do it once!

Good luck
 
Reply With Quote
 
RB Smissaert
Guest
Posts: n/a
 
      1st Nov 2007
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" <(E-Mail Removed)> 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
>


 
Reply With Quote
 
Polly
Guest
Posts: n/a
 
      1st Nov 2007
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

 
Reply With Quote
 
Polly
Guest
Posts: n/a
 
      1st Nov 2007
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

 
Reply With Quote
 
RB Smissaert
Guest
Posts: n/a
 
      1st Nov 2007
You don't have to put it in a database to use SQL.
Your program director may find SQL easier than
formula's.

RBS

"Polly" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for help with database functions Byrd Microsoft Excel Discussion 1 7th May 2007 06:22 AM
Database Functions =?Utf-8?B?U0pU?= Microsoft Excel Worksheet Functions 2 14th Nov 2006 07:42 PM
efficiency: database functions vs. math functions vs. array formula nickname Microsoft Excel Misc 2 14th Jul 2006 04:26 AM
Database functions =?Utf-8?B?ZWFzeWdvZXI3MTQ=?= Microsoft Excel Worksheet Functions 5 16th Dec 2004 07:10 PM
Re: Database functions Debra Dalgleish Microsoft Excel Worksheet Functions 0 14th Jul 2003 03:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:40 AM.