+ Reply to Thread
Results 1 to 3 of 3

Blank cells and LOOKUP

  1. #1
    Registered User
    Join Date
    09-27-2007
    Posts
    61

    Blank cells and LOOKUP

    Hello.

    I have a column with a cash balance. It fills up as data are input into a separate sheet, so although a balance may appear to only Row 100, the formula goes down to Row 1000.

    From Rows 101 - 1000, I have the following "result" since there are still no data: " - ". This is the accounting format for "0", or zero dollars, which is what I need. I don't want to show a "0".

    To get the last balance on the column, I use the following formula: =lookup(10^10,A:A).

    The problem: I am getting a return of "-" with the lookup formula, since it returns the value in the last cell, Row 1000, that has a formula only.

    How do I get my lookup formula to return the last actual balance, and not one of the results from the "empty" cells below it?

    Thank you,
    EG

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Try this

    =LOOKUP(2,1/(A:A>0),A:A)

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Quote Originally Posted by starguy
    =LOOKUP(2,1/(A:A>0),A:A)
    I don't know if that formula will work in Excel 2007 but certainly in any other version of Excel you can't specify the whole column, it needs to be a specific range like

    =LOOKUP(2,1/(A1:A1000>0),A1:A1000)

+ 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