+ Reply to Thread
Results 1 to 2 of 2

nRows range within SUMIF

  1. #1
    Meltad
    Guest

    nRows range within SUMIF

    I've got a SUMIF formula in my macro code (see below) and need to specify a
    range to include the 'nrows' (I have defined all of the bits in this formula
    at the top of my code) but am having trouble with this...

    Cells (nIrws, 21).Formula = "=SUMIF(G2:G nIRows,""<>CR"",U2:U nIRows)"

    Any ideas? Would this work??

  2. #2
    Bob Phillips
    Guest

    Re: nRows range within SUMIF

    Cells (nIrws, 21).Formula = "=SUMIF(G2:G" & nIRows & ",""<>CR"",U2:U" &
    nIRows & ")"


    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Meltad" <[email protected]> wrote in message
    news:[email protected]...
    > I've got a SUMIF formula in my macro code (see below) and need to specify

    a
    > range to include the 'nrows' (I have defined all of the bits in this

    formula
    > at the top of my code) but am having trouble with this...
    >
    > Cells (nIrws, 21).Formula = "=SUMIF(G2:G nIRows,""<>CR"",U2:U nIRows)"
    >
    > Any ideas? Would this work??




+ 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