+ Reply to Thread
Results 1 to 4 of 4

Formula to run only when a cell is filled

  1. #1
    Registered User
    Join Date
    04-19-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2010
    Posts
    23

    Formula to run only when a cell is filled

    Hi

    I have this formula which produces an estimated purchase price from a selling price...

    =(F4-3.95-((F4-3.95)*0.2))

    I need this to operate only when F4 is filled, otherwise I get a minus figure for a sale that hasn't happened.

    Eventually the result figure will be replaced by an actual figure, so is there also is there a way I can force this estimated result to show in red?

    Thanks

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to run only when a cell is filled

    Try it like this

    =IF(F4="","",(F4-3.95-((F4-3.95)*0.2)))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    04-19-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Formula to run only when a cell is filled

    6 minutes to fix my problem, nice job Alkey TY

    Is there anything I can do on the colour thing?

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to run only when a cell is filled

    Quote Originally Posted by Ziggy21 View Post
    6 minutes to fix my problem, nice job Alkey TY

    Is there anything I can do on the colour thing?
    LOL. Actually it only took 10 sec For the colour: I suppose you can use Conditional formatting with a simple formula: A1<0

    where A1 is the cell with the formula.
    Last edited by AlKey; 02-25-2015 at 11:26 AM. Reason: Corrected formula

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Count filled and empty cells from the first filled cell in a row
    By mdaoust in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2014, 01:23 PM
  2. Replies: 1
    Last Post: 09-10-2012, 08:18 AM
  3. Replies: 12
    Last Post: 07-10-2012, 05:04 PM
  4. ?IF function for preventing a cell being filled by formula
    By confused teacher in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-06-2006, 01:10 AM
  5. Need formula for last cell filled in on a row
    By Calculation of Text in forum Excel General
    Replies: 2
    Last Post: 04-26-2006, 08:30 PM

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