Consulting

Results 1 to 5 of 5

Thread: Formula to collect charges

  1. #1
    VBAX Regular
    Joined
    Feb 2011
    Posts
    34
    Location

    Formula to collect charges

    Hi,

    Amount Column M. I want to collect charges if the amount is less than 5,000/- then 50/- as charges,
    above 5.000/- to 10.000/- charges of 100/- and above 10.000/- charges of 200/- in Column N.

    Formula for this.

    Thanks

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,711
    Location
    "Please"?

    Sample?
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    VBAX Regular
    Joined
    Feb 2011
    Posts
    34
    Location
    Quote Originally Posted by Paul_Hossler View Post
    "Please"?

    Sample?
    Sample File::Sample.xlsx

  4. #4
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    =CHOOSE(IF($M2<5000,1,IF($M2<10000,2,3)),50,100,200)

    If $M2 => 10000 then choose 3

    Start in Row 2, then copy the formula down. Expand the formula with additional Ifs and Choices.
    Last edited by SamT; 05-03-2021 at 03:04 PM.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  5. #5
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,844
    or:
    =INDEX({50;100;200},MATCH(M2,{0;5000;10000}))
    or:
    =VLOOKUP(M2,{0,50;5000,100;10000,200},2)
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •