+ Reply to Thread
Results 1 to 18 of 18

Formula to calculate cancellation charges due

  1. #1
    Registered User
    Join Date
    02-24-2017
    Location
    St Helens, England
    MS-Off Ver
    2013
    Posts
    8

    Formula to calculate cancellation charges due

    Hi there

    I need to use a complicated formula, but can't work out how it should read

    I have columns

    I - Nomination Date
    K - Expected Start date
    L - Cancellation Date
    N - Date of Enrolment
    O- Date of Attendance
    U - Attendance Complete (Y or N)
    V - Failed to Complete Component (Y or N)

    People who
    cancel their place after being nominated but before enrolment should pay nothing (Date in Cancellation and Nomination fields, but Enrolment field will be empty).
    cancel their place after enrolment but before start date will be subject to £1000 (Date in Cancellation, Nomination and Enrolment fields)
    do not enrol or cancel their place or attend will be subject to £1000 (so fields L, N AND O will be empty)
    fail to complete component will be due £200 ("Y" will be in column "V")
    fail to complete Attendance will be due £200 ("N" will be in column "U")

    I need to show the cancellation charge due (£0, £200 or £1000) in another column




    Can anyone help?

    Thanks

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Complicated formula needed

    Untested.

    Try this (run this against some varying test data to check results)

    =IF(AND(L1 < > 0,I1 < > 0,N1 < > 0,L1 > N1,L1 < K1),1000,IF(OR(N1=0,L1 < > 0,O1=0),1000,IF(OR(V1="Y",U1="N"),200,0)))

    This should be ok but results may depend on the order in which you have described the conditions (I cant see any obvious conflicts with the conditions you have described).
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    02-24-2017
    Location
    St Helens, England
    MS-Off Ver
    2013
    Posts
    8

    Re: Complicated formula needed

    Thank you Special K - I appreciate your help very much - I've been trying to work this formula out for a couple of days now -

    You'll be glad to know that it's working fine


    Can I ask a further question please (I'm being cheeky I know - but the spreadsheet includes candidates who have not sent a nomination back (so all columns will be empty). How do I amend the formula to show that they are should be charged "0".

    Hope the rest of the day is not too busy - it is nearly the weekend!

    Cheers
    duckersj

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Complicated formula needed

    If a candidate does not meet the £1000 or £200 cancellation charge then the result should be £0

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Complicated formula needed

    Hello duckersj & Welcome to the Forum,

    Administrative Note:
    • We would love to continue to help you with your query, but first, before we can proceed…
    • Please see Forum Rule #1 about proper thread titles and adjust accordingly...
    HTH
    Regards, Jeff

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Complicated formula needed

    Oops! I should probably have read that rule as well!
    Sorry Mod.

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Complicated formula needed

    No Worries. Just earning some side money before I head off to work!

  8. #8
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Complicated formula needed

    I avoid complicated formulas - they scare me!

    Instead

    Helper Columns X:AB, calculated charge in W
    Formula
    X2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Y2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Z2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    AA2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    AB2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    W2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  9. #9
    Registered User
    Join Date
    02-24-2017
    Location
    St Helens, England
    MS-Off Ver
    2013
    Posts
    8

    Re: Complicated formula needed

    Hello

    Thank you for your help it is appreciated very much !

    I should have really tried to break it down - it is much easier -

    can you advise though - we should only be charging £200 fee it they fail to complete or do not complete attendance -(at the moment if they do not do both then the calculation is showing that they have to pay £400) How do I work the calculation so that the amount only shows the £200.
    Also as some people have no nomination date how do I set the fees to "£0" as candidates have not taken up the offer - so should not be charged.

    duckersj

  10. #10
    Registered User
    Join Date
    02-24-2017
    Location
    St Helens, England
    MS-Off Ver
    2013
    Posts
    8

    Re: Complicated formula needed

    Hi Jeff

    I cannot edit the post - as soon as I click edit I just get a spinning wheel... I cannot see the "go advanced" button anywhere??

    duckersj

  11. #11
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Complicated formula needed

    we should only be charging £200 fee it they fail to complete or do not complete attendance -(at the moment if they do not do both then the calculation is showing that they have to pay £400) How do I work the calculation so that the amount only shows the £200.
    Put this formula in either of the 2 columns and delete the other column
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  12. #12
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Complicated formula needed

    ...can be simplified to

    =OR(V2="Y",U2="N")*200

  13. #13
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Complicated formula needed

    Well spotted Special-K

    as some people have no nomination date how do I set the fees to "£0" as candidates have not taken up the offer - so should not be charged.
    Silly question perhaps - why are they on the list if they have not been nominated?

    WARNING: do not copy and paste these formulas - apply the logic


    NOTE: below assumes that you have done what was suggested in post#11

    LOGIC = To make a charge, then column I must contain a value. We need to add an extra =AND condition to reflect this to all 4 remaining columns

    =AND
    (3 columns contain =AND formulas)
    we want all conditions to be true to trigger a charge, so you need to add an extra condition that I2 is not blank inside the original =AND
    eg
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    becomes
    =AND(N2="",L2="",O2="",I2<>"")*1000

    =OR
    (only 1 column contains =OR formula)
    we need to add the extra condition because we want I2 not to be empty AND regardless of what is inside the OR function
    eg
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    becomes
    =AND(I2<>"",OR(V2="Y",U2="N"))*200

  14. #14
    Registered User
    Join Date
    02-24-2017
    Location
    St Helens, England
    MS-Off Ver
    2013
    Posts
    8

    Re: Complicated formula needed

    Thank you

  15. #15
    Registered User
    Join Date
    02-24-2017
    Location
    St Helens, England
    MS-Off Ver
    2013
    Posts
    8

    Re: Complicated formula needed

    Yes - It is a bit of silly wording...

    In essence, they have been identified as possible attendees - but a completed application form confirms the "nomination".

    duckersj

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Formula to calculate cancellation charges due

    Guys, for future reference, please do not respond to a thread that is waiting for a moderation to be complied with. I see the OP has changed the title, and reported in post 10 they could not change it, this should have been brought to a mod/admin's attention so it could be rectified
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  17. #17
    Registered User
    Join Date
    02-24-2017
    Location
    St Helens, England
    MS-Off Ver
    2013
    Posts
    8

    Re: Formula to calculate cancellation charges due

    I reported that I could not change it, but managed to do do later on, I think by trial and error....had no response from mod/admin.

  18. #18
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Formula to calculate cancellation charges due

    Quote Originally Posted by duckersj View Post
    I reported that I could not change it, but managed to do do later on, ....
    It might be that the Forum software does not let you initially do things like Edit.
    This is done, I think, to prevent a Spammer registering and messing about changing his first post to hide, or add things later...
    The exact details of how this works are not made public, I think, so as not to give any insight into a Spammer.
    But once you appear “genuine”, you should find things like this will be available and “work” for you.
    '_- Google first, like this _ site:ExcelForum.com Gamut
    Use Code Tags: Highlight code; click on the # icon above,
    Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
    http://www.excelforum.com/the-water-...ml#post4109080
    https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
    http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )

+ 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. [SOLVED] Formula Help... Calculating charges based on stepped rates.
    By HoosierIT in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-23-2014, 05:55 PM
  2. Formula for quarterly charges
    By Africa in forum Excel General
    Replies: 3
    Last Post: 02-10-2012, 02:10 PM
  3. Formula to Sum Charges Based on Dates for each Patient
    By chuckwud in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2011, 11:03 AM
  4. InputBox Cancellation
    By nms2130 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2010, 12:04 PM
  5. Formula to work out additional charges
    By Carl1966 in forum Excel General
    Replies: 3
    Last Post: 07-09-2009, 05:33 AM
  6. VBA to calculate charges
    By choo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-05-2005, 10:20 PM
  7. [SOLVED] How do I calculate charges based on elasped time(H:MM) & rate($)?
    By glass-artist-web-developer in forum Excel General
    Replies: 1
    Last Post: 03-11-2005, 11:06 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