+ Reply to Thread
Results 1 to 5 of 5

Need help evaluating two pairs or four cells for empty values

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    Somewhere
    MS-Off Ver
    Excel 2003
    Posts
    3

    Need help evaluating two pairs or four cells for empty values

    greetings from another world. i need help putting together this excel formula.

    i want to test four cells for empty values but this evaluation must be performed in pairs. i am subtracting the values of each pair and then adding the difference. the formula i have works for the first cell pair but i do not understand how i can include a second test for e1/d1. the idea is that i dont want excel to perform the calculation if (b1/c1) or (d1/e1) are blank. any help you can provide would be appreciated. thank you.

    =IF(OR(ISBLANK(C1),ISBLANK(B1)),TIME(0,0,0),SUM(E1-D1)+SUM(C1-B1)
    Last edited by guy69; 09-20-2012 at 10:06 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Need help evaluating two pairs or four cells for empty values

    ...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ?

  3. #3
    Registered User
    Join Date
    09-20-2012
    Location
    Somewhere
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Need help evaluating two pairs or four cells for empty values

    thanks for your help but that isnt going to work

    the idea is i need to pair the empty cell tests... so as long as c/b isnt empty.. its ok to calculate that pair... the same goes for d/e... your formula tests all of the cells for blank values... the reason i need to pair test the cells is because there may be some instances where b/c will have values and d/e wont..

    if this helps we can require b/c to have values before d/e calculation is considered... because the user will always enter a b/c value before they enter an d/e value on this worksheet.... any other ideas?

  4. #4
    Registered User
    Join Date
    09-20-2012
    Location
    Somewhere
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Need help evaluating two pairs or four cells for empty values

    something like this.. if i could use two or statements.. but this isnt valid

    =IF(OR(ISBLANK(C1),ISBLANK(B1)OR(ISBLANK(E1),ISBLANK(D1)),TIME(0,0,0),SUM(C1-B1))

  5. #5
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Need help evaluating two pairs or four cells for empty values

    how about:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by simarui; 09-20-2012 at 11:34 AM. Reason: fixing formula tag

+ 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