+ Reply to Thread
Results 1 to 5 of 5

find last cell that has a value in row

  1. #1
    Jez
    Guest

    find last cell that has a value in row

    I have row AI3:CH3 with data added each week. For example after 4 weeks,
    AI3:AL3 has data and the rest of the row is blank. Each week, I add a value
    in the next cell to the right of the previous week, so by the end of the
    year, I will have 52 values filling AI3:CH3.

    What formula will look at this row, and display the "right hand most value"
    ignoring all the blank cells in the row. IE I need to have displayed the
    value each week, for the week prior (in another worksheet)

    Thanks

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    =OFFSET(AI3,0,COUNT(AI3:CH3)-1)

    presuming that you have no blank weeks



    Quote Originally Posted by Jez
    I have row AI3:CH3 with data added each week. For example after 4 weeks,
    AI3:AL3 has data and the rest of the row is blank. Each week, I add a value
    in the next cell to the right of the previous week, so by the end of the
    year, I will have 52 values filling AI3:CH3.

    What formula will look at this row, and display the "right hand most value"
    ignoring all the blank cells in the row. IE I need to have displayed the
    value each week, for the week prior (in another worksheet)

    Thanks
    Last edited by Bryan Hessey; 10-06-2005 at 08:27 AM.

  3. #3
    Domenic
    Guest

    Re: find last cell that has a value in row

    For the last numerical value, try...

    =LOOKUP(9.99999999999999E+307,AI3:CH3)

    Hope this helps!

    In article <[email protected]>,
    Jez <[email protected]> wrote:

    > I have row AI3:CH3 with data added each week. For example after 4 weeks,
    > AI3:AL3 has data and the rest of the row is blank. Each week, I add a value
    > in the next cell to the right of the previous week, so by the end of the
    > year, I will have 52 values filling AI3:CH3.
    >
    > What formula will look at this row, and display the "right hand most value"
    > ignoring all the blank cells in the row. IE I need to have displayed the
    > value each week, for the week prior (in another worksheet)
    >
    > Thanks


  4. #4
    Jez
    Guest

    Re: find last cell that has a value in row

    Thankyou, this works a treat.

    "Domenic" wrote:

    > For the last numerical value, try...
    >
    > =LOOKUP(9.99999999999999E+307,AI3:CH3)
    >
    > Hope this helps!
    >
    > In article <[email protected]>,
    > Jez <[email protected]> wrote:
    >
    > > I have row AI3:CH3 with data added each week. For example after 4 weeks,
    > > AI3:AL3 has data and the rest of the row is blank. Each week, I add a value
    > > in the next cell to the right of the previous week, so by the end of the
    > > year, I will have 52 values filling AI3:CH3.
    > >
    > > What formula will look at this row, and display the "right hand most value"
    > > ignoring all the blank cells in the row. IE I need to have displayed the
    > > value each week, for the week prior (in another worksheet)
    > >
    > > Thanks

    >


  5. #5
    Jez
    Guest

    Re: find last cell that has a value in row

    Thanks Bryan, this also works, but as you said, provided there is no blank
    weeks. if the value for the week is zero, I will put in '0' rather than
    leaving blank.

    Cheers everyone.

    "Bryan Hessey" wrote:

    >
    > =OFFSET(AI3,0,COUNT(AI3:CH3)-1)
    >
    > presuming that you have no blank weeks
    >
    >
    >
    > Jez Wrote:
    > > I have row AI3:CH3 with data added each week. For example after 4
    > > weeks,
    > > AI3:AL3 has data and the rest of the row is blank. Each week, I add a
    > > value
    > > in the next cell to the right of the previous week, so by the end of
    > > the
    > > year, I will have 52 values filling AI3:CH3.
    > >
    > > What formula will look at this row, and display the "right hand most
    > > value"
    > > ignoring all the blank cells in the row. IE I need to have displayed
    > > the
    > > value each week, for the week prior (in another worksheet)
    > >
    > > Thanks

    >
    >
    > --
    > Bryan Hessey
    > ------------------------------------------------------------------------
    > Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
    > View this thread: http://www.excelforum.com/showthread...hreadid=473701
    >
    >


+ 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