Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 74
Default IF with date criteria

Hello,
This is my problem:

Column C has text values (Phone, Meeting)
Column F has dates (01/01/2006 - 08/31/2006)
but, Column F also has misc text ("*", ".", "?" or can be blank)
Column H has text values ("AA", "AA-1", "AA-2", ""BB")

I'm trying to find out how many "Phone" calls between 06/01/2006 and
07/31/2006

I'm trying to find out how many "Phone" calls where in the "AA" family
(includes "AA-1" and "AA-2")

When I was just looking for "Phone" and a number 39000 this worked:
{=SUM((C2:C200="Phone")*(F2:F20039000))}
The problem was I couldn't specify a date range, and it counted the other
characters.

Thank-you,
P.S. I learned a lot from the Pearson website
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,593
Default IF with date criteria

=SUMPRODUCT(--(F2:F200=--"2006-06-01"),--(F2:F200<=--"2006-07-32"))

=SUMPRODUCT--(LEFT(H2:H200,2)="AA"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"DTTODGG" wrote in message
...
Hello,
This is my problem:

Column C has text values (Phone, Meeting)
Column F has dates (01/01/2006 - 08/31/2006)
but, Column F also has misc text ("*", ".", "?" or can be blank)
Column H has text values ("AA", "AA-1", "AA-2", ""BB")

I'm trying to find out how many "Phone" calls between 06/01/2006 and
07/31/2006

I'm trying to find out how many "Phone" calls where in the "AA" family
(includes "AA-1" and "AA-2")

When I was just looking for "Phone" and a number 39000 this worked:
{=SUM((C2:C200="Phone")*(F2:F20039000))}
The problem was I couldn't specify a date range, and it counted the other
characters.

Thank-you,
P.S. I learned a lot from the Pearson website



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 74
Default IF with date criteria

Thank you for your quick reply.
I get an error using the second formula. Am I missing something?

"Bob Phillips" wrote:

=SUMPRODUCT(--(F2:F200=--"2006-06-01"),--(F2:F200<=--"2006-07-32"))

=SUMPRODUCT--(LEFT(H2:H200,2)="AA"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"DTTODGG" wrote in message
...
Hello,
This is my problem:

Column C has text values (Phone, Meeting)
Column F has dates (01/01/2006 - 08/31/2006)
but, Column F also has misc text ("*", ".", "?" or can be blank)
Column H has text values ("AA", "AA-1", "AA-2", ""BB")

I'm trying to find out how many "Phone" calls between 06/01/2006 and
07/31/2006

I'm trying to find out how many "Phone" calls where in the "AA" family
(includes "AA-1" and "AA-2")

When I was just looking for "Phone" and a number 39000 this worked:
{=SUM((C2:C200="Phone")*(F2:F20039000))}
The problem was I couldn't specify a date range, and it counted the other
characters.

Thank-you,
P.S. I learned a lot from the Pearson website




  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,593
Default IF with date criteria

Yes a bracket, because I didn't give it to you <g

=SUMPRODUCT(--(LEFT(H2:H200,2)="AA"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"DTTODGG" wrote in message
...
Thank you for your quick reply.
I get an error using the second formula. Am I missing something?

"Bob Phillips" wrote:

=SUMPRODUCT(--(F2:F200=--"2006-06-01"),--(F2:F200<=--"2006-07-32"))

=SUMPRODUCT--(LEFT(H2:H200,2)="AA"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"DTTODGG" wrote in message
...
Hello,
This is my problem:

Column C has text values (Phone, Meeting)
Column F has dates (01/01/2006 - 08/31/2006)
but, Column F also has misc text ("*", ".", "?" or can be blank)
Column H has text values ("AA", "AA-1", "AA-2", ""BB")

I'm trying to find out how many "Phone" calls between 06/01/2006 and
07/31/2006

I'm trying to find out how many "Phone" calls where in the "AA" family
(includes "AA-1" and "AA-2")

When I was just looking for "Phone" and a number 39000 this worked:
{=SUM((C2:C200="Phone")*(F2:F20039000))}
The problem was I couldn't specify a date range, and it counted the

other
characters.

Thank-you,
P.S. I learned a lot from the Pearson website






  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 301
Default IF with date criteria

=SUMPRODUCT(--(C2:C200="Phone"),--(F2:F200=DATEVALUE("01/01/2006")),--(F2:F
200<=DATEVALUE("08/31/2006")))

"DTTODGG" wrote in message
...
Hello,
This is my problem:

Column C has text values (Phone, Meeting)
Column F has dates (01/01/2006 - 08/31/2006)
but, Column F also has misc text ("*", ".", "?" or can be blank)
Column H has text values ("AA", "AA-1", "AA-2", ""BB")

I'm trying to find out how many "Phone" calls between 06/01/2006 and
07/31/2006

I'm trying to find out how many "Phone" calls where in the "AA" family
(includes "AA-1" and "AA-2")

When I was just looking for "Phone" and a number 39000 this worked:
{=SUM((C2:C200="Phone")*(F2:F20039000))}
The problem was I couldn't specify a date range, and it counted the other
characters.

Thank-you,
P.S. I learned a lot from the Pearson website





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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
How to return a value between date ranges Mary-Lou Excel Worksheet Functions 7 May 26th 06 10:00 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Help with using filter criteria with date [email protected] Excel Worksheet Functions 1 December 14th 05 07:31 PM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM


All times are GMT +1. The time now is 09:34 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"