#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default 'If' Query

Hi,
Im developing a Time tracker spreasheet for my team.

In this i have some fields - 'Status', a list that contains {Office,
Holiday, On Leave} and Hours field.

At the bottom of the sheet i have columns - Total Utilized Hours, Total
hours on Leave.

My query is that i have to calculate the Total Hours on Leave (only the
fields that have Status='Holiday' and its respective Hours).

Kindly help me.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default 'If' Query

=SUMIF(A2:A20,"Holiday",B2:B20)

etc.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Prady" wrote in message
...
Hi,
Im developing a Time tracker spreasheet for my team.

In this i have some fields - 'Status', a list that contains {Office,
Holiday, On Leave} and Hours field.

At the bottom of the sheet i have columns - Total Utilized Hours, Total
hours on Leave.

My query is that i have to calculate the Total Hours on Leave (only the
fields that have Status='Holiday' and its respective Hours).

Kindly help me.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default 'If' Query

With the status in column A and the amount of time in column B try:-

=SUMIF(A1:A100,"=holiday",B1:B100)

Mike

"Prady" wrote:

Hi,
Im developing a Time tracker spreasheet for my team.

In this i have some fields - 'Status', a list that contains {Office,
Holiday, On Leave} and Hours field.

At the bottom of the sheet i have columns - Total Utilized Hours, Total
hours on Leave.

My query is that i have to calculate the Total Hours on Leave (only the
fields that have Status='Holiday' and its respective Hours).

Kindly help me.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default 'If' Query

Thanks a lot Bob and Mike.... It really helped me..

Thx,
Prady

"Mike H" wrote:

With the status in column A and the amount of time in column B try:-

=SUMIF(A1:A100,"=holiday",B1:B100)

Mike

"Prady" wrote:

Hi,
Im developing a Time tracker spreasheet for my team.

In this i have some fields - 'Status', a list that contains {Office,
Holiday, On Leave} and Hours field.

At the bottom of the sheet i have columns - Total Utilized Hours, Total
hours on Leave.

My query is that i have to calculate the Total Hours on Leave (only the
fields that have Status='Holiday' and its respective Hours).

Kindly help me.

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
Importing Data via Web Query - Can values be passed to query? [email protected] Excel Discussion (Misc queries) 5 May 9th 06 06:21 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 1 November 29th 05 01:44 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM
Microsoft Query rejects "nz" function in Access Query Vaughan Excel Discussion (Misc queries) 0 May 4th 05 05:20 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 01:04 AM.

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

About Us

"It's about Microsoft Excel"