+ Reply to Thread
Results 1 to 5 of 5

IF/OR Function

  1. #1
    Registered User
    Join Date
    04-15-2010
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    15

    IF/OR Function

    I want to neaten up my spreadsheet, I was trying to get a function that would do

    If Cell H7 & Cell H8 are both empty, then display nothing
    If Cell H7 or H8 contain any number then run (=K7+H7-H8)

    essentially the spreadsheet add a running total in column K, but I want to hide the output below where we are currently working.

    regards
    Ian

  2. #2
    Registered User
    Join Date
    04-15-2010
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: IF/OR Function

    I wanted to attache a screen dump to better explain what I was trying to achieve. Under the $500 credit the result $495 continues all the way down the page. I want to hide that until I enter another amount. Hope that clarify s
    regards Ian
    Attached Images Attached Images

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

    Re: IF/OR Function

    Try:

    =IF(Countblank(H7:H8)=2,"",K7+H8-H7)
    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.

  4. #4
    Registered User
    Join Date
    04-15-2010
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: IF/OR Function

    Quote Originally Posted by NBVC View Post
    Try:

    =IF(Countblank(H7:H8)=2,"",K7+H8-H7)
    Thanks I changed it to this and it worked perfectly

    =IF(COUNTBLANK(H7:I7)=2,"",K6-H7+I7)

    I assume the countblank 2 mean if both cell are empty and if i was checking 3 cells I would change that to 3?

    regards
    Ian

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

    Re: IF/OR Function

    Quote Originally Posted by Getfothers View Post
    I assume the countblank 2 mean if both cell are empty and if i was checking 3 cells I would change that to 3?

    regards
    Ian
    Yes, correct

+ 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