+ Reply to Thread
Results 1 to 3 of 3

dual formula in one cell?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    dual formula in one cell?

    I have a spreadsheet, in columns A & B are some numbers. I'm subtracting B from A - =sum(b1-a1) in column C. Can a formula be written, if the sum is equal or greater than 8, it will display 1? If the sum is 7 or less, it will display the sum. Or, does this need to be in a different column?

    Thanx...LT
    Last edited by Ltat42a; 05-13-2009 at 12:29 PM. Reason: SOLVED

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: dual formula in one cell?

    Hi,

    You don't need the SUM function:

    =IF(B1-A1>=8,1,B1-A1)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Re: dual formula in one cell?

    Quote Originally Posted by sweep View Post
    Hi,

    You don't need the SUM function:

    =IF(B1-A1>=8,1,B1-A1)
    Ah.....that works!

    Thanx sweep.....LT

+ 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