+ Reply to Thread
Results 1 to 9 of 9

IF formula

  1. #1
    Registered User
    Join Date
    06-20-2008
    Posts
    9

    IF formula

    I am trying to to a formula with the the following formula =IF(G157-(S103-O157)<0,"YES","NO") this part works but my problem is that I need to add on to it so that if cell g157 and O157 are blank that it will come up with a result of "N/A".

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Can you please edit your post to show a subject that is more relevant to your post.

    A solution:
    =IF(AND(ISBLANK(G127),ISBLANK(O157)),"N/A",IF(G157-(S103-O157)<0,"YES","NO"))

    rylo

  3. #3
    Registered User
    Join Date
    06-20-2008
    Posts
    9

    update on "Hi" Question- Problem with IF formuala

    Question yesterday: I am trying to to a formula with the the following formula =IF(G157-(S103-O157)<0,"YES","NO") this part works but my problem is that I need to add on to it so that if cell g157 and O157 are blank that it will come up with a result of "N/A".

    Problem today: Thanks for the solution but it didn't work and i don't think I was clear as to the result I need. The formula needs to look at G157 and/or O157 and if both of them are blank it will come back with "NA" but if one is blank that it only uses the cell with the value in it to come back with YES or NO. Can you help with this? Thanks so much!

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    1) I mistyped the cell reference G127 SB G157.
    2) If that doesn't fix the problem, then attach an example workbook. Are both the cells really blank, or do they have a space? Is the result of a formula that produces ""???


    rylo

  5. #5
    Registered User
    Join Date
    06-20-2008
    Posts
    9

    If Formula cont'd

    I had noticed the typo and put it in the spreadsheet correctly but it didn't work. Actually the cells do have formulas in them and to calculate totals if values are put in other cells. I am attaching the workbook which I modified so it was small enough to send but it still shows what I need but obviously my cell numbers have changed. I have put an explanation and shapes on it to help you figure out what I am trying to accomplish. I apologize if I have not been easy to understand. Thanks for the help.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Can you please resave your workbook in excel 2003 format.

    rylo

  7. #7
    Registered User
    Join Date
    06-20-2008
    Posts
    9

    if Formula w 2003 excel spreadsheet attached

    I am trying to get the formula in Cell F6 to do this: When there is an amount in cell E2 and cell D6 is "blank" (which populates from H3 if there is an amount in it) AND cell B6 is "blank" (which populates from B4 if there is an amount in it) that I will get a result of N/A in cell F6. Also if cell B6 is "blank" but cell D6 has a value that the result in F6 will be N/A.
    Note: I did change my question a little bit because I realized that I had not put it in correctly.

    Thanks again for your time.

  8. #8
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day

    Try this

    Please Login or Register  to view this content.
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  9. #9
    Registered User
    Join Date
    06-20-2008
    Posts
    9
    It worked..........thank you so much!!! I have been racking my brain on this for days!

+ 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