+ Reply to Thread
Results 1 to 5 of 5

Override a cell that has a formula

  1. #1
    Registered User
    Join Date
    10-03-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    67

    Override a cell that has a formula

    HI Gang
    I'm looking to figure the correct way to input 2 formulas in single cell base on the entry of another cell. Example is A1 has TODAY () and I want to input formula in J1=IF((A1-TODAY())<=J1,A1-TODAY()& " Past Due"," ") which works if my file is not complete. If I complete the assignment I could enter my final $ amount in H1. When that is done I would like to have the J1 cell redirect to formula =IF(H1<>"",IF(J1="",TODAY(),J1),"") which would turn changes from over due to today's date when I complete the assignment. Clear as mud, I hope??
    I can upload a test sheet if you would like.
    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Override a cell that has a formula

    Clear as mud, I hope??
    yup, pretty much lol...
    if A1 contains TODAY(), then
    =IF((A1-TODAY())<=J1 doesnt make sense (unless J1=0?), because TODAY()-TODAY() = 0

    Aslo, you said that this formula is IN J1? But you are then testing J1=IF((A1-TODAY())<=J1
    This will result in a circular error

    What exactly are you trying to do?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-03-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    67

    Re: Override a cell that has a formula

    Sorry, Hope I can clear the mud FDibbins. I'v uploaded a sample sheet to help explain myself. Should have done this in my first thread.
    Thanks
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Override a cell that has a formula

    Thanks for the file.

    When I opened it, the 1sty thing it told me was that you have a circular reference error - as I said you would get.

    When you construct a formula in a cell that says...if a certain number is <= what is already in this same cell..., you hace a circ ref error.

    Pretty much you are saying...does A1=A1, this is a circular reference error

    Another thing I noticed is that even IF you were referencing another cell (instead of the cell where that formula resides), you are trying to compare a numeric value (A1=TODAY() with a text value (-9Past Due)...essentially you are saying is 5 <= frog
    (excel always gives text a higher value than any numeric value, so the answer would always be yes, but thats besides the point)

    What exactly are you trying to do? The direction you are trying to take is a dead-end

  5. #5
    Registered User
    Join Date
    10-03-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    67

    Re: Override a cell that has a formula

    Best I can explain is: I start an assignment with the date I received the file (A1), when I get a contractor's estimate for $ amount to do the job. I enter their initial $ amount in (F1). If find it is non-compliant to our standards I notify the contractor to make the changes which in (J1) tracks the overdue days. When I get the estimate back I put the revised total amount in (G1). The difference if any will total in (H1). This is when I would like to have the "past Due" to change to Today() when I complete the file. I Hope this explained it.
    Regards

+ 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. [SOLVED] How to get a Combox with a word and number to override a formula in a cell.
    By wesman200098 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2013, 11:36 PM
  2. How can I override the value in a cell
    By MannyLNJ in forum Excel General
    Replies: 5
    Last Post: 09-02-2012, 08:48 PM
  3. Combo Box which can override a Sum Formula
    By mcarr5 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-30-2009, 11:09 AM
  4. [SOLVED] use excel formula to suggest cell value, but be able to override
    By G_Engineer in forum Excel General
    Replies: 1
    Last Post: 08-16-2006, 10:50 PM
  5. [SOLVED] Cell Value Override
    By saschamps9903 in forum Excel General
    Replies: 0
    Last Post: 01-21-2005, 06:06 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