+ Reply to Thread
Results 1 to 20 of 20

desperately need help with IF function please

  1. #1
    Registered User
    Join Date
    02-12-2015
    Location
    indonesia
    MS-Off Ver
    360 office subscription
    Posts
    13

    desperately need help with IF function please

    Hello all,

    I need to create a table calculation as below scenario

    If A=100%, then value 123, but if A<=114% and A>=100%, then value 234, but if A<=115% and A>=120%, then value 456, but if A>=120% then value 456

    pls help

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: desperately need help with IF function please

    And if A<100% ? What happens?

    This is not possible "but if A<=115% and A>=120%". I suppose you mean "if A>=115% and A<=120%" ?

  3. #3
    Registered User
    Join Date
    02-12-2015
    Location
    indonesia
    MS-Off Ver
    360 office subscription
    Posts
    13

    Re: desperately need help with IF function please

    sorry, let me correct the condition

    if A >= 100, then value 123 == this I can do for the first function / cell

    For the second cell
    but, if A>=100 and A<115% then value 234, if not, value 0
    but, if A>=115% and A <120% then value 345, if not, value 0
    but, if A>=120% then value 456, if not, value 0

    can we do these in 1 function ? (for second cell)

    thx in adv

  4. #4
    Registered User
    Join Date
    02-12-2015
    Location
    indonesia
    MS-Off Ver
    360 office subscription
    Posts
    13

    Re: desperately need help with IF function please

    anyone can help me pls

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: desperately need help with IF function please

    Your statement:
    if A>=100 and A<115% then value 234, if not, value 0
    means if A=116, value = 0

    but next in the same time:
    if A>=115% and A <120% then value 345, if not, value 0
    means if A=116, value = 345

    with A=116, there is only one value returns, not two
    Quang PT

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: desperately need help with IF function please

    Quote Originally Posted by hendrilearning View Post
    sorry, let me correct the condition

    if A >= 100, then value 123 == this I can do for the first function / cell

    For the second cell
    but, if A>=100 and A<115% then value 234, if not, value 0
    but, if A>=115% and A <120% then value 345, if not, value 0
    but, if A>=120% then value 456, if not, value 0

    can we do these in 1 function ? (for second cell)

    thx in adv
    Try
    =LOOKUP(A1,{100%,115%,120%},{234,345,456})

    Note, LESS than 100% will result in #N/A

  7. #7
    Registered User
    Join Date
    02-12-2015
    Location
    indonesia
    MS-Off Ver
    360 office subscription
    Posts
    13

    Re: desperately need help with IF function please

    Quote Originally Posted by Jonmo1 View Post
    Try
    =LOOKUP(A1,{100%,115%,120%},{234,345,456})

    Note, LESS than 100% will result in #N/A
    It didn't work ou

    Here's the sheet I need to create (on incentives earn column)


    SCHEME POTENTIAL INCENTIVES ACHIEVEMENT INCENTIVES earn
    (=)100% 100 128% 100
    101-114% 200 0
    115-120% 300 0
    (>=)120% 400 400

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: desperately need help with IF function please

    That doesn't look like a sheet...

    Can you attach an actual book?
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  9. #9
    Registered User
    Join Date
    02-12-2015
    Location
    indonesia
    MS-Off Ver
    360 office subscription
    Posts
    13

    Re: desperately need help with IF function please

    Quote Originally Posted by Jonmo1 View Post
    That doesn't look like a sheet...

    Can you attach an actual book?
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Please see my attachment
    Attached Files Attached Files

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: desperately need help with IF function please

    So with that example, you want a total of 500?

    100 for simply achieving 100% or more.
    PLUS
    400 for going over 120%

    If the number was say 117%, then it would be 400 (100 + 300 for 115%-120%)

    Is that right?

  11. #11
    Registered User
    Join Date
    02-12-2015
    Location
    indonesia
    MS-Off Ver
    360 office subscription
    Posts
    13

    Re: desperately need help with IF function please

    Quote Originally Posted by Jonmo1 View Post
    So with that example, you want a total of 500?

    100 for simply achieving 100% or more.
    PLUS
    400 for going over 120%

    If the number was say 117%, then it would be 400 (100 + 300 for 115%-120%)

    Is that right?
    correct, what I want is to create function for the incentive earn figure, If 100% then earn 100, if 117% then additional earn 300, but if 120% then additonal earn will be 400
    for the total I can just sum all the incentives. function for each row in that column is the important one

  12. #12
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: desperately need help with IF function please

    Can not stuff in one formula, I think.

    E7 = IF($D$7=1,C7,0)

    E8 = IF(AND($D$7>=1.01,$D$7<=1.14),200,0)

    E9 = IF(AND($D$7>=1.15,$D$7<1.2),300,0)

    E10 = IF($D$7>=1.2,400,0)

  13. #13
    Registered User
    Join Date
    02-12-2015
    Location
    indonesia
    MS-Off Ver
    360 office subscription
    Posts
    13

    Re: desperately need help with IF function please

    Quote Originally Posted by bebo021999 View Post
    Can not stuff in one formula, I think.

    E7 = IF($D$7=1,C7,0)

    E8 = IF(AND($D$7>=1.01,$D$7<=1.14),200,0)

    E9 = IF(AND($D$7>=1.15,$D$7<1.2),300,0)

    E10 = IF($D$7>=1.2,400,0)
    Great !!

    Learnt someting here

    thx a lot

    why can't I just use D7 instead of $D$7 ?

  14. #14
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: desperately need help with IF function please

    Try
    =IF(D7>=100%,100,0)+LOOKUP(D7,{0,1.01,1.15,1.2},{0,200,300,400})

  15. #15
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: desperately need help with IF function please

    Quote Originally Posted by hendrilearning View Post
    Great !!
    why can't I just use D7 instead of $D$7 ?
    You are calculating incentives for D7 with multi criterias, using absolute address to avoid changing reference.

    Anyway, if you interested in the total only, use this:

    =LOOKUP($D$7,{1,1.01,1.15,1.2},{100,200,300,400})

  16. #16
    Registered User
    Join Date
    02-12-2015
    Location
    indonesia
    MS-Off Ver
    360 office subscription
    Posts
    13

    Re: desperately need help with IF function please

    Quote Originally Posted by Jonmo1 View Post
    Try
    =IF(D7>=100%,100,0)+LOOKUP(D7,{0,1.01,1.15,1.2},{0,200,300,400})
    Tried that, it won't work for selecting the cell number (for the value), I prefer to select the cell number rather than type the exact value

  17. #17
    Registered User
    Join Date
    02-12-2015
    Location
    indonesia
    MS-Off Ver
    360 office subscription
    Posts
    13

    Re: desperately need help with IF function please

    Quote Originally Posted by bebo021999 View Post
    You are calculating incentives for D7 with multi criterias, using absolute address to avoid changing reference.

    Anyway, if you interested in the total only, use this:

    =LOOKUP($D$7,{1,1.01,1.15,1.2},{100,200,300,400})
    No, I'm more concern in calculating each row, for the total I can just sum down at the end of row

  18. #18
    Registered User
    Join Date
    02-12-2015
    Location
    indonesia
    MS-Off Ver
    360 office subscription
    Posts
    13

    Re: desperately need help with IF function please

    Thanks all for your help, I've solved my need

    Learnt something today

    thx a lot

  19. #19
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: desperately need help with IF function please

    Quote Originally Posted by hendrilearning View Post
    Tried that, it won't work for selecting the cell number (for the value), I prefer to select the cell number rather than type the exact value
    In that case, make your values in column B be just the low end of each percentage range.
    As you have it now, they're just text strings and can't really be used in a formula.

    See example..

    EFhendrilearning.xlsx

  20. #20
    Registered User
    Join Date
    02-12-2015
    Location
    indonesia
    MS-Off Ver
    360 office subscription
    Posts
    13

    Re: desperately need help with IF function please

    Quote Originally Posted by Jonmo1 View Post
    In that case, make your values in column B be just the low end of each percentage range.
    As you have it now, they're just text strings and can't really be used in a formula.

    See example..

    Attachment 376976
    wow, nice !

    But it didn't really fit my purpose

    =IF(D7>=100%,100 = I must entry the exact amount which is huge, if I try selecting the cell, copy to other row will have wrong calculation,0)+IFERROR(LOOKUP(D7,$B$8:$C$10),0)

    Besides, I need detail value per row

    But this is nice, I could use this on other

    thx a lot

+ 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. Desperately need help!!! Lookup offset function
    By haina827 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-09-2013, 01:03 PM
  2. Desperately need help with a macro
    By scommar1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2006, 07:30 AM
  3. Desperately need help!!
    By Paula_p in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-13-2006, 05:30 PM
  4. Desperately need help with 3 calculations
    By Scoooter in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2006, 11:35 AM
  5. Help desperately required
    By andy callaghan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-06-2005, 06:57 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