+ Reply to Thread
Results 1 to 6 of 6

Need Help ( Complicated IF function - Maybe- )

  1. #1
    Registered User
    Join Date
    05-20-2014
    Posts
    20

    Need Help ( Complicated IF function - Maybe- )

    Dears,
    Below is a scenario to what I need.
    I had borrowed 50$ from Mike and then 60$ from Ahmad, 70$ from John. Now I've 100$ and want to return their money back respectively starting from Mike and then Ahmad and if anything remained to John. ( The amount I've is usually changing i.e. now 100$ a week later 50$, so when I bring changes in total amount I have, changes should appear in amounts I gave to the above mentioned people).
    I'd already returned back 10$ of Mike few days ago. attached sheet may help you better understand me and help me back. Thanks
    I need this for a large amount of data.

    Your kind support in regards is much appreciated.
    Help1.jpg
    Help.xlsx
    Last edited by afzalzada; 01-21-2015 at 02:26 AM.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Need Help ( Complicated IF function - Maybe- )

    I think this covers it
    Attached Files Attached Files
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Need Help ( Complicated IF function - Maybe- )

    Not exactly what you asked for, but I had lots of fun creating this macro. Have a look if still interested.

    I will not post the code here, because it is quite lenghty. Also the macro is range specific, meaning, if you move the data to another location, it will not work.

    You can manually enter values in billed amount, paid amount and amount i've, then click on the associated button to pay back that certain person.

    If amount i've is zero or negative or the debt is currently zero a message box appears and the macro is stopped.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-20-2014
    Posts
    20

    Re: Need Help ( Complicated IF function - Maybe- )

    Quote Originally Posted by bmouse View Post
    Not exactly what you asked for, but I had lots of fun creating this macro. Have a look if still interested.

    I will not post the code here, because it is quite lenghty. Also the macro is range specific, meaning, if you move the data to another location, it will not work.

    You can manually enter values in billed amount, paid amount and amount i've, then click on the associated button to pay back that certain person.

    If amount i've is zero or negative or the debt is currently zero a message box appears and the macro is stopped.
    ---------------------------------------------------------------------------
    Thanks a lot bro, Actually you got what I want, due to large amount of data I can't utilize it through the macro you provided. if this can be achieved through formulas would be much appreciated. Thanks
    ( Actually I'm working with a telecom company and in postpaid department, so their total dues ( Amounts I've) in above example is provided to me by IT department, then I have to manually divide that amount per month for companies, if their August's dues became zero then adjust the remaining amount to september and when their september dues are clreared add the remaining amount to its next month....)

  5. #5
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Need Help ( Complicated IF function - Maybe- )

    Does pjwhitfield's solution work for you?

    I assumed that the macro will not work for you, because most of the time the amount of data that needs to be processed is huge and this kind of macro doesn't even come close to large scale data processing. Anyway, as I mentioned before, I'm a beginner when it comes to VBA and this macro was fun to write and good practice for me

  6. #6
    Registered User
    Join Date
    05-20-2014
    Posts
    20

    Re: Need Help ( Complicated IF function - Maybe- )

    Thanks for your time and response. its a good try but not really what I wanted.
    it should check the amount in the left most REMAINING colum, if it was zero then should start dividing the remaining amount I've to its next cell.

+ 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] Complicated IF function...
    By Janderie in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-17-2015, 08:45 PM
  2. [SOLVED] Complicated IF function
    By maidenhel in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-11-2014, 05:16 AM
  3. Complicated IF function with example
    By ruthyeh in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-21-2013, 06:40 PM
  4. A Complicated Look up Function?
    By screamnyak in forum Excel General
    Replies: 2
    Last Post: 02-24-2011, 01:01 PM

Tags for this Thread

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