+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Formula to Differentiate Empty Cell from Cell returning Blank as result

  1. #1
    Forum Contributor SCLai's Avatar
    Join Date
    08-18-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Formula to Differentiate Empty Cell from Cell returning Blank as result

    Hi, the question may be slightly confusing....

    -------- A ----------B
    1 ------ 3 --------- 15
    2 ------ 0 --------- 0
    3 ------ 7 --------- 35
    4 ------ 2 --------- 10
    5
    6

    For example, the formula from B1:B4 = (INDEX(A:A,ROW())) *5 i.e B1 = A1 *5
    As you can see, Row 2 returns a "0" via formula, while Row 5 & 6 are blanks

    I wanted a formula to display the row number of the last row that contains formula in Column B, which should be "4" in the example.

    Is there a way to do that? Thanks in advance!
    Last edited by SCLai; 09-16-2010 at 05:19 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula to Differentiate Empty Cell from Cell returning Blank as result

    You could perhaps use MATCH

    =MATCH(9.99E+307,B:B)

    Regards B1:B4 - why not just use: =A1*5 ?

  3. #3
    Forum Contributor SCLai's Avatar
    Join Date
    08-18-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Formula to Differentiate Empty Cell from Cell returning Blank as result

    Oh.... =MATCH(9.99E+307,AK:AK) returns a #N/A for no result... Its really wierd
    I have tried =MATCH("",AK:AK,1) before too, strangely it only work until Row 1410, i tried to go beyond that and it returned me a #N/A.

    Regarding the B1:B4 in example, its just a shroter way for me to conclude B1:B4, in reality im just using =A1 *5 in B1

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula to Differentiate Empty Cell from Cell returning Blank as result

    If you're getting an #N/A then you have no numbers in Column AK (previously we were looking at formula in Column B which returned numbers)

    Rather than entering a game of 20 questions I'd suggest posting a sample that reflects set-up and requirements.

  5. #5
    Forum Contributor SCLai's Avatar
    Join Date
    08-18-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Formula to Differentiate Empty Cell from Cell returning Blank as result

    In the excel, I have formula for Column B till row 70, so is it possible to use a formula to display "70" somehow? Thanks!
    Attached Files Attached Files

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula to Differentiate Empty Cell from Cell returning Blank as result

    Given you're now dealing with text strings (ie Null return or text):

    =MATCH(REPT("Z",255),B:B)

  7. #7
    Forum Contributor SCLai's Avatar
    Join Date
    08-18-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Formula to Differentiate Empty Cell from Cell returning Blank as result

    Wow.. it works nicely.
    Thanks for the help!

    EDIT: Although I still don't really understand the logic behind
    Last edited by SCLai; 09-16-2010 at 08:35 PM.

+ 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