+ Reply to Thread
Results 1 to 13 of 13

Credit minus daily charge formula

  1. #1
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Credit minus daily charge formula

    Please, I'm working on this project for my son. His personal trainer,
    preparing daily schedule and charges. based on 1 week. I need help with credit minus daily charge formula, I'll explain

    for example (John) trains daily for 1hr. x $50.00, but he has credit of $200.00
    I want every day charge deducts from the credit he has.

    I have this "=IF(C12=""," ",IFERROR(C12*D12-VLOOKUP(B12,Table1,3,FALSE),""))" on Johns daily total charge cell but I realised its deducting same amounts on every day. it doesn't deduct on daily lets say
    1st day $50.00 - $200 = $150.00 and second day $50.00 - $150.00= $100.00 and so on.

    I hope I managed to explain sorry for long story.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Credit minus daily charge formula

    It's difficult (at least for me) to understand the layout of your data without seeing a small representative sample of what you are looking at.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Re: Credit minus daily charge formula

    Here you go


    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Credit minus daily charge formula

    Correct me if I am wrong but I do not believe that you included your desired results (the bold part of post #2).

    Are you looking for a formula to produce values in columns E, K, and Q in the 'november' sheet, column C of the 'students' sheet, or both?

  5. #5
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Re: Credit minus daily charge formula

    Here what I need is the High-lighted ones below each row
    Attached Files Attached Files

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Credit minus daily charge formula

    Try this in E4:
    =IFERROR(VLOOKUP(B4,Table1,3,FALSE)-SUMIF(B$4:B4,B4,C$4:C4)*VLOOKUP(B4,Table1,2,FALSE),"")

    and this in K4:
    =IFERROR(VLOOKUP(H4,Table1,3,FALSE)-(SUMIF($B$4:B$19,H4,$C$4:C$19)+SUMIF(H$4:H4,H4,I$4:I4))*VLOOKUP(H4,Table1,2,FALSE),"")

    Drag both formulas down through row 19. You can then copy/paste K4:K19 to Q4:Q19.

    See attachment for clarification.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Re: Credit minus daily charge formula

    Thank you, Thank you.

    Can we also have the Credit in this case ($250) goes down on each lesson? now its just stays as is.

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Credit minus daily charge formula

    Not without VBA (which is not my strong suit).

    You can't have a formula (for current credit) and a manually entered value (beginning credit) in the same cell.

    As it sits, the formulas subtract the sum of the yellow columns in the 'november' sheet from the "Credit" column in the 'students' sheet.

    Hopefully somebody else will be able to help you there. Might require a re-vamp of what I was able to do through formulas.

  9. #9
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Re: Credit minus daily charge formula

    That's OK you where great help thank you very much

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Credit minus daily charge formula

    You're welcome. Happy to help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  11. #11
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Re: Credit minus daily charge formula

    Please just realised a problem I have attached a sample where
    cell K16 has no data showing, it should show $(100.00)
    then cell Q14 should be K16 (100.00) + Q14(150) = (250.00)

    And the main problem, how can I continued the first row calculation to second row, and then to 3rd , 4rt and so on.
    with same principle.
    Please I really been trying to get it working, but being newbie did not do much help.


    Thank you
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Credit minus daily charge formula

    Looking at the file attached to post #11, I don't understand why you feel the value in K16 should be (100). The way it appears to me Anna N took three hours of lessons on Sunday which reduced her credit to $100 then took two more hours of lessons on Monday which would have reduced her credit to zero.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  13. #13
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Re: Credit minus daily charge formula

    Im so sorry about that, that part was fixed, how about the second part of my question.

+ 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. Daily Balance minus the principal
    By dache416 in forum Excel General
    Replies: 2
    Last Post: 05-19-2014, 09:22 AM
  2. [SOLVED] help to find a formula to calculate the delivery charge !
    By rmp123 in forum Excel General
    Replies: 7
    Last Post: 02-22-2014, 09:28 AM
  3. Replies: 2
    Last Post: 08-20-2013, 08:36 AM
  4. Copy charge code down column until next charge code.
    By Zigmo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-27-2012, 12:58 PM
  5. Replies: 0
    Last Post: 03-10-2011, 02:08 AM
  6. Formula to Work out carriage charge
    By merikiito in forum Excel General
    Replies: 4
    Last Post: 02-28-2011, 10:19 AM
  7. Replies: 6
    Last Post: 11-09-2008, 06:09 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