+ Reply to Thread
Results 1 to 3 of 3

blanks with formula

Hybrid View

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    Derbyshire
    MS-Off Ver
    Excel 2007
    Posts
    3

    blanks with formula

    Hi I am new to the forum
    I want to calculate (A2-A1)/56
    sometimes A1 is blank and sometimes A2 is blank if this is the case then I want the formula to ignore that row and give me a blank rather than give me a value.
    I tried using an IF and an OR but I keep getting an error message and I'm not sure where I am going wrong
    any help with this would be greatly appreciated
    Thanks
    Last edited by unicorn; 06-15-2011 at 08:47 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: blanks with formula

    I suggest using COUNT function to count the numbers in those cells and only proceed with the calculation if there are 2 numbers present, i.e.

    =IF(COUNT(A1,A2)=2,(A2-A1)/56,"")
    Audere est facere

  3. #3
    Registered User
    Join Date
    06-15-2011
    Location
    Derbyshire
    MS-Off Ver
    Excel 2007
    Posts
    3

    Smile Re: blanks with formula

    Perfect Thanks!!

+ 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