+ Reply to Thread
Results 1 to 18 of 18

Perform If function if the cell is blank

  1. #1
    Registered User
    Join Date
    06-04-2007
    MS-Off Ver
    Excel 2007
    Posts
    94

    Perform If function if the cell is blank

    I have a range of cells that for some there is already some information cotained in them, but for the other cells in the range they are blank.

    I tried using some like the following:
    =IF(W45>0,Y45/(1-0.33))

    which is supposed to be if cell w45 is greater than 0 leave it alone, but if cell W45 had been blank then perform the calculation on the number that is in cell Y45. I am sure I am doing this wrong, but some suggestions would be helpful.
    Last edited by capnhud; 01-20-2012 at 11:48 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Perform If function if the cell is blank

    Hi

    You mean something like this?

    =IF(W45>0;(Y45/(1-0,33));"")

    Hope to helps you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Perform If function if the cell is blank

    Are you entering the formula into W45 by any chance? If so, it won't work. You cannot have both a formula and a value in a cell and entering the formula will wipe out the pre-existing value. What you could perhaps do is use the Goto - Special... Blanks option to select the currently empty cells and enter the formula into them only.
    Good luck.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Perform If function if the cell is blank

    Corect. Formula must be in another cell! That is what i understand that capnhud's want to do.

  5. #5
    Registered User
    Join Date
    06-04-2007
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Perform If function if the cell is blank

    @OnErrorGoto0 no it is not going in the same cell

    @Fotis1991

    Maybe I am doing something wrong with the formula but it is errorring, here is an example sheet to show what I am trying to do. Ideally I would like the empty cell in A to be filled with the calculation from B if it evaluates to false
    Last edited by capnhud; 01-20-2012 at 10:50 AM.

  6. #6
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Perform If function if the cell is blank

    Your row references are wrong. See attached version.
    Attached Files Attached Files

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Perform If function if the cell is blank

    ..Formula give you a blank cell(in B1), because A2 is blank.!

    Your formula is:=IF(A2>0;(C3/(1-0,33));"")

    If you do the formula, like this, it's OK.

    =IF(A1>0;(C3/(1-0,33));"")

  8. #8
    Registered User
    Join Date
    06-04-2007
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Perform If function if the cell is blank



    Ok see that was part of my problem, but is it not possible to have the if function perform the calculation is the cell is blank, and skip those that have a value.

    the attached file has explanations indicating what I am trying to say.
    Attached Files Attached Files
    Last edited by capnhud; 01-20-2012 at 11:12 AM.

  9. #9
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Perform If function if the cell is blank

    Not following you I am afraid. If you want the formula in column A, just enter it there.

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Perform If function if the cell is blank

    The result of the formula calculation, in B2, is FALSE.

    Is this what you want?

  11. #11
    Registered User
    Join Date
    06-04-2007
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Perform If function if the cell is blank

    Hopefully this a better picture of what I am trying to do







    A B C
    15 since a value in A1 formula does not affect A1 5
    value enter here since A2 is blank 15
    value enter here since A3 is blank 15
    15 since a value in A4 formula does not affect A4 5
    value enter here since A5 is blank 15
    Last edited by capnhud; 01-20-2012 at 11:35 AM.

  12. #12
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Perform If function if the cell is blank

    Is this what you mean?
    In B2
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  13. #13
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Perform If function if the cell is blank

    Can you give specific example re
    What goes in A2, and what in B2 and why to both?

  14. #14
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Perform If function if the cell is blank

    If you need the result in one column, you can't do it with Column A
    However you can with Column B
    Please Login or Register  to view this content.
    Attached Files Attached Files

  15. #15
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Perform If function if the cell is blank

    I'd be surprised if the OP is not confused by now....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  16. #16
    Registered User
    Join Date
    06-04-2007
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Perform If function if the cell is blank

    Quote Originally Posted by OnErrorGoto0 View Post
    Can you give specific example re
    What goes in A2, and what in B2 and why to both?
    Basically b2 is doing the check for a1 and based on that determines whether perform the calculation

  17. #17
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Perform If function if the cell is blank

    Why does B2 check A1?

    Perhaps forget about the actual formula for now and merely explain the logic flow to us?

    (if by chance this is relevant, you cannot populate column A from a formula in column B)

  18. #18
    Registered User
    Join Date
    06-04-2007
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Perform If function if the cell is blank

    Quote Originally Posted by OnErrorGoto0 View Post
    Why does B2 check A1?

    Perhaps forget about the actual formula for now and merely explain the logic flow to us?

    (if by chance this is relevant, you cannot populate column A from a formula in column B)
    That is what I realizing


    Quote Originally Posted by NBVC View Post
    I'd be surprised if the OP is not confused by now....
    Naw I keeping up

    @ Marcol that does exactly what I wanted and I guess the answer to the question is no the result of the calculation value cannot be entered in column A


    I wanna thank all of you for your input and assistance in helping to solve this problem
    Last edited by capnhud; 01-20-2012 at 11:47 AM.

+ 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