Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default SUMIFS with dates

I have calls log in a sheet(All Call Details) with columns as follows:
Type,Date,Time,Number,"Duration/Volume",Amount,D,OperatorName,Day
respectively from A thru J.

In another sheet (Bill Summaries) i have two cells H5 and H6 with starting
and ending dates of this billing period. Now i want to retrieve all the call
charges with type "OG Local" and "OG National" within these dates. I used the
following function in one cell in Bill Summaries sheet.

=SUMIFS('All Call Details'!F:F,'All Call Details'!A:A,"OG*",'All Call
Details'!B:B,"'Bill Summaries'!H5",'All Call Details'!B:B,"<'Bill
Summaries'!H6")

The result is 0. I guess the problem is with dates. I tried giving them
directly but of no use.
Please note: I used SUMIFS from Excel 2007
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIFS with dates

Try this:

=SUMPRODUCT(--(LEFT('All Call Details'!A1:A100,2)="OG"),--('All Call
Details'!B1:B100'Bill Summaries'!H5),--('All Call Details'!B1:B100<'Bill
Summaries'!H6),'All Call Details'!F1:F100)

Biff

"Chinni Krishna Reddy" wrote
in message ...
I have calls log in a sheet(All Call Details) with columns as follows:
Type,Date,Time,Number,"Duration/Volume",Amount,D,OperatorName,Day
respectively from A thru J.

In another sheet (Bill Summaries) i have two cells H5 and H6 with starting
and ending dates of this billing period. Now i want to retrieve all the
call
charges with type "OG Local" and "OG National" within these dates. I used
the
following function in one cell in Bill Summaries sheet.

=SUMIFS('All Call Details'!F:F,'All Call Details'!A:A,"OG*",'All Call
Details'!B:B,"'Bill Summaries'!H5",'All Call Details'!B:B,"<'Bill
Summaries'!H6")

The result is 0. I guess the problem is with dates. I tried giving them
directly but of no use.
Please note: I used SUMIFS from Excel 2007



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default SUMIFS with dates

Chinni Krishna Reddy wrote...
....
=SUMIFS('All Call Details'!F:F,'All Call Details'!A:A,"OG*",
'All Call Details'!B:B,"'Bill Summaries'!H5",
'All Call Details'!B:B,"<'Bill Summaries'!H6")

The result is 0. I guess the problem is with dates. I tried giving
them directly but of no use.
Please note: I used SUMIFS from Excel 2007


The problem is your date criteria syntax, not with the dates. The
criterion "'Bill Summaries'!H5" is a comparison to the TEXT STRING
"'Bill Summaries'!H5" rather than the value in 'Bill Summaries'!H5.
Change your formula to

=SUMIFS('All Call Details'!F:F,'All Call Details'!A:A,"OG*",
'All Call Details'!B:B,""&'Bill Summaries'!H5,
'All Call Details'!B:B,"<"&'Bill Summaries'!H6)

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
SUMIFS() error? fgrose Excel Worksheet Functions 6 October 29th 09 05:05 PM
Excel CountIfs() and SumIfs() question Harlan Grove Excel Worksheet Functions 1 September 18th 07 12:12 AM
Using Sumifs combined with an "Or" mike_vr Excel Discussion (Misc queries) 4 March 30th 07 08:32 AM
SumIfs timson Excel Discussion (Misc queries) 3 January 26th 07 07:46 PM
[Excel 2007 Beta2] Function SUMIFS Franz Verga Excel Worksheet Functions 3 June 20th 06 11:53 PM


All times are GMT +1. The time now is 09:06 AM.

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

About Us

"It's about Microsoft Excel"