Closed Thread
Results 1 to 5 of 5

Count of Difference Between two numbers.

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    10

    Count of Difference Between two numbers.

    If

    A1 = 100 and B1 = 105 , then forumula must give C1 = 6

    A1 = 1 and B1 = 3 , then formula must give C1 = 3

    A1 = 1001 and B1 = 1011 , then formula must give C1 = 11

    Please donot suggest = B1-A1+1 ; because if forumla falls on an emply cell the value will then appear as 1.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Count of Difference Between two numbers.

    How about:

    =IF(OR(A1="",B1=""),"",B1-A1+1)

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Count of Difference Between two numbers.

    @hafeezcloud:

    This is a duplicate posting.

    In future, please do not multi-post.

    Pete
    Last edited by Pete_UK; 08-30-2012 at 12:05 PM.

  4. #4
    Registered User
    Join Date
    08-30-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Count of Difference Between two numbers.

    Thanks Andrew,

    It works fine.

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Count of Difference Between two numbers.

    Thanks Pete

    Hello hafeezcloud, and welcome to the forum.

    Unfortunately you have inadvertently broken one of the forum rules. Please read the following. Thanks.

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed 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