+ Reply to Thread
Results 1 to 7 of 7

Adding number for different amount

  1. #1
    Registered User
    Join Date
    04-25-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    14

    Adding number for different amount

    i was reading help in office it was like that but the formula doesnt work for me. Please help me to fix it.
    =IF(e2-e3>5999<8000, "100",IF(e2-e3>7999<10000,"200", IF(e2-e3>9999,"400"))))
    its mean after 5999 to 8000 the cell will apear like 100, 7999 to 10000 as 200, 10000 for up as 400.
    Last edited by solloman; 04-26-2012 at 02:03 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: correct my formula

    Hi solloman,

    Try using the below formula:-

    =IF(AND(E2-E3>=5999,E2-E3<=7999),100,IF(AND(E2-E3>=8000,E2-E3<=9999),200,400))

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    04-25-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: correct my formula

    Its the same error in the formula =IF(AND(E2-E3>=5999,E2-E3<=7999),100,IF(AND(E2-E3>=8000,E2-E3<=9999),200,400))
    Check by yourself if you made a mistake.

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: correct my formula

    you can also use this

    =IFERROR(LOOKUP(E2-E3,{6000,8000,10000},{100,200,400}),"")

    what will be the value if lower than 6000 - 0?

    =IFERROR(LOOKUP(E2-E3,{0,6000,8000,10000},{"value here",100,200,400}),"")
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  5. #5
    Registered User
    Join Date
    04-25-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: correct my formula

    its say the formula isnt correct, try to put it by your self on the red cell. Pleease

    MASKORET SHVUIT.xlsx

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: correct my formula

    you have an error message??

    ok. your'using different kind office..
    change all the comma , with this ;

  7. #7
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: correct my formula

    Solloman,

    Please take a moment to read the forum rules (link in my signature below) and then amend your thread title to something descriptive of your problem.

    If you plan to post another question - keep that in mind.

+ 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