+ Reply to Thread
Results 1 to 5 of 5

Out of 12 cells in a row, I want farthest right

  1. #1
    Carpie
    Guest

    Out of 12 cells in a row, I want farthest right

    A1:A13 is January-December and Total. B1:B13 is the GOAL numbers. C1:C13
    are the ACTUAL numbers. The numbers entered in the cells of row C are
    aggregates (they include the amount of the previous months). I want C13 to
    be the last number entered in that row (which will also be the last month in
    which an actual was entered). Is there any formula that looks at those 12
    cells and takes the farthest to the right?

  2. #2
    Ken Wright
    Guest

    Re: Out of 12 cells in a row, I want farthest right

    =LOOKUP(9.99999999999999E+307,A:A) for last numeric entry in a column

    =LOOKUP(9.99999999999999E+307,1:1) for last numeric entry in a row

    =LOOKUP(REPT("z",255),A:A) for last text entry in a column

    =LOOKUP(REPT("z",255),1:1) for last text entry in a row

    --
    Regards
    Ken....................... Microsoft MVP - Excel
    Sys Spec - Win XP Pro / XL 97/00/02/03

    ----------------------------------------------------------------------------
    It's easier to beg forgiveness than ask permission :-)
    ----------------------------------------------------------------------------

    "Carpie" <Carpie@discussions.microsoft.com> wrote in message
    news:69B88273-1BA4-4EAE-A6E9-0FCE76A994E1@microsoft.com...
    > A1:A13 is January-December and Total. B1:B13 is the GOAL numbers. C1:C13
    > are the ACTUAL numbers. The numbers entered in the cells of row C are
    > aggregates (they include the amount of the previous months). I want C13

    to
    > be the last number entered in that row (which will also be the last month

    in
    > which an actual was entered). Is there any formula that looks at those 12
    > cells and takes the farthest to the right?




  3. #3
    Carpie
    Guest

    RE: Out of 12 cells in a row, I want farthest right

    If I understand Lookup right, it is going to take the highest number closest
    to what you provide. So by providing an outrageously large number, it will
    take the highest number it finds. In this specific example I think it will
    work for me, but I have other spreadsheets where the monthly value may be
    negative so the cumulative value actually decreases. In this example the
    lookup formula provided wouldn't work because it would return the month
    before (because of the negative value) since it was the greater of the two.
    What would I do in this case?

    "Carpie" wrote:

    > A1:A13 is January-December and Total. B1:B13 is the GOAL numbers. C1:C13
    > are the ACTUAL numbers. The numbers entered in the cells of row C are
    > aggregates (they include the amount of the previous months). I want C13 to
    > be the last number entered in that row (which will also be the last month in
    > which an actual was entered). Is there any formula that looks at those 12
    > cells and takes the farthest to the right?


  4. #4
    RagDyeR
    Guest

    Re: Out of 12 cells in a row, I want farthest right

    <"What would I do in this case?">

    You would at least try it
    Maybe you'll like it.
    --

    Regards,

    RD
    --------------------------------------------------------------------
    Please keep all correspondence within the Group, so all may benefit !
    --------------------------------------------------------------------

    "Carpie" <Carpie@discussions.microsoft.com> wrote in message
    news:705D8762-EADC-4F2C-9B06-4B3740FDC19D@microsoft.com...
    If I understand Lookup right, it is going to take the highest number closest
    to what you provide. So by providing an outrageously large number, it will
    take the highest number it finds. In this specific example I think it will
    work for me, but I have other spreadsheets where the monthly value may be
    negative so the cumulative value actually decreases. In this example the
    lookup formula provided wouldn't work because it would return the month
    before (because of the negative value) since it was the greater of the two.
    What would I do in this case?

    "Carpie" wrote:

    > A1:A13 is January-December and Total. B1:B13 is the GOAL numbers. C1:C13
    > are the ACTUAL numbers. The numbers entered in the cells of row C are
    > aggregates (they include the amount of the previous months). I want C13

    to
    > be the last number entered in that row (which will also be the last month

    in
    > which an actual was entered). Is there any formula that looks at those 12
    > cells and takes the farthest to the right?




  5. #5
    Registered User
    Join Date
    02-02-2005
    Posts
    35

    Count and index

    To get the last entry in a range where the range could be bigger
    if in rows
    =Index(range,Count(range))
    or
    if in col extra ,
    =Index(range,,Count(range))

    The first one seems to work always but to be correct two commas are needed for columns.

    Hope this helps

    RES

+ 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