+ Reply to Thread
Results 1 to 7 of 7

Special criteria formula

Hybrid View

guyzk1 Special criteria formula 04-16-2007, 08:32 AM
sweep Hi, ... 04-16-2007, 08:38 AM
starguy try this ... 04-16-2007, 08:41 AM
guyzk1 Hi guys Thanks for the... 04-16-2007, 09:12 AM
starguy in my workbook it works fine.... 04-16-2007, 09:16 AM
guyzk1 Both formulas work perfect, I... 04-16-2007, 09:22 AM
starguy you're welcome. good to see... 04-16-2007, 09:28 AM
  1. #1
    Registered User
    Join Date
    04-16-2007
    Posts
    46

    Special criteria formula

    Hi guys,

    I need a formula for something like this (all the column leters a examples only)

    1. Column A - a column with a Y/N choice
    2. Column B - a column with a number (e.g. 10000)
    3. Column C - column with a percentage in a positive or negative value (e.g. -40%) the column is formated by percentage.
    4. Column D - the column using the formula

    the formula I need is:

    If "column A" = "Y" (Yes) then "column D" = "column B" minus/plus the value in "column C"
    If not leave blank.

    The correct answer should be (by the numbers I gave above)
    If "column A" = "y", then Column D = 10000 -40% = 6000.

    If "column C" was a positive value then the answer wil be:
    "Column D" = 10000 + 40% = 14000

    I hope someone could help me.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    Hi,

    =IF(A2="Y",B2+(B2*C2),"")

    remember to format the cell where this formula goes as a general number

    Format > Cells > Number > General

    HTH

    Dave

  3. #3
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by guyzk1
    Hi guys,

    I need a formula for something like this (all the column leters a examples only)

    1. Column A - a column with a Y/N choice
    2. Column B - a column with a number (e.g. 10000)
    3. Column C - column with a percentage in a positive or negative value (e.g. -40%) the column is formated by percentage.
    4. Column D - the column using the formula

    the formula I need is:

    If "column A" = "Y" (Yes) then "column D" = "column B" minus/plus the value in "column C"
    If not leave blank.

    The correct answer should be (by the numbers I gave above)
    If "column A" = "y", then Column D = 10000 -40% = 6000.

    If "column C" was a positive value then the answer wil be:
    "Column D" = 10000 + 40% = 14000

    I hope someone could help me.
    try this

    =IF(A1="Y",B1+(B1*C1),"")

  4. #4
    Registered User
    Join Date
    04-16-2007
    Posts
    46
    Hi guys

    Thanks for the answers WORKS PERFECTLY!
    Last edited by guyzk1; 04-16-2007 at 09:19 AM.

  5. #5
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by guyzk1
    Hi guys

    Thanks for the answers but I just get a 0 value

    The problem is that I can't get this calculation right:

    (B12) "10000" - (C12) "-40%" = (D12) "6000"

    just to clarify column formating is as follows

    B12 - Number format
    C12 - Percentage (no decimals)
    D12 - Number format
    in my workbook it works fine.
    you can also use this

    =IF(A1="Y",B1*(1+C1),"")

    if it not works you should attach a sample file.

  6. #6
    Registered User
    Join Date
    04-16-2007
    Posts
    46
    Both formulas work perfect, I simly had a mistake in the column letters.

    Thanks alot guys!

  7. #7
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by guyzk1
    Both formulas work perfect, I simly had a mistake in the column letters.

    Thanks alot guys!
    you're welcome. good to see that your problem is solved.

+ 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