+ Reply to Thread
Results 1 to 4 of 4

please can any one help me to do this calculation with IF function

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    please can any one help me to do this calculation with IF function

    Dear sir
    would you please someone help me to do this with excel
    the case as the follow

    suppose i have 5 value as the following
    cell A cell B Cell C Cell D Cell E
    100 88 62 34 10
    my equation is

    (value > 50 - 50)/(Value >50 -Value <50)
    my manual calculation which i do as the follow

    (62-50)/(62-34)=0.428
    i need to do this with excel which automatically do this
    Note (from my example you can see i take the value 62 and 34 not take 88 or 100 or 10 because i need the nearest value to 50 which fail in between (34 , and 62)
    i hope you understand me
    Regards

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: please can any one help me to do this calculation with IF function

    welcome to the forum, mazan. are they always sorted in descending order? if so:
    =(LOOKUP(2,1/(A1:E1>50),A1:E1)-50)/(LOOKUP(2,1/(A1:E1>50),A1:E1)-INDEX(A1:E1,MATCH(TRUE,INDEX(A1:E1<50,),0)))

    if not:
    =(SUMPRODUCT(MIN(1E+100*(A1:E1<=50)+A1:E1))-50)/(SUMPRODUCT(MIN(1E+100*(A1:E1<=50)+A1:E1))-SUMPRODUCT(MAX((A1:E1<50)*A1:E1)))

    if it doesn't work for you, I suggest you upload an Excel file in the thread with more examples. To do that, Click on GO ADVANCED and use the paperclip icon to open the upload window.
    View Pic
    and to illustrate your example better, click on How To Get Quick & Good Answers

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: please can any one help me to do this calculation with IF function

    really thankssssssssssss Dear for quick response

  4. #4
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: please can any one help me to do this calculation with IF function

    Dear benishiryo
    if i have this example
    Cell A Cell I
    100000 100
    10000 88.88888889
    2000 53.33333333
    400 16.66666667
    80 4
    i need to select automatically value corresponding to more than 50% from column A
    in this example is 2000 then take log and subtract from your function you made
    hope u understand me

+ 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. GPA Calculation Function Help
    By blyzzard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2013, 10:58 AM
  2. Replies: 4
    Last Post: 07-23-2013, 07:51 AM
  3. [SOLVED] Is the IF function right for this calculation?
    By Steven811 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2012, 09:55 AM
  4. [SOLVED] IF Function to do a calculation help
    By harpsichord in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2012, 10:45 AM
  5. [SOLVED] Calculation within IF function
    By Andrew in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2005, 10:06 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