+ Reply to Thread
Results 1 to 6 of 6

Calculating Card Surcharge, only when paying by card

  1. #1
    Registered User
    Join Date
    10-03-2016
    Location
    South West, England
    MS-Off Ver
    Office365
    Posts
    3

    Calculating Card Surcharge, only when paying by card

    Hi,

    Im trying to calculate a sum (which i can do), however im stuggling with the code to make that cell also calculate a card surcharge. So for example, on an invoice- a customer is paying by card which will be indicated by "Y" for yes and "N" for no. Obvioulsy if it is yes I need a 2% charge added to the sum and if No, then just the sum with no 2% charge. This needs to be all within the same cell. The Card Surcharge where I will type "Y" or "N" will be the cell above.

    Any help with what code I should be writing would be a great help. I have a feeling it would be sort sort of SUMIF code?

    Many thanks

  2. #2
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Calculating Card Surcharge, only when paying by card

    Hi OneScotty2Hotty,

    A regular IF formula should be all you need.

    =IF(Ref of Y/N cell = "Y",ref of cell containing the sum * 1.02, ref of cell containing the sum)

    I hope this makes sense? If not give me a shout.

    Regards,

    Snook

  3. #3
    Registered User
    Join Date
    10-03-2016
    Location
    South West, England
    MS-Off Ver
    Office365
    Posts
    3

    Re: Calculating Card Surcharge, only when paying by card

    Hi The_Snook,

    thank you very much for your help. However im still having problems?Screenshot (3).png

    So my sum formula is in the subtotal box. I still want this to calculate cells H22:H39 but also * by 1.02 if cell H45 (card surcharge cell) contains "Y". Is the formula still the correct one as I kept getting an error message?

    Many thanks

  4. #4
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Calculating Card Surcharge, only when paying by card

    Try in cell H46:

    =IF(H45="Y",SUM(H22:H39)*1.02,SUM(H22:H39))

    Regards,

    Snook

  5. #5
    Registered User
    Join Date
    10-03-2016
    Location
    South West, England
    MS-Off Ver
    Office365
    Posts
    3

    Re: Calculating Card Surcharge, only when paying by card

    You sir are an absolute Hero! You wouldn't believe the amount of time ive spent searching google, trying to figure that out. All of my excel knowledge has long been forgotton!

    Many thanks!

  6. #6
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Calculating Card Surcharge, only when paying by card

    You're welcome mate, happy to help.

+ 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. Calculating card odds
    By JackBauer in forum Tips and Tutorials
    Replies: 2
    Last Post: 09-29-2015, 11:09 AM
  2. Time card help!!!!!!!!!!!!!
    By chops15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-21-2015, 07:16 PM
  3. time card
    By kacz7895 in forum Excel General
    Replies: 2
    Last Post: 01-14-2014, 05:26 PM
  4. [SOLVED] Credit card type based on card number
    By wlsnoops in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2013, 10:25 AM
  5. t-card replacement
    By bigdsb in forum Access Tables & Databases
    Replies: 1
    Last Post: 09-06-2012, 05:30 PM
  6. Calculating a fuel surcharge
    By hackbrew in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2008, 10:00 AM
  7. [SOLVED] Calculating credit card debt, interest , and payments
    By deeosu in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2005, 04: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