RE: Formula Help



Hi,

Try this

=SUMPRODUCT(--($J$2:$J$25=$A2),--($P$2:$P$25<=B$1))

This assumes you output table starts in A1 with labels in the first column
and first row. Also instead of 1-5, just enter the upper value in B1:E1. If
you want to display it as 1-5 you can use a custom format. So the top row
reads 5 , 10, 15....

A minor point you have overlapping ranges in your example 1-5 and 5-10...

--
Thanks,
Shane Devenshire


"Liz J" wrote:

I am looking at an order file with approximately 3000 sales orders. Column J
is the item #, and column P is the order quantity (in pieces). I want to
manipulate this data such that the file will show units per order by item #
within a range of increments of 5 pieces: 0-5 pieces, 5-10 pieces, and so on,
without adding the order quanities as would happen with pivot table.

For example, I would want to have something like this
0-5pcs per order 5-10pcs per order 10-15pcs per order
Item #
1
2
3
4


Could I use a formula? Or, is there a better route to manipulate this data?
My goal is to find out, based on historical orders, how much of an item
number customers are buying at a time. So, based off of properly grouping
this data, I might conclude that the majorty of the orders for item # 1 are
made in quantities of 16psc, item # 2, majority of orders are made in
quanities of 7, and so on. I would appreciate any suggestions on how excel
could benefit my research.

Thanks for your help!


.



Relevant Pages

  • Re: Splitter problem
    ... first row and the first column. ... But I think your assertion is caused by the fact that the first row/column ... // create vertical splitter window first ... > and change the splitter so that it splits the first column, ...
    (microsoft.public.vc.mfc)
  • Re: missing commas when saving excel as CSV
    ... > I have a very strange symptom that occurs when saving a CSV file from excel. ... > entered into the first column but not the second. ... > CSV, the first row obviously has a comma between the two values, and the ... the 16th and subsequent rows have no comma. ...
    (microsoft.public.excel.misc)
  • Re: Copy data from Excel (Ctrl+C) text number
    ... If the first row first column in excel is numeric, and the rest in the first ... Access has much stronger datatyping than Excel. ...
    (microsoft.public.access.forms)
  • Re: SUM of certain cells after Autofilter
    ... Where are you putting the SUBTOTAL formula? ... Try inserting a row above your first row and putting the formula there. ... adjhust range to suit ... After Autofilter regarding x in any column the sum of VISIBLE cells with the value 2 should be calculated (e.g. 2 for the first column and 4 for the second one). ...
    (microsoft.public.excel)
  • Re: sorting data
    ... It sounds to me that AutoFilter would get you closer. ... to group all of product number together, manipulate which dates you are ... It's best if the first row of the selection ...
    (microsoft.public.excel)