+ Reply to Thread
Results 1 to 16 of 16

Return unique fields only - but not a filter?

  1. #1
    Harlan Grove
    Guest

    Re: Return unique fields only - but not a filter?

    Matt wrote...
    >I think my issue is best displayed with an example:
    >
    >Here's my rows of data:
    >
    >Column A
    >Bob
    >Dave
    >Dave
    >Eric
    >Simon
    >Simon
    >Simon
    >Simon
    >Tom
    >etc....

    ....

    I'll assume this is in Sheet1!A1:A10000.

    >Is there a formula that can return the following:
    >Bob
    >Dave
    >Eric
    >Simon
    >Tom
    >etc...

    ....

    Enter the following formulas in Sheet2.

    A1:
    =Sheet1!A1

    A2 [array formula]:
    =IF(SUMPRODUCT(COUNTIF(A$1:A1,Sheet1!A$1:A$10000))
    <COUNTA(Sheet1!A$1:A$10000),INDEX(Sheet1!A$1:A$10000,MATCH(0,
    COUNTIF(A$1:A1,Sheet1!A$1:A$10000),0)),"")

    Select A2 and fill down as needed, worst case into Sheet2!A3:A10000.


  2. #2
    Domenic
    Guest

    Re: Return unique fields only - but not a filter?

    Assuming that A2:A10 contains your data...

    B2:

    =SUMPRODUCT((A2:A10<>"")/COUNTIF(A2:A10,A2:A10&""))

    C2, copied down:

    =IF(ROWS($C$1:C1)<=$B$2,INDEX(A2:$A$10,MATCH(0,COUNTIF($C$1:C1,A2:$A$10),
    0)),"")

    ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

    In article <[email protected]>,
    "Matt" <[email protected]> wrote:

    > I think my issue is best displayed with an example:
    >
    >
    > Here's my rows of data:
    >
    >
    > Column A
    > Bob
    > Dave
    > Dave
    > Eric
    > Simon
    > Simon
    > Simon
    > Simon
    > Tom
    > etc....
    >
    > Obviously there's other columns of data associated with each person.
    >
    >
    > Is there a formula that can return the following:
    > Bob
    > Dave
    > Eric
    > Simon
    > Tom
    > etc...
    >
    >
    > i.e. only the unique fields from the array?
    >
    > I want to return the unique fields on a different sheet and then use
    > sumif on them to get the required results. I can't realy use
    > filters/advanced filters etc as I want the user to only have to paste
    > in his appropriate data and then move to the other sheet and see his
    > results.
    >
    > Can anyone help?
    >
    > Thanks
    > Matt


  3. #3
    Matt
    Guest

    Re: Return unique fields only - but not a filter?

    Cheers guys - problem solved. I think I need to read up on array
    formulas.


  4. #4
    Harlan Grove
    Guest

    Re: Return unique fields only - but not a filter?

    Matt wrote...
    >I think my issue is best displayed with an example:
    >
    >Here's my rows of data:
    >
    >Column A
    >Bob
    >Dave
    >Dave
    >Eric
    >Simon
    >Simon
    >Simon
    >Simon
    >Tom
    >etc....

    ....

    I'll assume this is in Sheet1!A1:A10000.

    >Is there a formula that can return the following:
    >Bob
    >Dave
    >Eric
    >Simon
    >Tom
    >etc...

    ....

    Enter the following formulas in Sheet2.

    A1:
    =Sheet1!A1

    A2 [array formula]:
    =IF(SUMPRODUCT(COUNTIF(A$1:A1,Sheet1!A$1:A$10000))
    <COUNTA(Sheet1!A$1:A$10000),INDEX(Sheet1!A$1:A$10000,MATCH(0,
    COUNTIF(A$1:A1,Sheet1!A$1:A$10000),0)),"")

    Select A2 and fill down as needed, worst case into Sheet2!A3:A10000.


  5. #5
    Domenic
    Guest

    Re: Return unique fields only - but not a filter?

    Assuming that A2:A10 contains your data...

    B2:

    =SUMPRODUCT((A2:A10<>"")/COUNTIF(A2:A10,A2:A10&""))

    C2, copied down:

    =IF(ROWS($C$1:C1)<=$B$2,INDEX(A2:$A$10,MATCH(0,COUNTIF($C$1:C1,A2:$A$10),
    0)),"")

    ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

    In article <[email protected]>,
    "Matt" <[email protected]> wrote:

    > I think my issue is best displayed with an example:
    >
    >
    > Here's my rows of data:
    >
    >
    > Column A
    > Bob
    > Dave
    > Dave
    > Eric
    > Simon
    > Simon
    > Simon
    > Simon
    > Tom
    > etc....
    >
    > Obviously there's other columns of data associated with each person.
    >
    >
    > Is there a formula that can return the following:
    > Bob
    > Dave
    > Eric
    > Simon
    > Tom
    > etc...
    >
    >
    > i.e. only the unique fields from the array?
    >
    > I want to return the unique fields on a different sheet and then use
    > sumif on them to get the required results. I can't realy use
    > filters/advanced filters etc as I want the user to only have to paste
    > in his appropriate data and then move to the other sheet and see his
    > results.
    >
    > Can anyone help?
    >
    > Thanks
    > Matt


  6. #6
    Matt
    Guest

    Re: Return unique fields only - but not a filter?

    Cheers guys - problem solved. I think I need to read up on array
    formulas.


  7. #7
    Harlan Grove
    Guest

    Re: Return unique fields only - but not a filter?

    Matt wrote...
    >I think my issue is best displayed with an example:
    >
    >Here's my rows of data:
    >
    >Column A
    >Bob
    >Dave
    >Dave
    >Eric
    >Simon
    >Simon
    >Simon
    >Simon
    >Tom
    >etc....

    ....

    I'll assume this is in Sheet1!A1:A10000.

    >Is there a formula that can return the following:
    >Bob
    >Dave
    >Eric
    >Simon
    >Tom
    >etc...

    ....

    Enter the following formulas in Sheet2.

    A1:
    =Sheet1!A1

    A2 [array formula]:
    =IF(SUMPRODUCT(COUNTIF(A$1:A1,Sheet1!A$1:A$10000))
    <COUNTA(Sheet1!A$1:A$10000),INDEX(Sheet1!A$1:A$10000,MATCH(0,
    COUNTIF(A$1:A1,Sheet1!A$1:A$10000),0)),"")

    Select A2 and fill down as needed, worst case into Sheet2!A3:A10000.


  8. #8
    Domenic
    Guest

    Re: Return unique fields only - but not a filter?

    Assuming that A2:A10 contains your data...

    B2:

    =SUMPRODUCT((A2:A10<>"")/COUNTIF(A2:A10,A2:A10&""))

    C2, copied down:

    =IF(ROWS($C$1:C1)<=$B$2,INDEX(A2:$A$10,MATCH(0,COUNTIF($C$1:C1,A2:$A$10),
    0)),"")

    ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

    In article <[email protected]>,
    "Matt" <[email protected]> wrote:

    > I think my issue is best displayed with an example:
    >
    >
    > Here's my rows of data:
    >
    >
    > Column A
    > Bob
    > Dave
    > Dave
    > Eric
    > Simon
    > Simon
    > Simon
    > Simon
    > Tom
    > etc....
    >
    > Obviously there's other columns of data associated with each person.
    >
    >
    > Is there a formula that can return the following:
    > Bob
    > Dave
    > Eric
    > Simon
    > Tom
    > etc...
    >
    >
    > i.e. only the unique fields from the array?
    >
    > I want to return the unique fields on a different sheet and then use
    > sumif on them to get the required results. I can't realy use
    > filters/advanced filters etc as I want the user to only have to paste
    > in his appropriate data and then move to the other sheet and see his
    > results.
    >
    > Can anyone help?
    >
    > Thanks
    > Matt


  9. #9
    Matt
    Guest

    Re: Return unique fields only - but not a filter?

    Cheers guys - problem solved. I think I need to read up on array
    formulas.


  10. #10
    Harlan Grove
    Guest

    Re: Return unique fields only - but not a filter?

    Matt wrote...
    >I think my issue is best displayed with an example:
    >
    >Here's my rows of data:
    >
    >Column A
    >Bob
    >Dave
    >Dave
    >Eric
    >Simon
    >Simon
    >Simon
    >Simon
    >Tom
    >etc....

    ....

    I'll assume this is in Sheet1!A1:A10000.

    >Is there a formula that can return the following:
    >Bob
    >Dave
    >Eric
    >Simon
    >Tom
    >etc...

    ....

    Enter the following formulas in Sheet2.

    A1:
    =Sheet1!A1

    A2 [array formula]:
    =IF(SUMPRODUCT(COUNTIF(A$1:A1,Sheet1!A$1:A$10000))
    <COUNTA(Sheet1!A$1:A$10000),INDEX(Sheet1!A$1:A$10000,MATCH(0,
    COUNTIF(A$1:A1,Sheet1!A$1:A$10000),0)),"")

    Select A2 and fill down as needed, worst case into Sheet2!A3:A10000.


  11. #11
    Domenic
    Guest

    Re: Return unique fields only - but not a filter?

    Assuming that A2:A10 contains your data...

    B2:

    =SUMPRODUCT((A2:A10<>"")/COUNTIF(A2:A10,A2:A10&""))

    C2, copied down:

    =IF(ROWS($C$1:C1)<=$B$2,INDEX(A2:$A$10,MATCH(0,COUNTIF($C$1:C1,A2:$A$10),
    0)),"")

    ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

    In article <[email protected]>,
    "Matt" <[email protected]> wrote:

    > I think my issue is best displayed with an example:
    >
    >
    > Here's my rows of data:
    >
    >
    > Column A
    > Bob
    > Dave
    > Dave
    > Eric
    > Simon
    > Simon
    > Simon
    > Simon
    > Tom
    > etc....
    >
    > Obviously there's other columns of data associated with each person.
    >
    >
    > Is there a formula that can return the following:
    > Bob
    > Dave
    > Eric
    > Simon
    > Tom
    > etc...
    >
    >
    > i.e. only the unique fields from the array?
    >
    > I want to return the unique fields on a different sheet and then use
    > sumif on them to get the required results. I can't realy use
    > filters/advanced filters etc as I want the user to only have to paste
    > in his appropriate data and then move to the other sheet and see his
    > results.
    >
    > Can anyone help?
    >
    > Thanks
    > Matt


  12. #12
    Matt
    Guest

    Re: Return unique fields only - but not a filter?

    Cheers guys - problem solved. I think I need to read up on array
    formulas.


  13. #13
    Matt
    Guest

    Return unique fields only - but not a filter?

    I think my issue is best displayed with an example:


    Here's my rows of data:


    Column A
    Bob
    Dave
    Dave
    Eric
    Simon
    Simon
    Simon
    Simon
    Tom
    etc....

    Obviously there's other columns of data associated with each person.


    Is there a formula that can return the following:
    Bob
    Dave
    Eric
    Simon
    Tom
    etc...


    i.e. only the unique fields from the array?

    I want to return the unique fields on a different sheet and then use
    sumif on them to get the required results. I can't realy use
    filters/advanced filters etc as I want the user to only have to paste
    in his appropriate data and then move to the other sheet and see his
    results.

    Can anyone help?

    Thanks
    Matt


  14. #14
    Harlan Grove
    Guest

    Re: Return unique fields only - but not a filter?

    Matt wrote...
    >I think my issue is best displayed with an example:
    >
    >Here's my rows of data:
    >
    >Column A
    >Bob
    >Dave
    >Dave
    >Eric
    >Simon
    >Simon
    >Simon
    >Simon
    >Tom
    >etc....

    ....

    I'll assume this is in Sheet1!A1:A10000.

    >Is there a formula that can return the following:
    >Bob
    >Dave
    >Eric
    >Simon
    >Tom
    >etc...

    ....

    Enter the following formulas in Sheet2.

    A1:
    =Sheet1!A1

    A2 [array formula]:
    =IF(SUMPRODUCT(COUNTIF(A$1:A1,Sheet1!A$1:A$10000))
    <COUNTA(Sheet1!A$1:A$10000),INDEX(Sheet1!A$1:A$10000,MATCH(0,
    COUNTIF(A$1:A1,Sheet1!A$1:A$10000),0)),"")

    Select A2 and fill down as needed, worst case into Sheet2!A3:A10000.


  15. #15
    Domenic
    Guest

    Re: Return unique fields only - but not a filter?

    Assuming that A2:A10 contains your data...

    B2:

    =SUMPRODUCT((A2:A10<>"")/COUNTIF(A2:A10,A2:A10&""))

    C2, copied down:

    =IF(ROWS($C$1:C1)<=$B$2,INDEX(A2:$A$10,MATCH(0,COUNTIF($C$1:C1,A2:$A$10),
    0)),"")

    ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

    In article <[email protected]>,
    "Matt" <[email protected]> wrote:

    > I think my issue is best displayed with an example:
    >
    >
    > Here's my rows of data:
    >
    >
    > Column A
    > Bob
    > Dave
    > Dave
    > Eric
    > Simon
    > Simon
    > Simon
    > Simon
    > Tom
    > etc....
    >
    > Obviously there's other columns of data associated with each person.
    >
    >
    > Is there a formula that can return the following:
    > Bob
    > Dave
    > Eric
    > Simon
    > Tom
    > etc...
    >
    >
    > i.e. only the unique fields from the array?
    >
    > I want to return the unique fields on a different sheet and then use
    > sumif on them to get the required results. I can't realy use
    > filters/advanced filters etc as I want the user to only have to paste
    > in his appropriate data and then move to the other sheet and see his
    > results.
    >
    > Can anyone help?
    >
    > Thanks
    > Matt


  16. #16
    Matt
    Guest

    Re: Return unique fields only - but not a filter?

    Cheers guys - problem solved. I think I need to read up on array
    formulas.


+ 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