+ Reply to Thread
Results 1 to 13 of 13

Sorting by Team

  1. #1
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Sorting by Team

    Hello Excelers ,

    I need one of you to help me out with this one?

    Attached is a small example of a larger spreadsheet, I print out for each team their areas, so the print area is from column B to column H. I need a formula in B1 to give me the Team name when I filter the list, for example if I sort by Team C, I want "Team C" to be displayed in B1 or sort by Team D, "Team D" to be displayed. Any ideas?

    oldchippy
    Attached Files Attached Files

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Oldchippy,

    I am very happy to share with you a nice j-walk function ...

    http://j-walk.com/ss/excel/usertips/tip044.htm

    All the Best !!!

    Carim

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try this link

    http://www.j-walk.com/ss/excel/usertips/tip044.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Thanks Carim,

    Very impressed with your quick response - 3 minutes not bad!

    Cheers

    oldchippy

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Thanks VBA Noob too

    I knew you or Carim would be first to respond

    All the best

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    It is "almost impossible" to beat VBA Noob, who is always complaining about how slow I am ...

    Cheers
    Carim

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No problem

    Just sent Carim a message telling him he's to quick.

    VBA Noob

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Beat me again...Dam



    VBA Noob

  9. #9
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Ok Guys I need a little more help here with this VBA stuff

    I find this like a different language and just can't get my head round it.

    I've made use of the link you gave me and got the macro to work, but when I change the filter criteria to get cell B1 to update to the correct filtered team I have to click in the formula bar on the right of the formula and hit enter for the cell to update.

    Is there a way.....no that's wrong. What is...the code I need to add so that when I alter the filter, cell B1 updates automatically.

    Cheers

    Who's going to be first?

  10. #10
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    OldChippy,

    I personnally never had this problem ...

    Are you using it in the cell B2 as is ...
    or like
    =MID(filtercriteria($A$10:$A$100),2,LEN(filtercriteria($A$10:$A$100))-1)
    to remove the sign =

    Anyways in both cases, it should be OK ...
    Let me try to replicate your problem ...

    Carim

  11. #11
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    A ridiculous question ...
    Tools Option Calculation ...

  12. #12
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Quote Originally Posted by Carim
    OldChippy,

    I personnally never had this problem ...

    Are you using it in the cell B2 as is ...
    or like
    =MID(filtercriteria($A$10:$A$100),2,LEN(filtercriteria($A$10:$A$100))-1)
    to remove the sign =

    Anyways in both cases, it should be OK ...
    Let me try to replicate your problem ...

    Carim
    Silly me

    I had =FilterCriteria(A3)

    Thanks again - sorted now - excuse the pun

  13. #13
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad your problem is fixed ...

    It happens to all of us ...

    Cheers
    Carim

+ 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