+ Reply to Thread
Results 1 to 2 of 2

Formula changed based on cell value

  1. #1
    Registered User
    Join Date
    03-19-2012
    Location
    kl
    MS-Off Ver
    Excel 2007
    Posts
    29

    Formula changed based on cell value

    Hi
    I have the following sample:

    B C D E F
    Old $ Discr. New $ % Inc. Net Inc.
    11,960 2000 13,960 17% 2,000
    18,730 6% 19,798 6% 1,068
    8,500 100 8,600 1% 100
    7,000 11.20% 7,784 11% 784
    11,250 550 11,800 5% 550

    My problem:
    1. How can I lock cell C to only have either % or # value. And, if % was input earlier - when people want to change to #, the % will be overwritten. (in the attached, try to change 6% to 600 - it will be 600%, whereas it should be 600)

    2. Based on column C, column D formula will be:
    IF # then B + C
    IF % then B + (B x C)

    3. Lock the #/% i.e. column C (be it in # or %) should be more than 20% of column B - if it is more than 20% - either they cannot put the number/% or, error message come out ...

    Thanks - Bert
    Attached Files Attached Files

  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,917

    Re: Formula changed based on cell value

    1st thing you need to know, is that a % is also a number, just expressed in a specific way, but still just a regular number (in decimal/percent format)

    To get the answer you want in D, try this...
    =IF(C4>1,B4+C4,B4*(1+C4))
    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

+ 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. Changed cell value based on value in another cell (drop down menu)
    By DannyB94 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-28-2014, 04:55 AM
  2. [SOLVED] adding to end of string based on another cell getting changed
    By hopefulhart in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2014, 04:37 AM
  3. How to handle Dates based on the value of a cell being changed ?
    By Shishir Jain in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-21-2013, 07:08 AM
  4. [SOLVED] Cell color will be changed based on its value compare with previous cell value
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-02-2013, 02:09 PM
  5. Automatically unhide rows based on a value that is changed by a formula
    By Sky188 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2013, 06:51 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