+ Reply to Thread
Results 1 to 13 of 13

sorting data in order

  1. #1
    Forum Contributor
    Join Date
    06-15-2004
    Posts
    246

    sorting data in order

    Hi,

    I have the following formula to sort my data in acsending order.



    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))

    I am after two variations of this. One to sort in descending order and another to sort in acsending order if the cell next to it (column b) contains "Yes"

    Please can you help,

    Help always appreciated,

  2. #2
    ivano
    Guest

    Re: sorting data in order


    "ceemo" <[email protected]> ha scritto nel
    messaggio news:[email protected]...
    >
    > Hi,
    >
    > I have the following formula to sort my data in acsending order.
    >
    >
    >
    >

    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    > A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
    >
    > I am after two variations of this. One to sort in descending order and
    > another to sort in acsending order if the cell next to it (column b)
    > contains "Yes"
    >


    hy,
    try to substitute
    COUNTIF($A$1:$A$6,"<"&$...
    to:
    COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

    ivano



  3. #3
    ivano
    Guest

    Re: sorting data in order


    "ceemo" <[email protected]> ha scritto nel
    messaggio news:[email protected]...
    >
    > Hi,
    >
    > I have the following formula to sort my data in acsending order.
    >
    >
    >
    >

    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    > A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
    >
    > I am after two variations of this. One to sort in descending order and
    > another to sort in acsending order if the cell next to it (column b)
    > contains "Yes"
    >


    hy,
    try to substitute
    COUNTIF($A$1:$A$6,"<"&$...
    to:
    COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

    ivano



  4. #4
    ivano
    Guest

    Re: sorting data in order


    "ceemo" <[email protected]> ha scritto nel
    messaggio news:[email protected]...
    >
    > Hi,
    >
    > I have the following formula to sort my data in acsending order.
    >
    >
    >
    >

    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    > A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
    >
    > I am after two variations of this. One to sort in descending order and
    > another to sort in acsending order if the cell next to it (column b)
    > contains "Yes"
    >


    hy,
    try to substitute
    COUNTIF($A$1:$A$6,"<"&$...
    to:
    COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

    ivano



  5. #5
    ivano
    Guest

    Re: sorting data in order


    "ceemo" <[email protected]> ha scritto nel
    messaggio news:[email protected]...
    >
    > Hi,
    >
    > I have the following formula to sort my data in acsending order.
    >
    >
    >
    >

    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    > A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
    >
    > I am after two variations of this. One to sort in descending order and
    > another to sort in acsending order if the cell next to it (column b)
    > contains "Yes"
    >


    hy,
    try to substitute
    COUNTIF($A$1:$A$6,"<"&$...
    to:
    COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

    ivano



  6. #6
    ivano
    Guest

    Re: sorting data in order


    "ceemo" <[email protected]> ha scritto nel
    messaggio news:[email protected]...
    >
    > Hi,
    >
    > I have the following formula to sort my data in acsending order.
    >
    >
    >
    >

    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    > A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
    >
    > I am after two variations of this. One to sort in descending order and
    > another to sort in acsending order if the cell next to it (column b)
    > contains "Yes"
    >


    hy,
    try to substitute
    COUNTIF($A$1:$A$6,"<"&$...
    to:
    COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

    ivano



  7. #7
    ivano
    Guest

    Re: sorting data in order


    "ceemo" <[email protected]> ha scritto nel
    messaggio news:[email protected]...
    >
    > Hi,
    >
    > I have the following formula to sort my data in acsending order.
    >
    >
    >
    >

    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    > A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
    >
    > I am after two variations of this. One to sort in descending order and
    > another to sort in acsending order if the cell next to it (column b)
    > contains "Yes"
    >


    hy,
    try to substitute
    COUNTIF($A$1:$A$6,"<"&$...
    to:
    COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

    ivano



  8. #8
    ivano
    Guest

    Re: sorting data in order


    "ceemo" <[email protected]> ha scritto nel
    messaggio news:[email protected]...
    >
    > Hi,
    >
    > I have the following formula to sort my data in acsending order.
    >
    >
    >
    >

    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    > A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
    >
    > I am after two variations of this. One to sort in descending order and
    > another to sort in acsending order if the cell next to it (column b)
    > contains "Yes"
    >


    hy,
    try to substitute
    COUNTIF($A$1:$A$6,"<"&$...
    to:
    COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

    ivano



  9. #9
    ivano
    Guest

    Re: sorting data in order


    "ceemo" <[email protected]> ha scritto nel
    messaggio news:[email protected]...
    >
    > Hi,
    >
    > I have the following formula to sort my data in acsending order.
    >
    >
    >
    >

    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    > A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
    >
    > I am after two variations of this. One to sort in descending order and
    > another to sort in acsending order if the cell next to it (column b)
    > contains "Yes"
    >


    hy,
    try to substitute
    COUNTIF($A$1:$A$6,"<"&$...
    to:
    COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

    ivano



  10. #10
    ivano
    Guest

    Re: sorting data in order


    "ceemo" <[email protected]> ha scritto nel
    messaggio news:[email protected]...
    >
    > Hi,
    >
    > I have the following formula to sort my data in acsending order.
    >
    >
    >
    >

    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    > A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
    >
    > I am after two variations of this. One to sort in descending order and
    > another to sort in acsending order if the cell next to it (column b)
    > contains "Yes"
    >


    hy,
    try to substitute
    COUNTIF($A$1:$A$6,"<"&$...
    to:
    COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

    ivano



  11. #11
    ivano
    Guest

    Re: sorting data in order


    "ceemo" <[email protected]> ha scritto nel
    messaggio news:[email protected]...
    >
    > Hi,
    >
    > I have the following formula to sort my data in acsending order.
    >
    >
    >
    >

    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    > A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
    >
    > I am after two variations of this. One to sort in descending order and
    > another to sort in acsending order if the cell next to it (column b)
    > contains "Yes"
    >


    hy,
    try to substitute
    COUNTIF($A$1:$A$6,"<"&$...
    to:
    COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

    ivano



  12. #12
    ivano
    Guest

    Re: sorting data in order


    "ceemo" <[email protected]> ha scritto nel
    messaggio news:[email protected]...
    >
    > Hi,
    >
    > I have the following formula to sort my data in acsending order.
    >
    >
    >
    >

    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    > A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
    >
    > I am after two variations of this. One to sort in descending order and
    > another to sort in acsending order if the cell next to it (column b)
    > contains "Yes"
    >


    hy,
    try to substitute
    COUNTIF($A$1:$A$6,"<"&$...
    to:
    COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

    ivano



  13. #13
    ivano
    Guest

    Re: sorting data in order


    "ceemo" <[email protected]> ha scritto nel
    messaggio news:[email protected]...
    >
    > Hi,
    >
    > I have the following formula to sort my data in acsending order.
    >
    >
    >
    >

    =INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
    > A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
    >
    > I am after two variations of this. One to sort in descending order and
    > another to sort in acsending order if the cell next to it (column b)
    > contains "Yes"
    >


    hy,
    try to substitute
    COUNTIF($A$1:$A$6,"<"&$...
    to:
    COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

    ivano



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1