Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 21
Default Struggling with formula

Hi

I have a spreadsheet withthe following data:

28/08/2008 09/05/2008 HINGE SA28553 8 £1.10 £0.77 £6.16
28/08/2008 09/05/2008 HINGE SA28566 8 £1.10 £0.77 £6.16
20/08/2008 28/08/2008 HINGE SA28389 24 £1.10 £0.77 £18.48
14/08/2008 21/08/2008 HINGE SA28268 12 £0.00 £0.00

What I need to see is the total number of units, of which XXX are Free
of Charge between xxxx date

Sorry, but I am struggling and got so far =COUNTIF(J2:J924,"£0.00")
but struggling with the rest, can anyone help

Ta
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,441
Default Struggling with formula

BabyPink,

In general:

=SUMPRODUCT((FirstDate<=Date"))*(LastDate=Date)*( Price1=0)*(Price2=0)*(Price3=0)*(Count))

FirstDate is the range with the starting dates
Date is a cell with the date of interest xxxx
LastDate is the range with the end dates
Price1,2, and 3 are the ranges with the prices - not sure is all must be zero
Count is the range with the number of units

All the multi-cell ranges should be once column, and the same number of rows ie, J2:J924, H2:H924,
G2:G924 etc.


You could add in another one for the product, too
=SUMPRODUCT((FirstDate<=Date"))*(LastDate=Date)*( Price1=0)*(Price2=0)*(Price3=0)*(Product="SA28389" )*(Count))

or have SA28389 in a cell...


HTH,
Bernie
MS Excel MVP


" wrote in message
...
Hi

I have a spreadsheet withthe following data:

28/08/2008 09/05/2008 HINGE SA28553 8 £1.10 £0.77 £6.16
28/08/2008 09/05/2008 HINGE SA28566 8 £1.10 £0.77 £6.16
20/08/2008 28/08/2008 HINGE SA28389 24 £1.10 £0.77 £18.48
14/08/2008 21/08/2008 HINGE SA28268 12 £0.00 £0.00

What I need to see is the total number of units, of which XXX are Free
of Charge between xxxx date

Sorry, but I am struggling and got so far =COUNTIF(J2:J924,"£0.00")
but struggling with the rest, can anyone help

Ta


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 21
Default Struggling with formula

On 2 Oct, 13:38, "Bernie Deitrick" <deitbe @ consumer dot org wrote:
BabyPink,

In general:

=SUMPRODUCT((FirstDate<=Date"))*(LastDate=Date)*( Price1=0)*(Price2=0)*(Pri*ce3=0)*(Count))

FirstDate is the range with the starting dates
Date is a cell with the date of interest xxxx
LastDate is the range with the end dates
Price1,2, and 3 are the ranges with the prices - not sure is all must be zero
Count is the range with the number of units

All the multi-cell ranges should be once column, and the same number of rows ie, J2:J924, H2:H924,
G2:G924 etc.

You could add in another one for the product, too
=SUMPRODUCT((FirstDate<=Date"))*(LastDate=Date)*( Price1=0)*(Price2=0)*(Pri*ce3=0)*(Product="SA28389 ")*(Count))

or have SA28389 in a cell...

HTH,
Bernie
MS Excel MVP

" wrote in message

...
Hi

I have a spreadsheet withthe following data:

28/08/2008 09/05/2008 HINGE SA28553 8 £1.10 *£0.77 *£6.16
28/08/2008 09/05/2008 HINGE SA28566 8 £1.10 *£0.77 *£6.16
20/08/2008 28/08/2008 HINGE SA28389 24 £1.10 *£0.77 *£18.48
14/08/2008 21/08/2008 HINGE * *SA28268 12 £0.00 *£0.00

What I need to see is the total number of units, of which XXX are Free
of Charge between xxxx date

Sorry, but I am struggling and got so far =COUNTIF(J2:J924,"£0.00")
but struggling with the rest, can anyone help

Ta


Sorry sorry, I have not made it clear, I really do apologise I will
make it more simple

Order Date Description Qty Price
28/08/2008 HINGE SA28553 8 £1.10
28/08/2008 HINGE SA28566 8 £1.10
20/08/2008 HINGE SA28389 24 £1.10
04/08/2008 HINGE SA28268 12 £0.00

So I am looking for the result of "12" units were sold between 1
August 2008 and 28 August 2008
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,441
Default Struggling with formula

With your example table: dates in A, description in B, quantity in C, and price in D:

=SUMPRODUCT((A2:A8=A11)*(A2:A8<=A12)*(D2:D8=0)*C2 :C8)

with Aug 1 in A11 and Aug 28 in A12.

HTH,
Bernie
MS Excel MVP


" wrote in message
...
On 2 Oct, 13:38, "Bernie Deitrick" <deitbe @ consumer dot org wrote:
BabyPink,

In general:

=SUMPRODUCT((FirstDate<=Date"))*(LastDate=Date)*( Price1=0)*(Price2=0)*(Pri*ce3=0)*(Count))

FirstDate is the range with the starting dates
Date is a cell with the date of interest xxxx
LastDate is the range with the end dates
Price1,2, and 3 are the ranges with the prices - not sure is all must be zero
Count is the range with the number of units

All the multi-cell ranges should be once column, and the same number of rows ie, J2:J924, H2:H924,
G2:G924 etc.

You could add in another one for the product, too
=SUMPRODUCT((FirstDate<=Date"))*(LastDate=Date)*( Price1=0)*(Price2=0)*(Pri*ce3=0)*(Product="SA28389 ")*(Count))

or have SA28389 in a cell...

HTH,
Bernie
MS Excel MVP

" wrote in message

...
Hi

I have a spreadsheet withthe following data:

28/08/2008 09/05/2008 HINGE SA28553 8 £1.10 £0.77 £6.16
28/08/2008 09/05/2008 HINGE SA28566 8 £1.10 £0.77 £6.16
20/08/2008 28/08/2008 HINGE SA28389 24 £1.10 £0.77 £18.48
14/08/2008 21/08/2008 HINGE SA28268 12 £0.00 £0.00

What I need to see is the total number of units, of which XXX are Free
of Charge between xxxx date

Sorry, but I am struggling and got so far =COUNTIF(J2:J924,"£0.00")
but struggling with the rest, can anyone help

Ta


Sorry sorry, I have not made it clear, I really do apologise I will
make it more simple

Order Date Description Qty Price
28/08/2008 HINGE SA28553 8 £1.10
28/08/2008 HINGE SA28566 8 £1.10
20/08/2008 HINGE SA28389 24 £1.10
04/08/2008 HINGE SA28268 12 £0.00

So I am looking for the result of "12" units were sold between 1
August 2008 and 28 August 2008


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
Struggling for a formula Steve[_11_] Excel Discussion (Misc queries) 3 November 23rd 07 10:55 AM
Struggling with IF formula...is it even the right one for me? Corradus New Users to Excel 2 April 12th 07 02:44 AM
Struggling IF value Rebecca Excel Discussion (Misc queries) 5 April 6th 06 09:52 PM
Struggling for a solution Baz Excel Worksheet Functions 2 November 21st 05 05:26 PM
Help, I'm Struggling! Fybo New Users to Excel 1 March 4th 05 07:57 PM


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