#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Terri
 
Posts: n/a
Default formulas

I am attempting to get results from the following spreadsheet:

Column D Column N
Product No. Date Sold
11 4/15/04
11 5/15/04
11 9/30/04
18 2/22/04
18 7/4/04
18 8/28/04

I have the total number of product no. 11 sold. From the above data I need
to find out how many of Product No. 11 was sold prior to 5/25/04 and how many
were sold after 5/25/04. I've tried COUNTIF, SUM(IF), COUNT(IF), SUMPRODUCT
as array formulas and not. Any assistance would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default formulas

=SUMPRODUT(--(D2:D200=11),--(N2:N200<=--"2006-04-25"))

for prior to 25th April, for after (you will have to decide where the =
goes.

--
HTH

Bob Phillips

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

"Terri" wrote in message
...
I am attempting to get results from the following spreadsheet:

Column D Column N
Product No. Date Sold
11 4/15/04
11 5/15/04
11 9/30/04
18 2/22/04
18 7/4/04
18 8/28/04

I have the total number of product no. 11 sold. From the above data I

need
to find out how many of Product No. 11 was sold prior to 5/25/04 and how

many
were sold after 5/25/04. I've tried COUNTIF, SUM(IF), COUNT(IF),

SUMPRODUCT
as array formulas and not. Any assistance would be appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Terri
 
Posts: n/a
Default formulas

Thanks for replying - all information was helpful. My report is complete now.
Thanks again.
"Bob Phillips" wrote:

=SUMPRODUT(--(D2:D200=11),--(N2:N200<=--"2006-04-25"))

for prior to 25th April, for after (you will have to decide where the =
goes.

--
HTH

Bob Phillips

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

"Terri" wrote in message
...
I am attempting to get results from the following spreadsheet:

Column D Column N
Product No. Date Sold
11 4/15/04
11 5/15/04
11 9/30/04
18 2/22/04
18 7/4/04
18 8/28/04

I have the total number of product no. 11 sold. From the above data I

need
to find out how many of Product No. 11 was sold prior to 5/25/04 and how

many
were sold after 5/25/04. I've tried COUNTIF, SUM(IF), COUNT(IF),

SUMPRODUCT
as array formulas and not. Any assistance would be appreciated.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default formulas

Hi Terri

One way
=SUMPRODUCT(--($D$2:$D$100=11),--($N$2:$N$100<DATE(2004,5,25))
This assumes the data in column D is numeric. If it is text, then wrap
the 11 in quotes "11".
Change the operator to <= if you want to also include 5/25/04.
Repeat the procedure with operator changed to to find answer for after
5/25/04.
Change size of ranges to suit, but keep them of equal length.

--
Regards

Roger Govier


"Terri" wrote in message
...
I am attempting to get results from the following spreadsheet:

Column D Column N
Product No. Date Sold
11 4/15/04
11 5/15/04
11 9/30/04
18 2/22/04
18 7/4/04
18 8/28/04

I have the total number of product no. 11 sold. From the above data I
need
to find out how many of Product No. 11 was sold prior to 5/25/04 and
how many
were sold after 5/25/04. I've tried COUNTIF, SUM(IF), COUNT(IF),
SUMPRODUCT
as array formulas and not. Any assistance would be appreciated.





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 to change column letters to correct ones in many formulas automatically? Dmitry Kopnichev Links and Linking in Excel 7 October 13th 05 09:52 PM
how can i get formulas in excel to copy and paste? bman Excel Worksheet Functions 1 October 3rd 05 04:15 PM
How to make Excel run limited number of formulas on a given worksh John Excel Discussion (Misc queries) 0 January 12th 05 04:29 PM
Way to make Excel only run certain formulas on a worksheet? jrusso Excel Discussion (Misc queries) 0 January 12th 05 04:23 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


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

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"