+ Reply to Thread
Results 1 to 3 of 3

A function to split cash and credit card purchases.

  1. #1
    Registered User
    Join Date
    12-30-2010
    Location
    somewhere, USA
    MS-Off Ver
    Excel 2010
    Posts
    86

    A function to split cash and credit card purchases.

    I need a function that "splits" a total when I have a row that has an entry called "S" for split. For example...I need a way for an Excel function to separate the amount alotted to a purchased item when I pay half cash and half credit. For instance, let's say I purchase a camera for 100 dollars. After entering the date, type of purchase all on one row, in one specfic row I enter "S" for split...which should tell the Excel function to take the credit part of the purchase and put it in another row as an added total of credit card debt. In one row I would enter the cash amount and in the other row I enter the credit amount. When I enter the "S" signifier in the next row, the function looks at the "S" and immediately looks in the credit row and takes that amount and totals the credit amount to a specific running total.

    A1 = Date
    B1 = Purchased Item (text value)
    C1 = Total Cost (numeric value)
    D1 = Cash Amount
    E1 = Credit Amount
    F1 = Signifier "S"
    GI = Function assigned to look at the value in F1. =if(F1="s",c1-d1,"")
    H1= +G1.

    Any future purchases which require a split...I need the function to add the running total into H1 so I have a total amount of credit card debt payment listed.

    Any ideas? Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: A function to split cash and credit card purchases.

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: A function to split cash and credit card purchases.

    Try this workbook

    Fill Date, Purchased Item, Total Cost, Cash Amount the remainder will auto fill

    If you put "Card Payment" in column B and the amount in column D (Cash Amount) this will keep a balance of your credit automatically.

    If you put an "s" or "S" after a credit amount your credit balance to that date will show in column G

    Hope this helps
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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