+ Reply to Thread
Results 1 to 10 of 10

Conditional formula

  1. #1
    Registered User
    Join Date
    03-14-2008
    MS-Off Ver
    2010 (Home) + 365 (Home)
    Posts
    82

    Conditional formula

    I'm a newbie to Excel

    I need to do the following:

    if A1 < 30, then a2 = 10% of a1
    else a2 = 10% of 30 + 5% of (a1-30)

    I'm not sure how I can have the above conditional logic on the cell A2

    I know how to do basic assignment like =a1*b1 or something, but not conditional as given above

    Any help would be appreciated

    Thanks


    OM

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Help needed to create a conditional formula in a cell

    if A1 < 30, then a2 = 10% of a1
    else a2 = 10% of 30 + 5% of (a1-30)

    formula to go into A2

    =IF(A1<30,A1*0.1,(30*0.1)+((A1-30)*0.05)))

  3. #3
    Registered User
    Join Date
    03-14-2008
    MS-Off Ver
    2010 (Home) + 365 (Home)
    Posts
    82

    Re: Help needed to create a conditional formula in a cell

    i knew it would be simple
    thanks a lot

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Help needed to create a conditional formula in a cell

    Or same formula shorter:

    =IF(A1<30,A1*0.1,0.05*(A1+30))

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help needed to create a conditional formula in a cell

    OM2,

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.


    Please ensure you title your threads more appropriate going forward... specifically I'm referring to "Help needed" etc...

  6. #6
    Registered User
    Join Date
    03-14-2008
    MS-Off Ver
    2010 (Home) + 365 (Home)
    Posts
    82

    Re: Help needed to create a conditional formula in a cell

    understood - i'll do so in future
    (do u want me to change the title now that the post has been answered? if so, let me know)
    Last edited by DonkeyOte; 11-05-2009 at 06:55 AM. Reason: quote removed

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Help needed to create a conditional formula in a cell

    Yes, please. And make it solved (drop down menu left to the title )

  8. #8
    Registered User
    Join Date
    03-14-2008
    MS-Off Ver
    2010 (Home) + 365 (Home)
    Posts
    82

    Re: Help needed to create a conditional formula in a cell

    i'm happy to try and comply
    i went to edit my title - then i thought... my title sounds correct!
    i don't think could give a better title!
    not wanting to waste time or anything: please do give a suggestion what it should be?
    i think the title is exact and correct

    also: i couldn't find the 'mark solved' - honestly, i must have spent 5 min looking!

    and: i just got a personal notification about my post and it says that i've got an infractions point - or something like that

    wow: i have to admit, i like this forum - it's not good when a forum gets filled with junk
    all forums should do the same and the world might be a better place

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Help needed to create a conditional formula in a cell

    Where you renamed your title is drop down menu. Just choose [solved]

  10. #10
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help needed to create a conditional formula in a cell

    i'm happy to try and comply
    i went to edit my title - then i thought... my title sounds correct!
    If you read my post I think you'll note my suggestion.

    and: i just got a personal notification about my post and it says that i've got an infractions point - or something like that
    You should note I reversed the infraction almost straight away as I felt it was a little too zealous even for me.

+ 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