+ Reply to Thread
Results 1 to 9 of 9

how to choose between two arguments when you use if function

  1. #1
    Registered User
    Join Date
    09-29-2013
    Location
    Egypt,Giza
    MS-Off Ver
    Excel 2003
    Posts
    78

    how to choose between two arguments when you use if function

    Hi,
    i just want to know how to select the option which i want when i use if function like = if (c5/26*400>c5/14*230,if it rue ,if it false ) i want to say select the c cheapest option how to use it



    kind regards
    hazem Amin

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,858

    Re: how to choose between two arguments when you use if function

    I'm not exactly sure that I understand, but it sounds like you want a MIN() function in there somehow. Calculate the two options, then use the MIN() function to choose the smaller of the two.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,791

    Re: how to choose between two arguments when you use if function

    Not sure i understand what you want to do - as the IF statement is doing the choice
    IF C5/26*400 is greater than c5/14*230 then if that is true the next argument in the if statement is true and selected

    = if (c5/26*400>c5/14*230, " C5/26* 400 is greater " , " c5/14*230 is greater " )
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    09-29-2013
    Location
    Egypt,Giza
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: how to choose between two arguments when you use if function

    HI there
    I understand that but i want to said to if to choose the cheapest option in the statement to to said to if because i don't know which one will be the cheapest

    = if (c5/26*400>c5/14*230, " C5/26* 400 is greater " , " c5/14*230 is greater " )


    Thanks

    Hazem Amin

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,791

    Re: how to choose between two arguments when you use if function

    well you do from those tests

    where the result is
    " C5/26* 400 is greater "
    then the other one is cheaper

    so you can replace those two statements and also carryout a calculation statements

    = if (c5/26*400>c5/14*230, " C5/26* 400 is greater " , " c5/14*230 is greater " )

    If (c5/26*400>c5/14*230, " Use this c5/14*230 is greater as its cheaper" , "use this C5/26* 400 as it is cheaper " )

    now it will display one of those messages

    and if you just wanted to do the calculation
    do this
    If (c5/26*400>c5/14*230, c5/14*230, C5/26* 400 )

    or explain in more detail , sorry I see that english is not your 1st language , so if possible explain further

  6. #6
    Registered User
    Join Date
    09-29-2013
    Location
    Egypt,Giza
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: how to choose between two arguments when you use if function

    Thank you very much

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,791

    Re: how to choose between two arguments when you use if function

    did that work as you wanted ?

  8. #8
    Registered User
    Join Date
    09-29-2013
    Location
    Egypt,Giza
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: how to choose between two arguments when you use if function

    truly not as i wanted because i couldn't realize which option is true or which option is false If (c5/26*400>c5/14*230, c5/14*230, C5/26* 400 ),that is mean when i run my formula on the list of numbers , i don't know which will be the cheapest . c5/14*230 or C5/26* 400



    Thanks for your help and support

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,791

    Re: how to choose between two arguments when you use if function

    truly not as i wanted
    the first option is true
    so
    c5/26*400
    needs to be greater than
    c5/14*230
    for
    c5/14*230
    to calculate

    if thats not how you wanted it
    can you explain further

+ 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. IF Function - Too Many Arguments
    By svconners in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-05-2013, 05:06 PM
  2. [SOLVED] CHOOSE Function (Automatic) - Automatic Choose Array
    By dluhut in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-13-2013, 03:22 PM
  3. Adding more arguments to =CHOOSE function?
    By osbertdebroilg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-31-2012, 12:19 PM
  4. Adding more arguments to =CHOOSE function?
    By msaz87 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-21-2008, 08:29 PM
  5. Replies: 0
    Last Post: 06-20-2006, 10:55 AM

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