+ Reply to Thread
Results 1 to 3 of 3

use one instead 2 formulas?

  1. #1
    Registered User
    Join Date
    07-02-2009
    Location
    Macedonia
    MS-Off Ver
    Excel 2003
    Posts
    4

    use one instead 2 formulas?

    I need a little help with my formulas.
    I would like to make more complex formula and avoid using 2 columns with formulas, when decreasing values with percentage.

    I would like to avoid column C, and have result complete in column D with one formula.

    Is this possible?

    Can anybody help? ...thanks in advance.


    The sample file is attached
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: use one instead 2 formulas?

    Try...

    C2, copied down:

    =A2-(A2*IF(B2="1",5,IF(B2="2",2))/100)

    I'm not sure why you've formatted the numbers returned by the formula in Column B as text. It could pose a potential problem in some mathematical calculations. You may want to consider the following instead...

    B2, copied down:

    =IF(A2>119,1,IF(A2>89,2,))

    C2, copied down:

    =A2-(A2*IF(B2=1,5,IF(B2=2,2))/100)

  3. #3
    Registered User
    Join Date
    07-02-2009
    Location
    Macedonia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: use one instead 2 formulas?

    Thank you Domenic.
    Nice point and problem solved.
    I used text as return as I am newbee... in this, but your suggestion is right.

    Regards,

+ 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