+ Reply to Thread
Results 1 to 7 of 7

Formula to deduct 1 from c6 if A6 greater than C3

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    ohio
    MS-Off Ver
    Excel 2010
    Posts
    3

    Formula to deduct 1 from c6 if A6 greater than C3

    Ok If a6 is greater than c3 need to minus one from c6. I don't know how to write the formula
    Last edited by Jg396; 04-14-2013 at 08:37 PM.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Formula to deduct 1 from c6 if A6 greater than C3

    Such a formula would be a CIRCULAR REFERENCE and you don't want this. It means your formula refer to itself. Not really a good thing.
    You might use a macro to do so.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    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,946

    Re: Formula to deduct 1 from c6 if A6 greater than C3

    @ Pierre, I dont see how that will create a circ error?

    If you want your answer to be in A1, enter this...
    =if(A6>C3,C6-1)

    If this is not what you wanted, please provide greater detail
    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

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to deduct 1 from c6 if A6 greater than C3

    Quote Originally Posted by FDibbins View Post
    @ Pierre, I dont see how that will create a circ error?
    If the formula is entered in C6 it will be a circular reference.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    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,946

    Re: Formula to deduct 1 from c6 if A6 greater than C3

    @ Tony. True, we will have to see where the OP wants the answer

  6. #6
    Registered User
    Join Date
    04-09-2013
    Location
    ohio
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Formula to deduct 1 from c6 if A6 greater than C3

    Guys thank you for the formula it worked great. Thanks again

  7. #7
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Formula to deduct 1 from c6 if A6 greater than C3

    Seems we'll never know where you wanted the formula to be entered.
    If it works, you did not want it to be in C6. That's for sure.

+ 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