+ Reply to Thread
Results 1 to 6 of 6

Thread: What's best to use? Macro or formula's?

  1. #1
    Forum Contributor
    Join Date
    06-11-2008
    MS-Off Ver
    2003
    Posts
    195

    What's best to use? Macro or formula's?

    Please see attached Document.

    Basically from the "Overall" sheet I want to take all rows which have "closed" in column K and copy them on the "Closed Only" sheet. I just want to know what the best way would be and how to go about it.

    Cheers...
    Attached Files Attached Files

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,784

    Re: What's best to use? Macro or formula's?

    use auto filter
    auto filter on closed then copy paste to other sheet
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    06-11-2008
    MS-Off Ver
    2003
    Posts
    195

    Re: What's best to use? Macro or formula's?

    There is going to be data added to the table every month and I need to try and take out every manual process (copying and pasting every month), as I am creating this for someone with little to no excel skills.

    Is it possible to have some formulas sitting in the cells on the "Closed Only" sheet, for example =if(K10="Closed",(then copy that entire row) I would not know how to formulate the words in brackets.

    Cheers,

  4. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,784

    Re: What's best to use? Macro or formula's?

    well you could just record a macro doing the same thing then assign it to a button, however a formula solution is attached helper column M will do down to row 1100 change range if you want more.
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Contributor
    Join Date
    06-11-2008
    MS-Off Ver
    2003
    Posts
    195

    Re: What's best to use? Macro or formula's?

    Thanks very much for that. I have encorporated into my sheet, but I must have done something wrong, as it is returning #N/A.

    See attached...
    Attached Files Attached Files

  6. #6
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,784

    Re: What's best to use? Macro or formula's?

    COLUMNS($A$1:A$1) not COLUMNS($A$1:$A$1)
    and INDEX('Issues Summary'!$B$8:$J$1141 you need the whole range
    also
    MATCH("Closed "& a space is included there at the end of closed to match against "closed 1" not "closed1" (you could leave the space out if you changed the countif on the first sheet not to have it either)
    so in B8
    =IF(COUNTIF('Issues Summary'!$I$8:$I$1141,"Closed")<ROWS($A$1:$A1),"",(INDEX('Issues Summary'!$B$8:$J$1141,MATCH("Closed "&ROWS($A$1:$A1),'Issues Summary'!$K$8:$K$1141,0),COLUMNS($A$1:A$1))))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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.2.0