+ Reply to Thread
Results 1 to 6 of 6

Backwards determination for non-blank cell address in a row?

  1. #1
    Registered User
    Join Date
    11-30-2007
    Posts
    5

    Backwards determination for non-blank cell address in a row?

    I have a spreadsheet in the following form:

    Please Login or Register  to view this content.
    I'd like to sum Row2/Cols2~4 based on a) Row1/Col4 having a value and b) the first preceding non-blank column in Row1 is Col1. Thus, the Result for Col4 would be 90 (40+30+20).

    I believe I need a function to determine the cell address of the previous non-blank cell in Row1 in order to sum Row2 from that endpoint.

    Any suggestions for how do to this?
    Last edited by cybern8; 11-30-2007 at 01:08 AM.

  2. #2
    Registered User
    Join Date
    11-30-2007
    Posts
    5

    Finding first occurrence from right to LEFT?

    I have data in a row as follows:

    Please Login or Register  to view this content.
    Starting at Row1/ColD, how can I search left-ward to find the address of the first non-blank value in Row1 (i.e., Row1/ColA)?

    Thanks.

  3. #3
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Solution

    This is an array formula which means that you have to Type the formula. Then hold down Ctrl+Shift and hit Enter, just hit enter will not work.
    The 0 values are hidden with conditional formatting (Menu:Format, Conditional Formatting...)
    It's not the most beautiful formula, but it works.

    Hope it helped
    Ola Sandström
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

  5. #5
    Registered User
    Join Date
    11-30-2007
    Posts
    5

    Thanks!

    Olasa, your solution is brilliant! Thanks!

  6. #6
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Reply

    Thanks, I'm glad to hear it was appreciated.
    //Ola

+ 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