Re: sorting data

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dave Peterson (ec35720_at_msn.com)
Date: 10/21/04


Date: Thu, 21 Oct 2004 17:10:31 -0500

How about this:

(I'm gonna assume that you have headers in row 1)

Insert a new column A.
In the new A1, put:
Min Date

In A2, put this formula:
=TEXT(MIN(IF($B$2:$B$30=B2,$C$2:$C$30)),"yyyy/mm/dd")
Adjust 30 to your last row.
But hit ctrl-shift-enter (instead of just enter).
This is an array formula and if you do it correctly, excel will wrap your
formula with curly brackets {}.

Drag it down your range.

Now sort by the min date field with a secondary sort of Product number and a
tertiary sort of production date.

(You can delete column A if you want when your done--or keep it if you need it
later.)

Ivan wrote:
>
> I have a particular sorting requirement I need help with.
>
> The spread sheet is very simple, basically an inventory file with columns
> representing the following data:
> Column A: five digit product number
> Column B: the production date of that product
> (there are other columns representing information that is irrelevant)
> The report contains several hundred rows of entries.
> Individual product numbers are entered several times with as many different
> production dates.
> I must use this data to create a report that is sorted FIRSTLY by
> production date in ascending order.
> However, all product numbers must be contingent. That is to say that when
> the first date of a particular product number comes up all the remaining
> entries for that product must follow.
>
> Is there a way? Sorry for the naive question. I'm just a warehouse grunt.
> Ivan

-- 
Dave Peterson
ec35720@msn.com


Relevant Pages

  • Re: Report in FM 6 or 7
    ... Please adivse on this- and then, I get to attack this report again in ... you cannot sort by AgeDivision_Category and why the Export/Import ... act they want to be the last act of the show, they have to sort by their ... If the Age Division field contains data in the form "3-5 Age Division" ...
    (comp.databases.filemaker)
  • Re: Report in FM 6 or 7
    ... Please adivse on this- and then, I get to attack this report again in ... you cannot sort by AgeDivision_Category and why the Export/Import ... act they want to be the last act of the show, they have to sort by their ... If the Age Division field contains data in the form "3-5 Age Division" ...
    (comp.databases.filemaker)
  • Re: sort in report
    ... "fredg" wrote: ... date on my report. ... fields I would like to sort on in a report: ... so the format is irrelevant). ...
    (microsoft.public.access.gettingstarted)
  • Re: Report in FM 6 or 7
    ... Please adivse on this- and then, I get to attack this report again in ... you cannot sort by AgeDivision_Category and why the Export/Import ... act they want to be the last act of the show, they have to sort by their ... If the Age Division field contains data in the form "3-5 Age Division" ...
    (comp.databases.filemaker)
  • Re: "Sort" a combination of letters and numbers e.g. 20, 21a,200,
    ... The sorting for the report works beautifully, however, any VBA code ... Sometimes I will want to sort by a) area and then b) Tag, ... I only have one piece of code in my database so far, ...
    (microsoft.public.access.reports)